-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[workspace] Add integration test cases for workspace assets. #1639
[workspace] Add integration test cases for workspace assets. #1639
Conversation
454bc3c
to
7a355f2
Compare
...re-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js
Outdated
Show resolved
Hide resolved
...re-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js
Show resolved
Hide resolved
if (Cypress.env('DATASOURCE_MANAGEMENT_ENABLED')) { | ||
cy.createDataSourceNoAuth().then((result) => { | ||
datasourceId = result[0]; | ||
expect(datasourceId).to.be.a('string').that.is.not.empty; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used to verify the data source creation successfully?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, from API side.
...re-opensearch-dashboards/opensearch-dashboards/workspace-plugin/mds_workspace_assets.spec.js
Show resolved
Hide resolved
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
b4a7ee2
to
c29c2f6
Compare
* feat: add functional test for workspace assets Signed-off-by: SuZhou-Joe <[email protected]> * feat: make it compatible with mds case Signed-off-by: SuZhou-Joe <[email protected]> * feat: optimize based on comments Signed-off-by: SuZhou-Joe <[email protected]> * feat: update Signed-off-by: SuZhou-Joe <[email protected]> * feat: remove data sources after test Signed-off-by: SuZhou-Joe <[email protected]> --------- Signed-off-by: SuZhou-Joe <[email protected]> (cherry picked from commit ee2fb80)
…1648) * feat: add functional test for workspace assets Signed-off-by: SuZhou-Joe <[email protected]> * feat: make it compatible with mds case Signed-off-by: SuZhou-Joe <[email protected]> * feat: optimize based on comments Signed-off-by: SuZhou-Joe <[email protected]> * feat: update Signed-off-by: SuZhou-Joe <[email protected]> * feat: remove data sources after test Signed-off-by: SuZhou-Joe <[email protected]> --------- Signed-off-by: SuZhou-Joe <[email protected]> (cherry picked from commit ee2fb80) Co-authored-by: SuZhou-Joe <[email protected]>
}, | ||
}) | ||
.then((resp) => { | ||
cy.wrap(resp.body.saved_objects).should('have.length', 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need cy.wrap
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrap is for making it chainable with an assertion actually.
Description
Add integration test cases for workspace assets.
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.