Skip to content

Commit

Permalink
Remove space sensitivity from integration tests around metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Christenson II committed Dec 7, 2023
1 parent 53a8248 commit 941b955
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
14 changes: 10 additions & 4 deletions test/integration/apps-test-cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,28 +160,34 @@ tests:
exit-code: 0
stdout:
contains:
- METADATA key=value
- METADATA
- key=value

022 - it successfully creates a native app with a multiple metadata sets, multiple flags:
command: auth0 apps create --name integration-test-app-nativeapp22 --type native --description NativeApp22 --metadata "key=value" --metadata "foo=bar"
exit-code: 0
stdout:
contains:
- METADATA key=value, foo=bar
- METADATA
- key=value
- foo=bar

023 - it successfully creates a native app with a multiple metadata sets, single flag:
command: auth0 apps create --name integration-test-app-nativeapp23 --type native --description NativeApp23 --metadata "key=value,foo=bar"
exit-code: 0
stdout:
contains:
- METADATA key=value, foo=bar
- METADATA
- key=value
- foo=bar

024 - given a test app, it successfully updates the app's details with a metadata set:
command: auth0 apps update $(./test/integration/scripts/get-app-id.sh) --metadata "baz=buzz"
exit-code: 0
stdout:
contains:
- METADATA baz=buzz
- METADATA
- baz=buzz

025 - given a test app, it successfully gets the app's details and outputs in json:
command: auth0 apps show $(./test/integration/scripts/get-app-id.sh) --json
Expand Down
7 changes: 0 additions & 7 deletions test/integration/fixtures/update-rule.json
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
{
"id": "rul_xWavq6OFKbMma9DH",
"name": "integration-test-rule-betterName",
"script": "function(user, context, cb) {\n cb(null, user, context);\n}\n",
"order": 3,
"enabled": false
}

0 comments on commit 941b955

Please sign in to comment.