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

Adds Cypress E2E tests and GitHub Action Cypress workflow #160

Merged
merged 11 commits into from
Jun 17, 2020
Merged

Conversation

ftianli-amzn
Copy link

Issue #, if available:

Description of changes:

  1. Adds Cypress E2E tests, which contains the following test cases:
  • Monitor:
    • Create a monitor
    • Update a monitor by changing the name
    • Delete a monitor
    • Search a monitor
    • Add a trigger to the monitor
    • Add an action to the trigger
  • Destination:
    • Create a destination
    • Update a destination by changing the name
    • Delete a destination
    • Search a destination
  • Alert:
    • Alert can be in Active state
    • Alert can be in Acknowledged state
    • Alert can be in Completed state
    • Alert can be in Error state
    • Alert can be in Deleted state
  1. Adds GitHub Action workflow to run E2E tests on pull requests

References of the code changes:

  1. Adds cypress e2e tests and github action cypress workflow index-management-kibana-plugin#80
  2. https://github.com/opendistro-for-elasticsearch/security-kibana-plugin/pull/172

Note:
This PR is a duplicated one of #158, for the GitHub Action workflow in the PR can not be triggered from other repo, I create this PR to test if the workflow works.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ftianli-amzn ftianli-amzn marked this pull request as ready for review June 17, 2020 18:47
@ftianli-amzn ftianli-amzn merged commit 0f2c701 into opendistro-for-elasticsearch:cypress_od1.8 Jun 17, 2020
ftianli-amzn added a commit that referenced this pull request Aug 25, 2020
* install cypress module

* Add Cypress test cases of basic Monitor CRUD operations

* Add Cypress test cases of Destination CRUD operations and add destination to monitors

* Add Cypress test cases of different Alert states

* Clean up cypress example files

* Add GitHub Action workflow file for Cypress test

* Update README file
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant