International-Data-Spaces-Association / omejdn-daps

Open Source implementation of the Dynamic Attribute Provisioning Service based on http://github.com/Fraunhofer-AISEC/omejdn-server
Apache License 2.0
6 stars 10 forks source link

Problem executing test.sh command #7

Closed aetxeberriasqs closed 2 years ago

aetxeberriasqs commented 2 years ago

Executing the $ scripts/test.sh CLIENT_NAME command, and error has occurred.

My Setup

After executing the sudo apt-get install ruby-full the last version of ruby is expected to be installed

What I have done up front

All the steps of the README have been completed until the $ scripts/test.sh CLIENT_NAME command. Some of the steps where not clearly declared in the documentation. I expected the process to run without any error warning

What actually happened

The following warning appeared

sqs@Virtual-Ubuntu-20:~/ALEX_DAPS_2/omejdn-daps/omejdn-server$ ./scripts/test_all.sh 
"No claim mappers available"
Loaded suite tests/test_admin_api
Started
................
Finished in 1.562554393 seconds.
--------------------------------------------------------------------------------
16 tests, 48 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
--------------------------------------------------------------------------------
10.24 tests/s, 30.72 assertions/s
"No claim mappers available"
Loaded suite tests/test_oauth2
Started
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MCwibmJmIjoxNjM2NzE1NjcwLCJleHAiOjE2MzY3MTkyNzB9.HtBJVMcPUWaWtfN8j56-xDsc0Gdwyl1BBJkITSnC8GEuvZK8WnwYWx_GXNS51LNQqYk0Xof7Ey9dU2g6IbU-Dg
Client testClient found
looking for client of eyJhbGciOiJFUzUxMiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MCwibmJmIjoxNjM2NzE1NjcwLCJleHAiOjE2MzY3MTkyNzB9.AF072s2txZcTZoUzkWSSIJOqyHNn7Fb4pdMrU937YOzr_NEGpt13hbRX6yXVzp42CwBE8HksAsclBpkci5-rjyc9ALHYUDjDcwjMc6GYCUg3wnqfjDrch2Dx39tLXe4dDC0D19GijPTIhtpyGFnIhnhrNK8TTPISthrsZCGBcv8W7Tmj
Client testClient found
looking for client of eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MCwibmJmIjoxNjM2NzE1NjcwLCJleHAiOjE2MzY3MTkyNzB9.AlSvCtz3kBrOEHJ31_PVDH9j-wlXKigh_aD2l41z4K71gQk09JpTX5hNYXsXKhFNHVtfaw1s90xuaDYaOl8E-Qy2EvRoIWRfRSdBpRsjlWHtj4WoSVjpm1BVurig9G7zXWNzkFrjPSyMzsiT_PkRRy6IBFplrUQaw-aideHdIrOofzgXwAdokpMVYMObRoIE_vp9EMbtSErT4_E3-XHA1jUp8ODUi42N-zX_-GZjoizL9XTFv_Go3S4MuFSR3L82qxn2XgOdrirEWTxeDRyzyWBuXAX9BivVm5ZwutHhN20ChqVapwbFgRzqLShFwilXpsMpaCpdhUzx1_cFz71WeMTq8GZjUtW4Ol_AlMfP7oipvylykjLYmQryp5UK-jnb1X1HPBqNOQzLPL9oB_emM5wLSZQAr4JG1N0tfP3MzvTtDU3nZ2o5TRbalbwYZHqzC_NpKKs4znhQWWr3OLE5g0bUy_35P2tJ8gHZ2YPWup_YWvwFOyHngfF2xfC6XQOdgmg_UhBoDlJ_hIgZEkRYiqnLx6Msf2t9SgJGzzagu3RtH89q2f2CD0IhXU7ZL3zsMHUq94trzv_ngsDWb8Sag_RLYEPhx0r4o6vVZfRGinsFCiR4kqvVYTItR7uQFFfH3oGnk78WxamZSRdHH2i6vYPADy1RfrRYQOAYtt-TxFE
Client testClient found
looking for client of eyJhbGciOiJSUzUxMiJ9.eyJhdWQiOiJodHRwOi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_HQJQTdfARVwfbS3XEpoRSC9bjDyPJVr9NEsifmvpMrqa6WHKN63pDdoinP9jli8CZiJSmt_jT8cRD0hG618kAa0KfGZxCpCZs96QkVBQzktFUq0SBX8v_eh_rSs3Nk439Y69T2_y0tKW0HMXXCk4jlJqPF_5mF8d-VjgKvP7H3uTy8cL6P_mBSUJI-MyqCtoUH0H5cBwl-Ab9LiQ2Aj7plOvLdMaa9LLH8JarmvOp0iFgqz5SG8vCxlT-ReRqdP4QTQ7FBym4kShMbyc4j-jHZWIPgkBGmDi4Uui3Z3QCBRCDxZAv6dNOQfd2Ki9EQR9lfGDgx4feyo9GSKQftj1FLnllPkgmximSyCZD8FDJ6IwLqeysOvWN8_4dK8VeWaZCWSRBpZXE-pE99uJZyb_Jv_kQhvOi5k-uSVCb4Rueug5T3I_4g
."Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
F
================================================================================
Failure: test_authorization_flow(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:202:in `test_authorization_flow'
     199:     response = request_authorization TestSetup.users[0], @client
     200:     at = extract_access_token response
     201: 
  => 202:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn']
     203:     assert_equal at['scope'], 'omejdn:write'
     204:     assert_equal at['aud'], [TestSetup.config['token']['audience'], TestSetup.config['host']+'/api']
     205:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
"Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
."Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be dynamic_claims"
F
================================================================================
Failure: test_authorization_flow_with_claims(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:253:in `test_authorization_flow_with_claims'
     250:     response = request_authorization TestSetup.users[2], @client, query_additions
     251:     at = extract_access_token response
     252: 
  => 253:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn', 'dynattribute']
     254:     assert_equal at['scope'], 'omejdn:write'
     255:     assert_equal at['aud'], [TestSetup.config['token']['audience'], TestSetup.config['host']+'/api']
     256:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
"Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
F
================================================================================
Failure: test_authorization_flow_with_resources(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:225:in `test_authorization_flow_with_resources'
     222:     response = request_authorization TestSetup.users[0], @client2, resources
     223:     at = extract_access_token response
     224: 
  => 225:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn']
     226:     assert_equal at['scope'], 'omejdn:write'
     227:     assert_equal at['aud'], ['http://example.org', TestSetup.config['host']+'/api']
     228:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MSwibmJmIjoxNjM2NzE1NjcxLCJleHAiOjE2MzY3MTkyNzF9.Vr3s8cOC6WTRsG_V6TGT0rQ_yUG-z5GwGGoAvh7qXV42_PAHfBm3icdQmt_f5qEUQY46lEGI-jIW613__O7zrA
Client testClient found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJkeW5hbWljX2NsYWltcyIsImlzcyI6ImR5bmFtaWNfY2xhaW1zIiwiaWF0IjoxNjM2NzE1NjcxLCJuYmYiOjE2MzY3MTU2NzEsImV4cCI6MTYzNjcxOTI3MX0.qF3SL7y0N7FyFrbG9LK1zRuY3l6y0dYopEbWTiK6lHkcL9CbHz61lTjxhMxMNQPsGMABLbFkL0w3ifRyVBmUrA
Client dynamic_claims found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MSwibmJmIjoxNjM2NzE1NjcxLCJleHAiOjE2MzY3MTkyNzF9.GzshPYcVQHlO0VNopVLm8VRAcnKw5eONNJqI1OJxv59xFR6hgXN91aQJXv4D9eRXLHiqYoNl4JZU19XucnHGSA
Client testClient found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50MiIsImlzcyI6InRlc3RDbGllbnQyIiwiaWF0IjoxNjM2NzE1NjcxLCJuYmYiOjE2MzY3MTU2NzEsImV4cCI6MTYzNjcxOTI3MX0.vJ6w55swvmDQ6_JYIZ-H1zuBHFVl-h-BeScC1_bSOJG2FABS6lqP3woe5VMyCxNzcON0ckQqaeP_jCa6qn7SOg
Client testClient2 found
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50MiIsImlzcyI6InRlc3RDbGllbnQyIiwiaWF0IjoxNjM2NzE1NjcxLCJuYmYiOjE2MzY3MTU2NzEsImV4cCI6MTYzNjcxOTI3MX0.UmIlEiGDKa3cwjCns_77sjBKJJNMEBrt_vjn9bms8xbpdSk3lPV4aK2yQxpWauI4uxxwR5kmymXoWBNhR2mWNg
Client testClient2 found
.
Finished in 1.092227106 seconds.
--------------------------------------------------------------------------------
9 tests, 157 assertions, 3 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
66.6667% passed
--------------------------------------------------------------------------------
8.24 tests/s, 143.74 assertions/s
Error: Test tests/test_oauth2.rb unsucessful
sqs@Virtual-Ubuntu-20:~/ALEX_DAPS_2/omejdn-daps/omejdn-server$ ./scripts/test_all.sh daps
"No claim mappers available"
Loaded suite tests/test_admin_api
Started
................
Finished in 1.46620181 seconds.
--------------------------------------------------------------------------------
16 tests, 48 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
--------------------------------------------------------------------------------
10.91 tests/s, 32.74 assertions/s
"No claim mappers available"
Loaded suite tests/test_oauth2
Started
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTc1NSwibmJmIjoxNjM2NzE1NzU1LCJleHAiOjE2MzY3MTkzNTV9.qgm-AScKe4lGebzg2uKjWNZBe3kYSz7Xcd5v6r4m51BkB7cxdW1-9r9sSjGq4cjowtEKhQHU7yrL-xnk44iBFA
Client testClient found
looking for client of eyJhbGciOiJFUzUxMiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTc1NSwibmJmIjoxNjM2NzE1NzU1LCJleHAiOjE2MzY3MTkzNTV9.AYmR0xjfrKbv5pmGy028fUcLsAg2XddaaTs9IhVjKtGH3-qLG8F6tpm-9FNWKLv0fLUplKsIIM1Q4O5SVeG9mt46AQP3qBceniOafEtT8_jAqUGMwv6hnxii9PEiuVnok6AQsEshatGZsAXeVlSc_8kQcHFK-wAIJdHsD4NromSqJwlF
Client testClient found
looking for client of eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTc1NSwibmJmIjoxNjM2NzE1NzU1LCJleHAiOjE2MzY3MTkzNTV9.LnhzOhS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MuMr8o8DW9vsPhZb0TKa-EX_coXMkeI6bwOagED1YROt1apEmLyAHZ7kfszQJDl-1grTmIGDnBR2Mo48QdOYnZuz14BEptZEEnE
."Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
F
================================================================================
Failure: test_authorization_flow(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:202:in `test_authorization_flow'
     199:     response = request_authorization TestSetup.users[0], @client
     200:     at = extract_access_token response
     201: 
  => 202:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn']
     203:     assert_equal at['scope'], 'omejdn:write'
     204:     assert_equal at['aud'], [TestSetup.config['token']['audience'], TestSetup.config['host']+'/api']
     205:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
"Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
."Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be dynamic_claims"
F
================================================================================
Failure: test_authorization_flow_with_claims(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:253:in `test_authorization_flow_with_claims'
     250:     response = request_authorization TestSetup.users[2], @client, query_additions
     251:     at = extract_access_token response
     252: 
  => 253:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn', 'dynattribute']
     254:     assert_equal at['scope'], 'omejdn:write'
     255:     assert_equal at['aud'], [TestSetup.config['token']['audience'], TestSetup.config['host']+'/api']
     256:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
"Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
F
================================================================================
Failure: test_authorization_flow_with_resources(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:225:in `test_authorization_flow_with_resources'
     222:     response = request_authorization TestSetup.users[0], @client2, resources
     223:     at = extract_access_token response
     224: 
  => 225:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn']
     226:     assert_equal at['scope'], 'omejdn:write'
     227:     assert_equal at['aud'], ['http://example.org', TestSetup.config['host']+'/api']
     228:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTc1NiwibmJmIjoxNjM2NzE1NzU2LCJleHAiOjE2MzY3MTkzNTZ9.26Bcv88Tecn8MJlFbKZVv7btE4PdFrEfFnoQ1D-Udkhjh9PfWEsSZ6g0gFkgx9g405sDW728Ib2tqQla-tMFMw
Client testClient found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJkeW5hbWljX2NsYWltcyIsImlzcyI6ImR5bmFtaWNfY2xhaW1zIiwiaWF0IjoxNjM2NzE1NzU2LCJuYmYiOjE2MzY3MTU3NTYsImV4cCI6MTYzNjcxOTM1Nn0.sFoIbDBL9s2pEJ41-kmIodhYjOPs8NmUnO3BeEuWLG_ljuxvHT2ZNUY-IJ3wLoVeZZQcTh34WLC5w9RUkAr-Nw
Client dynamic_claims found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTc1NiwibmJmIjoxNjM2NzE1NzU2LCJleHAiOjE2MzY3MTkzNTZ9.l8xyYt3CsJRXEneKCnjZjCbbgYaJ6Q7F6sw4RCY3PN264tJ7B7PbJHATxYoKMKXwg9RXZC1YCLIt1JtEFZ97Ag
Client testClient found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50MiIsImlzcyI6InRlc3RDbGllbnQyIiwiaWF0IjoxNjM2NzE1NzU2LCJuYmYiOjE2MzY3MTU3NTYsImV4cCI6MTYzNjcxOTM1Nn0.PtrNW6v77q9cF9IwbTHBCHlqySgDEWLgmjufvkwet4WIYMc4AJw92rngXqch6WZd7Y0rM4czDuRthg72JgmCPg
Client testClient2 found
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50MiIsImlzcyI6InRlc3RDbGllbnQyIiwiaWF0IjoxNjM2NzE1NzU2LCJuYmYiOjE2MzY3MTU3NTYsImV4cCI6MTYzNjcxOTM1Nn0.LA7oM0fyGbwGqoMgzBduI0oM_94779Wmu_BHEVCEzPdyzImL9UOC9b234BXFFmEm4br68_KB3Jk7DjOfcZj28g
Client testClient2 found
.
Finished in 1.036759171 seconds.
--------------------------------------------------------------------------------
9 tests, 157 assertions, 3 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
66.6667% passed
--------------------------------------------------------------------------------
8.68 tests/s, 151.43 assertions/s
Error: Test tests/test_oauth2.rb unsucessful
sqs@Virtual-Ubuntu-20:~/ALEX_DAPS_2/omejdn-daps/omejdn-server$ ./scripts/test_all.sh 
"No claim mappers available"
Loaded suite tests/test_admin_api
Started
................
Finished in 1.562554393 seconds.
--------------------------------------------------------------------------------
16 tests, 48 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
--------------------------------------------------------------------------------
10.24 tests/s, 30.72 assertions/s
"No claim mappers available"
Loaded suite tests/test_oauth2
Started
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MCwibmJmIjoxNjM2NzE1NjcwLCJleHAiOjE2MzY3MTkyNzB9.HtBJVMcPUWaWtfN8j56-xDsc0Gdwyl1BBJkITSnC8GEuvZK8WnwYWx_GXNS51LNQqYk0Xof7Ey9dU2g6IbU-Dg
Client testClient found
looking for client of eyJhbGciOiJFUzUxMiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MCwibmJmIjoxNjM2NzE1NjcwLCJleHAiOjE2MzY3MTkyNzB9.AF072s2txZcTZoUzkWSSIJOqyHNn7Fb4pdMrU937YOzr_NEGpt13hbRX6yXVzp42CwBE8HksAsclBpkci5-rjyc9ALHYUDjDcwjMc6GYCUg3wnqfjDrch2Dx39tLXe4dDC0D19GijPTIhtpyGFnIhnhrNK8TTPISthrsZCGBcv8W7Tmj
Client testClient found
looking for client of eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MCwibmJmIjoxNjM2NzE1NjcwLCJleHAiOjE2MzY3MTkyNzB9.AlSvCtz3kBrOEHJ31_PVDH9j-wlXKigh_aD2l41z4K71gQk09JpTX5hNYXsXKhFNHVtfaw1s90xuaDYaOl8E-Qy2EvRoIWRfRSdBpRsjlWHtj4WoSVjpm1BVurig9G7zXWNzkFrjPSyMzsiT_PkRRy6IBFplrUQaw-aideHdIrOofzgXwAdokpMVYMObRoIE_vp9EMbtSErT4_E3-XHA1jUp8ODUi42N-zX_-GZjoizL9XTFv_Go3S4MuFSR3L82qxn2XgOdrirEWTxeDRyzyWBuXAX9BivVm5ZwutHhN20ChqVapwbFgRzqLShFwilXpsMpaCpdhUzx1_cFz71WeMTq8GZjUt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Oi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MCwibmJmIjoxNjM2NzE1NjcwLCJleHAiOjE2MzY3MTkyNzB9.STnZ0AnW8WSGhSxs2KKjFA28BzEOk-DkVjpucfAZuysnQ6T0klXyg2IjL2bU3qnrzlRs3BFDHzQE1OovAAK-SJGQbYDndM8x7FpSm7iIm_5Hz95RdyzpyC_gCWJ0VlRRLrin35wNp__8rhwkpLaxStwE50ujME53oJuMcx8JL-xfRnrN6uZnqvwXkANMpC6gw6psWEkw7XDyyvKm_ScORL0LHB5N0CawlrpauV7dAGT07CqcNnj4QAvv_HQJQTdfARVwfbS3XEpoRSC9bjDyPJVr9NEsifmvpMrqa6WHKN63pDdoinP9jli8CZiJSmt_jT8cRD0hG618kAa0KfGZxCpCZs96QkVBQzktFUq0SBX8v_eh_rSs3Nk439Y69T2_y0tKW0HMXXCk4jlJqPF_5mF8d-VjgKvP7H3uTy8cL6P_mBSUJI-MyqCtoUH0H5cBwl-Ab9LiQ2Aj7plOvLdMaa9LLH8JarmvOp0iFgqz5SG8vCxlT-ReRqdP4QTQ7FBym4kShMbyc4j-jHZWIPgkBGmDi4Uui3Z3QCBRCDxZAv6dNOQfd2Ki9EQR9lfGDgx4feyo9GSKQftj1FLnllPkgmximSyCZD8FDJ6IwLqeysOvWN8_4dK8VeWaZCWSRBpZXE-pE99uJZyb_Jv_kQhvOi5k-uSVCb4Rueug5T3I_4g
."Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
F
================================================================================
Failure: test_authorization_flow(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:202:in `test_authorization_flow'
     199:     response = request_authorization TestSetup.users[0], @client
     200:     at = extract_access_token response
     201: 
  => 202:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn']
     203:     assert_equal at['scope'], 'omejdn:write'
     204:     assert_equal at['aud'], [TestSetup.config['token']['audience'], TestSetup.config['host']+'/api']
     205:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
"Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
."Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be dynamic_claims"
F
================================================================================
Failure: test_authorization_flow_with_claims(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:253:in `test_authorization_flow_with_claims'
     250:     response = request_authorization TestSetup.users[2], @client, query_additions
     251:     at = extract_access_token response
     252: 
  => 253:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn', 'dynattribute']
     254:     assert_equal at['scope'], 'omejdn:write'
     255:     assert_equal at['aud'], [TestSetup.config['token']['audience'], TestSetup.config['host']+'/api']
     256:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
"Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
F
================================================================================
Failure: test_authorization_flow_with_resources(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:225:in `test_authorization_flow_with_resources'
     222:     response = request_authorization TestSetup.users[0], @client2, resources
     223:     at = extract_access_token response
     224: 
  => 225:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn']
     226:     assert_equal at['scope'], 'omejdn:write'
     227:     assert_equal at['aud'], ['http://example.org', TestSetup.config['host']+'/api']
     228:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MSwibmJmIjoxNjM2NzE1NjcxLCJleHAiOjE2MzY3MTkyNzF9.Vr3s8cOC6WTRsG_V6TGT0rQ_yUG-z5GwGGoAvh7qXV42_PAHfBm3icdQmt_f5qEUQY46lEGI-jIW613__O7zrA
Client testClient found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJkeW5hbWljX2NsYWltcyIsImlzcyI6ImR5bmFtaWNfY2xhaW1zIiwiaWF0IjoxNjM2NzE1NjcxLCJuYmYiOjE2MzY3MTU2NzEsImV4cCI6MTYzNjcxOTI3MX0.qF3SL7y0N7FyFrbG9LK1zRuY3l6y0dYopEbWTiK6lHkcL9CbHz61lTjxhMxMNQPsGMABLbFkL0w3ifRyVBmUrA
Client dynamic_claims found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTY3MSwibmJmIjoxNjM2NzE1NjcxLCJleHAiOjE2MzY3MTkyNzF9.GzshPYcVQHlO0VNopVLm8VRAcnKw5eONNJqI1OJxv59xFR6hgXN91aQJXv4D9eRXLHiqYoNl4JZU19XucnHGSA
Client testClient found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50MiIsImlzcyI6InRlc3RDbGllbnQyIiwiaWF0IjoxNjM2NzE1NjcxLCJuYmYiOjE2MzY3MTU2NzEsImV4cCI6MTYzNjcxOTI3MX0.vJ6w55swvmDQ6_JYIZ-H1zuBHFVl-h-BeScC1_bSOJG2FABS6lqP3woe5VMyCxNzcON0ckQqaeP_jCa6qn7SOg
Client testClient2 found
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50MiIsImlzcyI6InRlc3RDbGllbnQyIiwiaWF0IjoxNjM2NzE1NjcxLCJuYmYiOjE2MzY3MTU2NzEsImV4cCI6MTYzNjcxOTI3MX0.UmIlEiGDKa3cwjCns_77sjBKJJNMEBrt_vjn9bms8xbpdSk3lPV4aK2yQxpWauI4uxxwR5kmymXoWBNhR2mWNg
Client testClient2 found
.
Finished in 1.092227106 seconds.
--------------------------------------------------------------------------------
9 tests, 157 assertions, 3 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
66.6667% passed
--------------------------------------------------------------------------------
8.24 tests/s, 143.74 assertions/s
Error: Test tests/test_oauth2.rb unsucessful
sqs@Virtual-Ubuntu-20:~/ALEX_DAPS_2/omejdn-daps/omejdn-server$ ./scripts/test_all.sh daps
"No claim mappers available"
Loaded suite tests/test_admin_api
Started
................
Finished in 1.46620181 seconds.
--------------------------------------------------------------------------------
16 tests, 48 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
--------------------------------------------------------------------------------
10.91 tests/s, 32.74 assertions/s
"No claim mappers available"
Loaded suite tests/test_oauth2
Started
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTc1NSwibmJmIjoxNjM2NzE1NzU1LCJleHAiOjE2MzY3MTkzNTV9.qgm-AScKe4lGebzg2uKjWNZBe3kYSz7Xcd5v6r4m51BkB7cxdW1-9r9sSjGq4cjowtEKhQHU7yrL-xnk44iBFA
Client testClient found
looking for client of eyJhbGciOiJFUzUxMiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTc1NSwibmJmIjoxNjM2NzE1NzU1LCJleHAiOjE2M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QsrHrFB3jq64164L1xCJa2BZDPNTDrmGUDdFiQlxLsb4Yf6iVkGd1FR-vFFuJlCp4AuHAR3htbDhyF8N_1BhOcqSK3QXQJG9glvItA9dt1oOPvBw-lGxlhYL8GhYT6oDkT6GpPDkXTYeFQ5ghuXzRWCIl7Syr588CpGJc9Pi7gZO9Zt3CdAn0Xwa9ak4iVHdg5wCyHsgAnnxcwczJalNaw99SeoG85qTeV8gYqco7jEFl00hHbU6OO4c9rZWu0ZKHX0qqI5WhvRxm9WkezVTZ7IbINHcHrWkf8rikazb8u-Eq7RUi_esr453NYblDhixwYZxoT3lf8NECkSKLTNwBgNbz22Q0mzrtirx-LwPL7mqPdYNmfW17ygKkHcewkHXxm1KP6MuMr8o8DW9vsPhZb0TKa-EX_coXMkeI6bwOagED1YROt1apEmLyAHZ7kfszQJDl-1grTmIGDnBR2Mo48QdOYnZuz14BEptZEEnE
."Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
F
================================================================================
Failure: test_authorization_flow(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:202:in `test_authorization_flow'
     199:     response = request_authorization TestSetup.users[0], @client
     200:     at = extract_access_token response
     201: 
  => 202:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn']
     203:     assert_equal at['scope'], 'omejdn:write'
     204:     assert_equal at['aud'], [TestSetup.config['token']['audience'], TestSetup.config['host']+'/api']
     205:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
"Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
."Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be dynamic_claims"
F
================================================================================
Failure: test_authorization_flow_with_claims(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:253:in `test_authorization_flow_with_claims'
     250:     response = request_authorization TestSetup.users[2], @client, query_additions
     251:     at = extract_access_token response
     252: 
  => 253:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn', 'dynattribute']
     254:     assert_equal at['scope'], 'omejdn:write'
     255:     assert_equal at['aud'], [TestSetup.config['token']['audience'], TestSetup.config['host']+'/api']
     256:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
"Checking scope omejdn:write"
"Granted scopes: [\"omejdn:write\"]"
"The user seems to be testUser"
F
================================================================================
Failure: test_authorization_flow_with_resources(OAuth2Test): <false> is not true.
tests/test_oauth2.rb:55:in `check_keys'
tests/test_oauth2.rb:225:in `test_authorization_flow_with_resources'
     222:     response = request_authorization TestSetup.users[0], @client2, resources
     223:     at = extract_access_token response
     224: 
  => 225:     check_keys at, ['scope','aud','iss','nbf','iat','jti','exp','client_id','sub', 'omejdn']
     226:     assert_equal at['scope'], 'omejdn:write'
     227:     assert_equal at['aud'], ['http://example.org', TestSetup.config['host']+'/api']
     228:     assert_equal at['iss'], TestSetup.config['token']['issuer']
================================================================================
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTc1NiwibmJmIjoxNjM2NzE1NzU2LCJleHAiOjE2MzY3MTkzNTZ9.26Bcv88Tecn8MJlFbKZVv7btE4PdFrEfFnoQ1D-Udkhjh9PfWEsSZ6g0gFkgx9g405sDW728Ib2tqQla-tMFMw
Client testClient found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJkeW5hbWljX2NsYWltcyIsImlzcyI6ImR5bmFtaWNfY2xhaW1zIiwiaWF0IjoxNjM2NzE1NzU2LCJuYmYiOjE2MzY3MTU3NTYsImV4cCI6MTYzNjcxOTM1Nn0.sFoIbDBL9s2pEJ41-kmIodhYjOPs8NmUnO3BeEuWLG_ljuxvHT2ZNUY-IJ3wLoVeZZQcTh34WLC5w9RUkAr-Nw
Client dynamic_claims found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50IiwiaXNzIjoidGVzdENsaWVudCIsImlhdCI6MTYzNjcxNTc1NiwibmJmIjoxNjM2NzE1NzU2LCJleHAiOjE2MzY3MTkzNTZ9.l8xyYt3CsJRXEneKCnjZjCbbgYaJ6Q7F6sw4RCY3PN264tJ7B7PbJHATxYoKMKXwg9RXZC1YCLIt1JtEFZ97Ag
Client testClient found
.looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50MiIsImlzcyI6InRlc3RDbGllbnQyIiwiaWF0IjoxNjM2NzE1NzU2LCJuYmYiOjE2MzY3MTU3NTYsImV4cCI6MTYzNjcxOTM1Nn0.PtrNW6v77q9cF9IwbTHBCHlqySgDEWLgmjufvkwet4WIYMc4AJw92rngXqch6WZd7Y0rM4czDuRthg72JgmCPg
Client testClient2 found
looking for client of eyJhbGciOiJFUzI1NiJ9.eyJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjQ1NjciLCJzdWIiOiJ0ZXN0Q2xpZW50MiIsImlzcyI6InRlc3RDbGllbnQyIiwiaWF0IjoxNjM2NzE1NzU2LCJuYmYiOjE2MzY3MTU3NTYsImV4cCI6MTYzNjcxOTM1Nn0.LA7oM0fyGbwGqoMgzBduI0oM_94779Wmu_BHEVCEzPdyzImL9UOC9b234BXFFmEm4br68_KB3Jk7DjOfcZj28g
Client testClient2 found
.
Finished in 1.036759171 seconds.
--------------------------------------------------------------------------------
9 tests, 157 assertions, 3 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
66.6667% passed
--------------------------------------------------------------------------------
8.68 tests/s, 151.43 assertions/s
Error: Test tests/test_oauth2.rb unsucessful

The quest of trying to solve it

What were the results of searching for the error on the internet?

The problem solvings where all regarded to the programming of the code for the solution

What is your best guess as to what might have happened?

An error of code or of configuration may be the cause

bellebaum commented 2 years ago

You have executed the wrong script.

The actual one is located in scripts and called test.sh. Your one is called located in omejdn-server/scripts and called test_all.sh.

Also do not forget to replace CLIENT_NAME with the name of your client.

I will update the README to be more specific about the location and then close this issue