Skip to content

Commit

Permalink
refactor: Read credentials from synthetic secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
pjarugula committed Jan 29, 2024
1 parent e525135 commit 0b0834d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/deploy/onboarding-tests/roles/configure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
- debug:
msg: Tests E2E

- name: Set test account email from Synthetic secrets
set_fact:
test_email: {{ test_email }}

- name: Set test account password from Synthetic secrets
set_fact:
test_password: {{ test_password }}

- name: Create directory
shell: "mkdir -p ~/tests && chmod 777 ~/tests"

Expand All @@ -18,7 +26,7 @@

- name: Store values in env file
shell: |
echo "ENV_SECRET_EMAIL='[email protected]' \nENV_SECRET_PASSWORD='example'" >> ~/tests/onboarding-e2e-tests/.env
echo "ENV_SECRET_EMAIL='{{ test_email }}' \nENV_SECRET_PASSWORD='{{test_password }}'" >> ~/tests/onboarding-e2e-tests/.env
- name: Write Permissions for repo
shell: "chmod 755 ~/tests/onboarding-e2e-tests"
Expand Down

0 comments on commit 0b0834d

Please sign in to comment.