-
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
15 changed files
with
114 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ | |
"VISBUILDER_ENABLED": false, | ||
"DATASOURCE_MANAGEMENT_ENABLED": false | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...s/fixtures/plugins/security-dashboards-plugin/indexpatterns/indexPatternTenantHeader.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 @@ | ||
{ | ||
"securitytenant": ["test"] | ||
} | ||
} |
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
6 changes: 3 additions & 3 deletions
6
cypress/fixtures/plugins/security-dashboards-plugin/rolesmapping/kibanauserRoleMapping.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,4 +1,4 @@ | ||
{ | ||
"backend_roles" : [ "kibanauser" ], | ||
"users" : [ "test1", "test2" ] | ||
} | ||
"backend_roles" : [ "kibanauser" ], | ||
"users" : [ "test1", "test2" ] | ||
} |
2 changes: 1 addition & 1 deletion
2
cypress/fixtures/plugins/security-dashboards-plugin/rolesmapping/roleWithTestMapping.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" : [ "test1" ] | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
cypress/fixtures/plugins/security-dashboards-plugin/rolesmapping/roleWithoutTestMapping.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" : [ "test2" ] | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
cypress/fixtures/plugins/security-dashboards-plugin/tenants/testTenant.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 @@ | ||
{ | ||
"description": "This test tenant for aggregation view feature testing." | ||
} | ||
} |
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
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