-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Incremental improvements on server
* When queried fields are invalid, return error * Allow listing all users using admin endpoint * Add e2e tests validating new features Signed-off-by: Mahendra Paipuri <[email protected]>
- Loading branch information
1 parent
e4447b9
commit 78d4e23
Showing
6 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
pkg/api/testdata/output/e2e-test-api-server-units-invalid-query.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"status":"error","data":null,"errorType":"bad_data","error":"invalid query fields"} |
1 change: 1 addition & 0 deletions
1
pkg/api/testdata/output/e2e-test-api-server-user-admin-all-query.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"status":"success","data":[{"cluster_id":"slurm-0","resource_manager":"slurm","name":"testusr","projects":["testacc"]},{"cluster_id":"slurm-0","resource_manager":"slurm","name":"usr1","projects":["acc1","acc2"]},{"cluster_id":"slurm-0","resource_manager":"slurm","name":"usr15","projects":["acc1"]},{"cluster_id":"slurm-0","resource_manager":"slurm","name":"usr2","projects":["acc2"]},{"cluster_id":"slurm-0","resource_manager":"slurm","name":"usr3","projects":["acc3"]},{"cluster_id":"slurm-0","resource_manager":"slurm","name":"usr4","projects":["acc4"]},{"cluster_id":"slurm-0","resource_manager":"slurm","name":"usr8","projects":["acc1"]},{"cluster_id":"slurm-1","resource_manager":"slurm","name":"testusr","projects":["testacc"]},{"cluster_id":"slurm-1","resource_manager":"slurm","name":"usr1","projects":["acc1","acc2"]},{"cluster_id":"slurm-1","resource_manager":"slurm","name":"usr15","projects":["acc1"]},{"cluster_id":"slurm-1","resource_manager":"slurm","name":"usr2","projects":["acc2"]},{"cluster_id":"slurm-1","resource_manager":"slurm","name":"usr3","projects":["acc3"]},{"cluster_id":"slurm-1","resource_manager":"slurm","name":"usr4","projects":["acc4"]},{"cluster_id":"slurm-1","resource_manager":"slurm","name":"usr8","projects":["acc1"]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters