-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add new koko test (070) and eslint housekeeping #47
Conversation
- add new 070-user-group-search-and-share test and docs from the koko test paper - add new groups api and add those to the tdk client - add several es-lint rules to the default config and apply those
@@ -16,56 +15,66 @@ export class Search { | |||
this.#api = api; | |||
} | |||
|
|||
sharee(search: string, itemType: ItemType): RefinedResponse<'text'> { |
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.
just a suggestion: maybe it make sence to create separate sharee.ts
file for method sharee
and rename sharee
as get
.
then we get userClient.sharee.get(adminCredential.login, ItemType.folder)
Just `search' I mean using REPORT request
Otherwise ok. I ran the tests - everything works fine
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.
thanks @ScharfViktor, sorry for that but maybe it makes more sense to just merge those 4PRs and concentrate on, #52. As described here this finishes the api's:
const createdShareResponse = userClient.share.create( | ||
folderMovedName, | ||
adminCredential.login, | ||
const shareeSearchResponse = userClient.search.sharee(adminCredential.login, ItemType.folder) |
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.
then we can userClient.sharee.get(adminCredential.login, ItemType.folder)
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.
see above, sorry 😢
#47) (#48) * feat(test): add new koko tests and eslint housekeeping - add new 070-user-group-search-and-share test and docs from the koko test paper - add new groups api and add those to the tdk client - add several es-lint rules to the default config and apply those * fix(artifacts): rebuild artifacts after rebase * fix(test): fix wrong path * feat(test): add new koko tests and some test housekeeping - add new 080-create-space test and docs based on the koko test paper - add client version guard to protect the test from unsupported client versions - rename the api tdk package to endpoints, to not have a api.api route which is needed for ocis - add eslint rule to have linebreaks between class members - stop using k6 response json method - add client endpoints for application - add client endpoints for drive - add client endpoints for role * - add missing client demos to the kitchen sink test - fix static space creation count
Code abstract
Description
sorry for all that noise, essentially this pr only touches test files, specially the newly added
070-user-group-search-and-share
test and docs. Unfortunately i had to apply some new eslint rules for better code style which results in many chore changes.to review you should primary review:
everything else is noise from the linter (you can review it if you want to 😄)
Test abstract
The
user group search and share
test creates a configurable amount of share receivers (users and groups),folders and files, once the provisioning is done, the users search for all share receivers (users and groups),
and then shares the provisioned resources with each.
To confirm that everything went well, the test compares the resolved share recipient with initial share receiver.
admin
createsN
users.N
can be set by using the k6--vus
option.admin
createsN
share receiver groups.N
can be set with the environment variableSHARE_RECEIVERS_GROUP_COUNT
.admin
createsN
share receiver users.N
can be set with the environment variableSHARE_RECEIVERS_USER_COUNT
.user
logs into the system individually.user
createsN
folders.N
can be set with the environment variableASSETS_FOLDER_COUNT
.user
searches for each share receiver.user
shares each folder to all share receivers.user
createsN
txt files.N
can be set with the environment variableASSETS_TEXT_DOCUMENT_COUNT
.user
searches for each share receiver.user
shares each txt file to all share receivers.user
deletes the created files and folders to finalize the test.admin
deletes the created users.admin
deletes the created share receiver users.admin
deletes the created share receiver groups.