Skip to content

Commit

Permalink
Merge pull request #417 from reubenmiller/fix-remove-invalid-user-exa…
Browse files Browse the repository at this point in the history
…mple

fix(users update): remove example that no longer works due to security changes in Cumulocity
  • Loading branch information
reubenmiller authored Dec 1, 2024
2 parents 4036815 + 12a4937 commit 6da3dab
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
5 changes: 0 additions & 5 deletions api/spec/json/users.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,6 @@
{
"description": "Update a user",
"command": "c8y users update --id \"myuser\" --firstName \"Simon\""
},
{
"description": "Update the email field in each user to match the id (if the id includes the @ sign)",
"command": "c8y users list --filter \"id like *@*\" | c8y users update --template \"{email: input.value.id}\"\n",
"skipTest": true
}
]
},
Expand Down
5 changes: 0 additions & 5 deletions api/spec/yaml/users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,11 +308,6 @@ commands:
- description: Update a user
command: c8y users update --id "myuser" --firstName "Simon"

- description: Update the email field in each user to match the id (if the id includes the @ sign)
command: |
c8y users list --filter "id like *@*" | c8y users update --template "{email: input.value.id}"
skipTest: true

pathParameters:
- name: id
type: user[]
Expand Down
3 changes: 0 additions & 3 deletions pkg/cmd/users/update/update.auto.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions tests/auto/users/tests/users_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,3 @@ tests:
body.firstName: Simon
method: PUT
path: /user/$C8Y_TENANT/users/myuser
users_update_Update the email field in each user to match the id (if the id includes the @ sign):
command: '$TEST_SHELL -c ''c8y users list --filter "id like *@*" | c8y users update --template "{email: input.value.id}"'''
exit-code: 0
skip: true
stdout:
json:
method: PUT
path: /user/$C8Y_TENANT/users/{id}

0 comments on commit 6da3dab

Please sign in to comment.