Skip to content

Commit

Permalink
Make sure to test all possible grants (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket authored Apr 3, 2023
1 parent 23bab3c commit 8a76cdb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/integration/apps-test-cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,25 @@ tests:
callbacks: "[https://example.com https://google.com]"

014 - it successfully creates a regular app with grants:
command: auth0 apps create --name integration-test-app-regapp5 --type regular --description RegApp4 --grants credentials,password
command: auth0 apps create --name integration-test-app-regapp5 --type regular --description RegApp4 --grants client-credentials,authorization-code,password
exit-code: 0
stdout:
contains:
- GRANTS client_credentials, password
- GRANTS client_credentials, authorization_code, password

015 - it successfully creates a spa app with grants and outputs in json:
command: auth0 apps create --name integration-test-app-spaapp3 --type spa --description SpaApp3 --grants refresh-token --json
command: auth0 apps create --name integration-test-app-spaapp3 --type spa --description SpaApp3 --grants implicit,refresh-token --json
exit-code: 0
stdout:
json:
grant_types: "[refresh_token]"
grant_types: "[implicit refresh_token]"

016 - it successfully creates a native app with grants and outputs in json:
command: auth0 apps create --name integration-test-app-nativeapp2 --type native --description NativeApp2 --grants refresh-token,code --json
command: auth0 apps create --name integration-test-app-nativeapp2 --type native --description NativeApp2 --grants code,mfa-oob,mfa-otp,mfa-recovery-code,password-realm --json
exit-code: 0
stdout:
json:
grant_types: "[refresh_token authorization_code]"
grant_types: "[authorization_code http://auth0.com/oauth/grant-type/mfa-oob http://auth0.com/oauth/grant-type/mfa-otp http://auth0.com/oauth/grant-type/mfa-recovery-code http://auth0.com/oauth/grant-type/password-realm]"

017 - it fails to create a m2m app with device code grant:
command: auth0 apps create --name integration-test-app-m2mapp4 --type m2m --description M2mApp4 --grants credentials,device-code
Expand Down

0 comments on commit 8a76cdb

Please sign in to comment.