-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests-only][full-ci] adding test for deleting auth-app token using the token received from auth-app list request #10814
base: master
Are you sure you want to change the base?
Conversation
c344afd
to
ee95a6e
Compare
ee95a6e
to
6688f7d
Compare
6688f7d
to
bdb3337
Compare
ff5d546
to
f07448a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is your PR missing information about #10675. So confusing. I think you need to update bug report title to be more specific and this PR title too.
f07448a
to
e1c1d14
Compare
e1c1d14
to
aa37bda
Compare
|
ec0a773
to
4b3aa45
Compare
b78e67a
to
d76a50c
Compare
7fca83d
to
3e7056a
Compare
3e7056a
to
f063273
Compare
Then the HTTP status code should be "200" | ||
And user "Admin" should have "0" auth-app tokens | ||
When user "Admin" lists all created tokens using the auth-app API |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we have cli command to list tokens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, i don't see list command in the docs. https://owncloud.dev/services/auth-app/#via-cli-dev-only
and not in the cli tool too ocis/bin/ocis auth-app --help
NAME:
ocis auth-app - auth-app service commands
USAGE:
ocis auth-app command [command options]
COMMANDS:
help, h Shows a list of commands or help for one command
info:
health check health status
version print the version of this binary and the running service instances
maintenance:
create create an app auth token for a user
server:
server start the auth-app service without runtime (unsupervised mode)
OPTIONS:
--help, -h show help
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you checked edge cases like
- admin creating app-token for alice user and alice user deleting that toke
- alice user creating token for him/her self and admin deleting that token
- admin creating token for alice, brian tries to delete alice token
@nirajacharya2 Please, add them to the QA ticket |
it is covered here
|
f063273
to
559b7cf
Compare
it was mentioned in the issue as |
|
Co-authored-by: Prashant Gurung <[email protected]>
559b7cf
to
a8230b1
Compare
Description
This PR adds test for deleting auth-app token using the token received from auth-app list request
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: