Open davidcui1225 opened 3 years ago
For kibana-reports, we need to add the sample data after Kibana is running and bootstrapped, but before any of the cypress tests begin.
curl -XPOST 'http://localhost:5601/api/sample_data/flights' -H 'kbn-xsrf: true' -H 'Content-Type: application/json'
curl -XPOST 'http://localhost:5601/api/sample_data/ecommerce' -H 'kbn-xsrf: true' -H 'Content-Type: application/json'
curl -XPOST 'http://localhost:5601/api/sample_data/logs' -H 'kbn-xsrf: true' -H 'Content-Type: application/json'
cd kibana/plugins/kibana-reports
yarn cypress:run
curl https://raw.githubusercontent.com/opendistro-for-elasticsearch/kibana-visualizations/main/gantt-chart/.cypress/utils/jaeger-sample.json | curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9200/jaeger/_bulk?pretty' --data-binary @-
curl -X POST "localhost:5601/api/saved_objects/index-pattern/jaeger" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d ' { "attributes": { "title": "jaeger" } } '
cd kibana/plugins/gantt-chart
npx cypress run
Same as Gantt charts but skip step 2
Security is enabled depending on the security_enabled
flag in cypress.json
Hey @davidcui-amzn ,
does the mean the above cypress command should be npx cypress run --env security_enabled=true
Please confirm and update the above command. Thanks!
Added security support to: