Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
Fix IT for notebooks frontend and backend (#56)
Browse files Browse the repository at this point in the history
* Test CI

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Test CI 2

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Remove opendistro

Signed-off-by: Joshua Li <joshuali925@gmail.com>

* Update cypress test

Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 authored Jul 10, 2021
1 parent 97c3bc1 commit 96d0e73
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dashboards-notebooks/.cypress/integration/ui.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Testing notebooks table', () => {
cy.get('.euiButton__text').contains(/^Create$/).click();
cy.wait(delay);

cy.get('.euiPageHeaderSection').contains(TEST_NOTEBOOK).should('exist');
cy.contains(TEST_NOTEBOOK).should('exist');
});

it('Duplicates and renames a notebook', () => {
Expand Down
8 changes: 7 additions & 1 deletion opensearch-notebooks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,20 @@ integTest {
if (System.getProperty("test.debug") != null) {
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=8000'
}

// https://github.com/opensearch-project/index-management/pull/93
if (System.getProperty("tests.clustername") != null) {
exclude 'org/opensearch/notebooks/NotebooksPluginIT.class'
}
}


Zip bundle = (Zip) project.getTasks().getByName("bundlePlugin");
integTest.dependsOn(bundle)
integTest.getClusters().forEach{c -> c.plugin(project.getObjects().fileProperty().value(bundle.getArchiveFile()))}

testClusters.integTest {
testDistribution = 'INTEG_TEST'
testDistribution = "ARCHIVE"
// Cluster shrink exception thrown if we try to set numberOfNodes to 1, so only apply if > 1
if (_numNodes > 1) numberOfNodes = _numNodes
// When running integration tests it doesn't forward the --debug-jvm to the cluster anymore
Expand Down

0 comments on commit 96d0e73

Please sign in to comment.