Skip to content
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

feat: Add synthetic monitor task for onboarding e2e repo #1012

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions test/deploy/onboarding/roles/configure/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
- debug:
msg: Tests E2E

- name: Clone the Onboarding tests repository
git:
repo: https://github.com/newrelic/onboarding-e2e-tests.git
dest: /opt/onboarding-e2e-tests

- name: Write Permissions for repo
shell: "mkdir -p /opt/onboarding-e2e-tests && chmod 755 /opt/onboarding-e2e-tests"

- name: Trigger Onboarding tests
shell: "cd /opt/onboarding-e2e-tests && pwd"

- name: Create env file
shell: "touch /opt/onboarding-e2e-tests/.env"

- name: Store values in env file
shell: |
echo "ENV_SECRET_EMAIL='[email protected]' \nENV_SECRET_PASSWORD='example'" >> /opt/onboarding-e2e-tests/.env

- name: npm install
shell: "npm install"
args:
chdir: /opt/onboarding-e2e-tests

- name: Install Playwright
shell: "npx [email protected] install --with-deps chromium"
args:
chdir: /opt/onboarding-e2e-tests

- name: Test playwright scripts
shell: "npx playwright test"
args:
chdir: /opt/onboarding-e2e-tests
Loading