-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add different access level test cases in workspace update flow (#1630) (
#1657) * Add test case work different access level in workspace update Signed-off-by: Lin Wang <[email protected]> * Update cypress/integration/core-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_detail.spec.js Co-authored-by: Yulong Ruan <[email protected]> Signed-off-by: Lin Wang <[email protected]> * Address PR comments Signed-off-by: Lin Wang <[email protected]> * Replace kibanaserver with self created workspace test user Signed-off-by: Lin Wang <[email protected]> * Delete role after test finish Signed-off-by: Lin Wang <[email protected]> * Delete role mapping Signed-off-by: Lin Wang <[email protected]> --------- Signed-off-by: Lin Wang <[email protected]> Signed-off-by: SuZhou-Joe <[email protected]> Co-authored-by: Yulong Ruan <[email protected]> Co-authored-by: SuZhou-Joe <[email protected]> (cherry picked from commit 7e05a4f) Co-authored-by: Lin Wang <[email protected]>
- Loading branch information
1 parent
449b99d
commit 22c8e32
Showing
4 changed files
with
165 additions
and
29 deletions.
There are no files selected for viewing
32 changes: 16 additions & 16 deletions
32
cypress/fixtures/dashboard/opensearch_dashboards/workspace/workspaceTestRole.json
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"cluster_permissions": ["*"], | ||
"index_permissions": [ | ||
{ | ||
"index_patterns": ["*"], | ||
"fls": [], | ||
"masked_fields": [], | ||
"allowed_actions": ["*"] | ||
} | ||
], | ||
"tenant_permissions": [ | ||
{ | ||
"tenant_patterns": ["*"], | ||
"allowed_actions": ["kibana_all_write"] | ||
} | ||
] | ||
} | ||
"cluster_permissions": ["*"], | ||
"index_permissions": [ | ||
{ | ||
"index_patterns": ["*"], | ||
"fls": [], | ||
"masked_fields": [], | ||
"allowed_actions": ["*"] | ||
} | ||
], | ||
"tenant_permissions": [ | ||
{ | ||
"tenant_patterns": ["*"], | ||
"allowed_actions": ["kibana_all_write"] | ||
} | ||
] | ||
} |
4 changes: 2 additions & 2 deletions
4
cypress/fixtures/dashboard/opensearch_dashboards/workspace/workspaceTestRoleMapping.json
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"users": ["workspace-test"] | ||
} | ||
"users": ["workspace-test"] | ||
} |
4 changes: 2 additions & 2 deletions
4
cypress/fixtures/dashboard/opensearch_dashboards/workspace/workspaceTestUser.json
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"password": "testUserPassword123" | ||
} | ||
"password": "testUserPassword123" | ||
} |
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