-
Notifications
You must be signed in to change notification settings - Fork 103
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
[MD] Replace fake data source endpoint with configurable real endpoint #1260
Conversation
e3efc7a
to
6d23887
Compare
Signed-off-by: Zhongnan Su <szhongna@amazon.com>
@@ -104,11 +104,11 @@ if (Cypress.env('DATASOURCE_MANAGEMENT_ENABLED')) { | |||
'app/management/opensearch-dashboards/dataSources' | |||
); | |||
}); | |||
|
|||
it('with sigV4 and all required inputs to connect to OpenSearch Service', () => { | |||
// TODO: once create datasource with sigv4 is in plance, remove the skip |
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.
typo?
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.
I added that on purpose, since current test infra in workflow was added to support no auth and basic auth. It doesn't support creating AOS/AOSS domain yet. We need to think of a way to either creating one from infra, or add a long running one by configuring it in github secrets for testing purpose
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.
can add more env variables too whether to ran specific suite of tests
@@ -17,12 +17,12 @@ jobs: | |||
with: | |||
test-name: Core Dashboards using Bundle Snapshot | |||
test-command: env CYPRESS_NO_COMMAND_LOG=1 CYPRESS_ML_COMMONS_DASHBOARDS_ENABLED=true CYPRESS_VISBUILDER_ENABLED=true CYPRESS_DATASOURCE_MANAGEMENT_ENABLED=true yarn cypress:run-with-security --browser chromium --spec 'cypress/integration/core-opensearch-dashboards/opensearch-dashboards/**/*.js' | |||
osd-serve-args: --data_source.enabled=true --vis_builder.enabled=true --ml_commons_dashboards.enabled=true | |||
osd-serve-args: --data_source.enabled=true --data_source.ssl.verificationMode=none --vis_builder.enabled=true --ml_commons_dashboards.enabled=true |
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.
just a heads up.
the cypress workflow in OSD doesn't run these tests per PR. It runs with the ciGroup scripts.
The workflow then calls them here: https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/.github/workflows/cypress_workflow.yml#L122
Then OSD gets started up with:
https://github.com/opensearch-project/OpenSearch-Dashboards/blame/main/.github/workflows/cypress_workflow.yml#L33
Should creating a new start cmd in OSD? that does something like yarn start --data_source.enabled --data_source.ssl.verificationMode=none
Then create a new ciGroup(s) for MDS? To start up OSD with MDS and calls the script from this repo to get the MDS tests and run them per PR.
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.
@kavilla Thanks for sharing how cypress workflow in OSD runs tests of functional test repo! I think we can just modify the existing START_CMD
to add --data_source.enabled=true, data_source.ssl.verificationMode=none
. For ciGroup, I think there's an existing one for MDS
"osd:ciGroup5": "echo \"datasource-management-plugin/*.js\"", |
Seems this PR is tagged as 2.15, is that correct? @zhongnansu |
I think it should be tagged 2.14.0. Same for this PR which adds the infra for MDS, #1146 could you help add 2.14.0 label for both? |
Signed-off-by: Zhongnan Su <szhongna@amazon.com> (cherry picked from commit 8b10f8f)
Signed-off-by: Zhongnan Su <szhongna@amazon.com> (cherry picked from commit 8b10f8f)
Description
Test
There are 4 CI related to the function tests is OSD core, and they all failed, not caused by MDS tests and test infra.
data_source.enabled=true
opensearch-dashboards-functional-test/.github/workflows/cypress-workflow-bundle-snapshot-based-windows.yml
Lines 20 to 21 in 79d98ca
Issues Resolved
#1202
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.