Skip to content

Commit

Permalink
spec: Support creating JWTs for non-sandbox clusters
Browse files Browse the repository at this point in the history
Signed-off-by: Lewis Marshall <[email protected]>
  • Loading branch information
lmars committed Jul 10, 2024
1 parent 591e06f commit 260da1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/acceptance/rest/auth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1300,14 +1300,14 @@ def coerce_if_time_value(field_name, value, params = {})
end

context 'when the JWT embeds an Ably token' do
let(:token) { Faraday.post(auth_url, { keyName: key_name, keySecret: key_secret, jwtType: :embedded }).body }
let(:token) { Faraday.post(auth_url, { environment: environment, keyName: key_name, keySecret: key_secret, jwtType: :embedded }).body }

it 'authenticates correctly using the embedded token' do
expect(client.stats).to_not be_nil()
end

context 'and the requested token is encrypted' do
let(:token) { Faraday.post(auth_url, { keyName: key_name, keySecret: key_secret, jwtType: :embedded, encrypted: 1 }).body }
let(:token) { Faraday.post(auth_url, { environment: environment, keyName: key_name, keySecret: key_secret, jwtType: :embedded, encrypted: 1 }).body }

it 'authenticates correctly using the embedded token' do
expect(client.stats).to_not be_nil()
Expand Down

0 comments on commit 260da1e

Please sign in to comment.