From 734f65846daba1d14bc14bf15c67593c283f1aa5 Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Wed, 10 Jul 2024 10:50:48 +0100 Subject: [PATCH] spec: Support creating JWTs for non-sandbox clusters Signed-off-by: Lewis Marshall --- spec/acceptance/rest/auth_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/rest/auth_spec.rb b/spec/acceptance/rest/auth_spec.rb index ef07af9f2..72a46da47 100644 --- a/spec/acceptance/rest/auth_spec.rb +++ b/spec/acceptance/rest/auth_spec.rb @@ -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()