GitHub user sardell reopened a pull request:
https://github.com/apache/metron/pull/1004
METRON-1489: Retrofit UI tests to run reliably
## Contributor Comments
This Pull Request includes work started by @iraghumitra on his branch
`e2e-using-await-1`. In addition to the asyn/await work he did, I added
[protractor-flake](https://github.com/NickTomlin/protractor-flake) in order to
re-run failing tests to ensure they are actual failures and not the result of
flakey tests.
In order to test locally, be sure to install protractor-flake before
running the e2e tests. This is done by running `npm install` inside of the
metron-alerts directory.
## Pull Request Checklist
Thank you for submitting a contribution to Apache Metron.
Please refer to our [Development
Guidelines](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=61332235)
for the complete guide to follow for contributions.
Please refer also to our [Build Verification
Guidelines](https://cwiki.apache.org/confluence/display/METRON/Verifying+Builds?show-miniview)
for complete smoke testing guides.
In order to streamline the review of the contribution we ask you follow
these guidelines and ask you to double check the following:
### For all changes:
- [x] Is there a JIRA ticket associated with this PR? If not one needs to
be created at [Metron
Jira](https://issues.apache.org/jira/browse/METRON/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel).
- [x] Does your PR title start with METRON-XXXX where XXXX is the JIRA
number you are trying to resolve? Pay particular attention to the hyphen "-"
character.
- [x] Has your PR been rebased against the latest commit within the target
branch (typically master)?
### For code changes:
- [x] Have you included steps to reproduce the behavior or problem that is
being changed or addressed?
- [x] Have you included steps or a guide to how the change may be verified
and tested manually?
- [x] Have you ensured that the full suite of tests and checks have been
executed in the root metron folder via:
```
mvn -q clean integration-test install &&
dev-utilities/build-utils/verify_licenses.sh
```
- [x] Have you written or updated unit tests and or integration tests to
verify your changes?
- [x] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [x] Have you verified the basic functionality of the build by building
and running locally with Vagrant full-dev environment or the equivalent?
### For documentation related changes:
- [x] Have you ensured that format looks appropriate for the output in
which it is rendered by building and verifying the site-book? If not then run
the following commands and the verify changes via
`site-book/target/site/index.html`:
```
cd site-book
mvn site
```
#### Note:
Please ensure that once the PR is submitted, you check travis-ci for build
issues and submit an update to your PR as soon as possible.
It is also recommended that [travis-ci](https://travis-ci.org) is set up
for your personal repository such that your branches are built there before
submitting a pull request.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sardell/metron METRON-1489
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/metron/pull/1004.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1004
----
commit 4073976e0808f7b496826deb487699e1d6925e21
Author: iraghumitra <raghumitra.ksv@...>
Date: 2018-04-26T09:07:57Z
Initial commit for e2e tests in new branch
commit a4378c39c568a2c4c63720d9babbecdafe8ef2e5
Author: Shane Ardell <sardell@...>
Date: 2018-04-27T10:49:25Z
METRON-1489: fix test to account for leap year days
commit c9a04371046383a67ee41947f4f406556b3b3146
Author: Shane Ardell <sardell@...>
Date: 2018-04-27T11:06:16Z
METRON-1489: fix flakey test results with protractor-flake
commit 6e2dfccadc423bdf2906d3614a2d49803894139f
Author: Shane Ardell <sardell@...>
Date: 2018-05-03T09:16:53Z
add protractor option to run headless
commit 7c6e98e0d2cf2a338afabf5988d5974ddaebad5a
Author: Shane Ardell <sardell@...>
Date: 2018-05-03T11:00:55Z
uncomment tests and assertions that now pass
commit b8ad518cf2092b220dcd05c9b6ee4b170e142782
Author: Shane Ardell <sardell@...>
Date: 2018-05-03T11:33:00Z
remove outdated code
commit 4c8f83e6bdbf691bdd61efd9ec89db914059f105
Author: Shane Ardell <sardell@...>
Date: 2018-05-03T11:34:47Z
add workaround for ssh2 auth failure
commit 67580a6d400cfcdf2b7583ba3a1695fcfb30e051
Author: Shane Ardell <sardell@...>
Date: 2018-05-11T16:37:59Z
cleanup commented out code
commit fd1fb6e948b60ad4d64bc9ebea1bd2ccece995db
Author: Shane Ardell <sardell@...>
Date: 2018-05-14T14:19:55Z
fix e2e section formatting and typos in alerts documentation
commit 9d95f6a8867fc4e7b536ab539d3287a4a426ee26
Author: Shane Ardell <sardell@...>
Date: 2018-05-14T14:40:57Z
uncomment timestamp test in custom date save test
commit 8a37ee22a950dc288bfb822814d13e3be3ee1e3f
Author: Shane Ardell <sardell@...>
Date: 2018-05-14T15:46:39Z
remove commented out lines from alerts-list test functions
commit 4fd175b9694f74b0e2bde263eb4fff7035147c0e
Author: Shane Ardell <sardell@...>
Date: 2018-05-16T08:45:03Z
remove unused code from protractor config
commit 51d5875c9b24d9fb280aee9dd05e6d270193ba33
Author: Shane Ardell <sardell@...>
Date: 2018-06-05T12:08:46Z
add async/await and cleanup alert-details e2e tests
commit 812c4c631f3d407ea578f73b59d50e7a4634fc0c
Author: Shane Ardell <sardell@...>
Date: 2018-06-05T12:51:03Z
uncomment all test files
commit 452826c93b0c45f1b7b22e64b28c315b0962487b
Author: Shane Ardell <sardell@...>
Date: 2018-06-05T12:52:13Z
cleanup clickOnRow function
commit d2599169a930ac4d62d7cccfe715735c19a8ee1e
Author: Shane Ardell <sardell@...>
Date: 2018-06-05T12:54:27Z
disable only comment tests that rely on getText()
----
---