influxdb/e2e/Makefile

36 lines
973 B
Makefile
Raw Normal View History

2020-05-13 20:49:31 +00:00
.PHONY: docker-build docker-prep docker-test docker-test-kill docker-report test clean
RUNCMD ?= cucumber-js --tags 'not @tested and not @error-collateral'
docker-build:
docker build -t e2e-tests -f scripts/Dockerfile.e2e .
docker-prep:
mkdir -p /tmp/report \
&& docker pull quay.io/influxdb/influx:nightly
docker run -d --rm --name=test-influxdb quay.io/influxdb/influx:nightly influxd --e2e-testing=true \
&& sleep 30s
docker-test: docker-build
docker run --rm --name=test-e2e -v /tmp/report:/selenium-accept-infl2/report --network=container:test-influxdb e2e-tests ${RUNCMD}
docker-report:
docker run --rm -t --name=test-e2e -v /tmp/report:/selenium-accept-infl2/report e2e-tests npm run report:html
docker-test-kill:
docker rm -f test-e2e
test: docker-test docker-report
clean:
docker rm -f test-influxdb
rm -rf /tmp/report
chore(e2e): update selectors and add containerization (#19221) * update: patch in tests from bonitoo-io/selenium-accept-infl2 * fix: add dataExplorer.feature - forgotten yesterday * update: refactor e2e test configuration * update: set actual cloud credentials in config * fix: issue with headless switch in config * update: WIP cloud experim and refactoring to use client libs * update: sync variablesTab with upstream changes * fix: clumsy use of resultObserver without promise * fix: troubleshoot merge issue * wip: Refactor using client APIs. * wip: refactoring tests with new client API * update: tokens tests * wip: fixing variables tests * fix: selectors for settings variables tests * update: update selectors for dashboards and cellEdit * e2e(fix): update selectors for generic popup * e2e(fix): fix note cell test * e2e(circleci): try and force nightly build * e2e(circleci): try and force nightly build bis * e2e(circleci): troubleshoot build issues * e2e(circleci): fix type * e2e(circleci): check circleci build * e2e(circleci): troubleshoot build failure * e2e(circleci): troubleshout circleci build * e2e(circleci): troubleshoot circleci build issues * e2e(circleci): troubleshoot build schedule * e2e(update): wip updating alerts selectors * e2e(circleci): troubleshoot reporting from tests * e2e(update): fix alert selectors - WIP * e2e(circleci): troubleshoot reporting issues in circleci * e2e(update): monitoring selector fixes * e2e(circleci): troubleshoot reporting issues * e2e(update): fix monitoring selectors * e2e(circleci): change cron trigger schedule for bonitoo * e2e(config): add ENV to declare username * test: add semantic commit * e2e: remove debug lines from old config.yml * fix(temp): remove bonitoo workflow from config.yml * fix(e2e): reset cron for hourly-e2e to original values * dataExplorer.feature new scenarios * fix(e2e): generalize urls in telegraf asserts * fix(e2e): troubleshoot circleci build * fix: update .circleci/config.yml nightly acceptance test and sync with upstream * fix(e2e): troubleshoot network issues on jenkins * fix(e2): troubleshoot jenkins failures * fix(e2e): troubleshoot jenkins issues * fix(e2e): troubleshoot jenkins failures * fix(e2e): troubleshoot test issues - change page load strategy * fix(e2e): troubleshoot build issues * fix(e2e): troubleshoot build issues * fix(e2e): add paranoia checks on using UI signin * fix(e2e): troubleshoot test issues * fix(e2e): change handling of env params * fix(e2e): troubleshoot signin stale elem issue * fix(e2e): typo * fix(e2e): synch selectors with recent UI changes * fix(e2e): update check for stale element on signin * fix(e2e): fine tune retry on stale element signin * fix(e2e): lengthen signin retry * fix(e2): try second stale element workaround * fix(e2): attempt to workaround stale element * fix(e2): try cruder solution to stale element on sign in * fix(e2): lengthen timeout for signing page load * fix(e2e): clear notifications before save in dataexplorer * fixes(e2e): update variables button selector * fix(e2e): cleanup data explorer test variable - from browser * fixes(e2e): stash experim changes to cucumber.js * fixes(e2e): troubleshoot deadman check failure * fix(e2e): stash cucumber.js * fix(e2e): update selectors for telegraf delete * fixes(e2e): extend timeout for input to monaco * fixes(e2e): troubleshoot timeout issue on paste into monaco * fixes(e2e): safety commit containerize * fixes(e2e): generic page header no longer applies - temp fix * fixes(e2e): changes to headers temp fixes * chore(e2e): stash acceptance test containerize work * chore(e2e): clean debug messages * feat(e2e): commandline args in containerized test script * fixes(e2e): add junit report generation to container script * fixes(e2e): set delay for selenoid startup * fixes(e2e): stop docker containers after tests * fix(e2e): drop bonitoo argv args before cucumber calls ArgvParser * chore(e2e): update README and remove experim naming * fix(e2e): troubleshoot occasional flake in notification assertions * feat(e2e): add simple performance utility for cloud * feat(e2e): tweek performance util * feat(e2e): start cloud testing with containerized tests * fix(e2e): halt script on unset required params * fix(e2e): remove messages that could leak info * fix(e2e): troubleshoot jenkins credentials * fix(e2e): troubleshoot parameter issues in jenkins * fix(e2e): cleanup troubleshoot code * fix(e2e): update create variables popup selector * fix(e2e): update submit button for template popup * fix(e2e): update selectors for data tokens tests * fix(e2e): sync alerts tests with recent changes * chore(e2e): add cloud specific Dockerfile * chore(e2e): add reporting to cloud dockerfile Co-authored-by: Cubone21 <kyuboun@gmail.com>
2020-08-05 15:22:09 +00:00
bonitoo-prep:
npm run influx:setup
bonitoo-docker:
./scripts/containerTests.sh
bonitoo-test: bonitoo-prep bonitoo-docker