-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify the constants path and fix the 'createIndexPattern()' command
Signed-off-by: Ryan Liang <[email protected]>
- Loading branch information
Showing
6 changed files
with
65 additions
and
38 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
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
52 changes: 52 additions & 0 deletions
52
cypress/utils/plugins/security-dashboards-plugin/index.d.ts
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,52 @@ | ||
// 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>; | ||
} | ||
} |
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