Skip to content

Commit 463fa14

Browse files
committed
fix spec
1 parent 403ed35 commit 463fa14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/http/oauth_spec.cr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,15 @@ describe "OAuth2" do
133133
with_http_server do |http, _|
134134
LavinMQ::Config.instance.oauth_client_id = "test-client"
135135
LavinMQ::Config.instance.oauth_issuer_url = URI.parse("https://idp.example.com")
136+
LavinMQ::Config.instance.oauth_mgmt_base_url = "https://localhost:15672"
136137

137138
response = ::HTTP::Client.get(http.test_uri("/oauth/enabled"), headers: ::HTTP::Headers.new)
138139
response.status_code.should eq 200
139140
JSON.parse(response.body)["enabled"].as_bool.should be_true
140141
ensure
141142
LavinMQ::Config.instance.oauth_client_id = nil
142143
LavinMQ::Config.instance.oauth_issuer_url = nil
144+
LavinMQ::Config.instance.oauth_mgmt_base_url = nil
143145
end
144146
end
145147
end

0 commit comments

Comments
 (0)