Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
config_version: 2
config:
dynamic:
kibana:
multitenancy_enabled: false
http:
anonymous_auth_enabled: false
authc:
Expand All @@ -56,6 +58,7 @@ jobs:
authentication_backend:
type: intern
EOT
cp config_custom.yml config_custom_remote.yml

- name: Download security plugin and create setup scripts
uses: ./.github/actions/download-plugin
Expand All @@ -72,7 +75,7 @@ jobs:
plugins: "file:$(pwd)/opensearch-security.zip"
security-enabled: true
admin-password: ${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }}
security_config_file: config_custom.yml
security_config_file: config_custom_remote.yml
port: 9202
jdk-version: 21
resource-sharing-enabled: true
Expand All @@ -94,8 +97,7 @@ jobs:
opensearch.username: "kibanaserver"
opensearch.password: "kibanaserver"
opensearch.requestHeadersWhitelist: [ authorization,securitytenant ]
opensearch_security.multitenancy.enabled: true
opensearch_security.multitenancy.tenants.preferred: ["Private", "Global"]
opensearch_security.multitenancy.enabled: false
opensearch_security.readonly_mode.roles: ["kibana_read_only"]
opensearch_security.cookie.secure: false
data_source.enabled: true
Expand All @@ -106,6 +108,7 @@ jobs:
- name: Run Cypress Tests
uses: ./.github/actions/run-cypress-tests
with:
security_config_file: config_custom.yml
dashboards_config_file: opensearch_dashboards_multidatasources.yml
yarn_command: 'CYPRESS_VERIFY_TIMEOUT=60000 yarn cypress:run --browser chrome --headless --env LOGIN_AS_ADMIN=true --spec "test/cypress/e2e/multi-datasources/multi_datasources_enabled.spec.js"'
resource_sharing_enabled: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ let localDataSourceUrl;

describe('Multi-datasources enabled', () => {
beforeEach(() => {
localStorage.setItem('opendistro::security::tenant::saved', '""');
localStorage.setItem('home:newThemeModal:show', 'false');
createDataSource().then((resp) => {
if (resp && resp.body) {
Expand Down Expand Up @@ -156,14 +155,6 @@ describe('Multi-datasources enabled', () => {
});
});

it('Checks Tenancy Tab', () => {
// Datasource is locked to local cluster for tenancy tab
cy.visit(`http://localhost:5601/app/security-dashboards-plugin${localDataSourceUrl}#/tenants`);

cy.contains('h1', 'Dashboards multi-tenancy');
cy.get('[data-test-subj="dataSourceViewButton"]').should('contain', 'Local cluster');
});

it('Checks Audit Logs Tab', () => {
cy.request({
method: 'POST',
Expand Down
2 changes: 1 addition & 1 deletion test/jest_integration/security_entity_api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ describe('start OpenSearch Dashboards server multi datasources enabled', () => {
password: OPENSEARCH_DASHBOARDS_SERVER_PASSWORD,
},
opensearch_security: {
multitenancy: { enabled: true, tenants: { preferred: ['Private', 'Global'] } },
multitenancy: { enabled: false },
},
},
{
Expand Down
Loading