Skip to content

Commit

Permalink
Update tests for RabbitMQ 3.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jan 30, 2024
1 parent 66bfb23 commit 489f903
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/test/groovy/com/rabbitmq/http/client/ClientSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1137,11 +1137,11 @@ class ClientSpec extends Specification {
given: "vhost / and definition"
def v = "/"
def d = new HashMap<String, Object>()
d.put("ha-mode", "all")
d.put("expires", 30000)

when: "client declares a policy hop.test"
def s = "hop.test"
client.declarePolicy(v, s, new PolicyInfo(".*", 1, null, d))
client.declarePolicy(v, s, new PolicyInfo(".*", 1, "queues", d))

and: "client lists policies in vhost /"
List<PolicyInfo> ps = client.getPolicies(v)
Expand All @@ -1152,7 +1152,7 @@ class ClientSpec extends Specification {
p.vhost == v
p.name == s
p.priority == 1
p.applyTo == "all"
p.applyTo == "queues"
p.definition == d

cleanup:
Expand Down Expand Up @@ -2185,7 +2185,7 @@ class ClientSpec extends Specification {
def s = "hop.test"
def d = new HashMap<String, Object>()
def p = ".*"
d.put("ha-mode", "all")
d.put("expires", 30000)
client.declarePolicy(v, s, new PolicyInfo(p, 0, null, d))

when: "client lists policies"
Expand All @@ -2207,7 +2207,7 @@ class ClientSpec extends Specification {
def s = "hop.test"
def d = new HashMap<String, Object>()
def p = ".*"
d.put("ha-mode", "all")
d.put("expires", 30000)
client.declarePolicy(v, s, new PolicyInfo(p, 0, null, d))

when: "client lists policies"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ class ReactorNettyClientSpec extends Specification {
def s = "hop.test"
def d = new HashMap<String, Object>()
def p = ".*"
d.put("ha-mode", "all")
d.put("expires", 30000)
client.declarePolicy(v, s, new PolicyInfo(p, 0, null, d)).block()

when: "client lists policies"
Expand All @@ -1082,7 +1082,7 @@ class ReactorNettyClientSpec extends Specification {
def s = "hop.test"
def d = new HashMap<String, Object>()
def p = ".*"
d.put("ha-mode", "all")
d.put("expires", 30000)
client.declarePolicy(v, s, new PolicyInfo(p, 0, null, d)).block()

when: "client lists policies"
Expand Down Expand Up @@ -1468,7 +1468,7 @@ class ReactorNettyClientSpec extends Specification {
given: "vhost / and definition"
def v = "/"
def d = new HashMap<String, Object>()
d.put("ha-mode", "all")
d.put("expires", 30000)

when: "client declares a policy hop.test"
def s = "hop.test"
Expand Down

0 comments on commit 489f903

Please sign in to comment.