forked from opensearch-project/security-dashboards-plugin
-
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.
Signed-off-by: Ryan Liang <[email protected]>
- Loading branch information
Showing
9 changed files
with
100 additions
and
101 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,55 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this file except in compliance with the License. | ||
* A copy of the License is located at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed | ||
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
// type definitions for custom commands like "createDefaultTodos" | ||
// / <reference types="cypress" /> | ||
|
||
declare namespace Cypress { | ||
interface Chainable<Subject> { | ||
/** | ||
* Create a test tenant by calling REST API | ||
* @example | ||
* cy.createTenant('test_tenant', tenantJsonFixture ) | ||
*/ | ||
createTenant<S = any>(tenantID: string, tenantJson: string): Chainable<S>; | ||
} | ||
|
||
interface Chainable<Subject> { | ||
/** | ||
* Create an internal user by calling REST API | ||
* @example | ||
* cy.createInternalUser('test_user', userJsonFixture ) | ||
*/ | ||
createInternalUser<S = any>(userID: string, userJson: string): Chainable<S>; | ||
} | ||
|
||
interface Chainable<Subject> { | ||
/** | ||
* Create a role by calling REST API | ||
* @example | ||
* cy.createRole('role_name', roleJsonFixture ) | ||
*/ | ||
createRole<S = any>(roleID: string, roleJson: string): Chainable<S>; | ||
} | ||
|
||
interface Chainable<Subject> { | ||
/** | ||
* Create a role mapping by calling REST API | ||
* @example | ||
* cy.createRoleMapping('role_name', rolemappingJsonFixture ) | ||
*/ | ||
createRoleMapping<S = any>(roleID: string, rolemappingJson: string): Chainable<S>; | ||
} | ||
} |