Skip to content

Commit bededaa

Browse files
mkuratczykmergify[bot]
authored andcommitted
Adjust tests to the new behaviour
(cherry picked from commit 0e743b5)
1 parent 4932d2e commit bededaa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deps/rabbit/test/vhost_SUITE.erl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,14 @@ vhost_update_default_queue_type_undefined(Config) ->
307307
VHost = <<"update-default_queue_type-with-undefined-test">>,
308308
Description = <<"rmqfpas-105 test vhost">>,
309309
Tags = [replicate, private],
310-
DefaultQueueType = quorum,
310+
VhostDefaultQueueType = quorum,
311+
NodeDefaultQueueType = rabbit_ct_broker_helpers:rpc(Config, 0, rabbit_queue_type, default_alias, []),
311312
Trace = false,
312313
ActingUser = <<"acting-user">>,
313314
try
314315
?assertMatch(ok, rabbit_ct_broker_helpers:add_vhost(Config, VHost)),
315316

316-
PutVhostArgs0 = [VHost, Description, Tags, DefaultQueueType, Trace, ActingUser],
317+
PutVhostArgs0 = [VHost, Description, Tags, VhostDefaultQueueType, Trace, ActingUser],
317318
?assertMatch(ok,
318319
rabbit_ct_broker_helpers:rpc(Config, 0, rabbit_vhost, put_vhost, PutVhostArgs0)),
319320

@@ -322,7 +323,7 @@ vhost_update_default_queue_type_undefined(Config) ->
322323
rabbit_ct_broker_helpers:rpc(Config, 0, rabbit_vhost, put_vhost, PutVhostArgs1)),
323324

324325
V = rabbit_ct_broker_helpers:rpc(Config, 0, rabbit_vhost, lookup, [VHost]),
325-
?assertMatch(#{default_queue_type := DefaultQueueType}, vhost:get_metadata(V))
326+
?assertMatch(#{default_queue_type := NodeDefaultQueueType}, vhost:get_metadata(V))
326327
after
327328
rabbit_ct_broker_helpers:delete_vhost(Config, VHost)
328329
end.

deps/rabbitmq_management/test/rabbit_mgmt_http_SUITE.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,6 @@ definitions_vhost_metadata_test(Config) ->
21262126
?assertEqual(#{
21272127
name => VHostName,
21282128
description => Desc,
2129-
default_queue_type => DQT,
21302129
tags => Tags,
21312130
metadata => Metadata
21322131
}, VH),

0 commit comments

Comments
 (0)