spec/client_reg_spec.rb in cf-uaac-4.16.0 vs spec/client_reg_spec.rb in cf-uaac-4.17.0
- old
+ new
@@ -76,9 +76,17 @@
it 'fails to create a user account as test client' do
Cli.run("user add #{@test_user} -p #{@test_pwd}").should be_nil
Cli.output.string.should include 'access_denied'
end
+ it "changes it's client jwt" do
+ Cli.run("token client get #{@test_client} -s #{@test_secret}").should be
+ Cli.run('token decode').should be
+ Cli.run("client jwt add #{@test_client} --jwks_uri http://localhost:8080/uaa/token_keys").should be
+ Cli.run("client jwt update #{@test_client} --jwks_uri http://localhost:8080/uaa/token_keys").should be
+ Cli.run("client jwt delete #{@test_client} ").should be
+ end
+
context 'as updated client' do
before :all do
# update the test client as the admin client
Cli.run("token client get #{@test_client} -s #{@test_secret}").should be