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

refactor: Read values from synthetic secrets #1028

Merged
merged 1 commit into from
Jan 29, 2024
Merged
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
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
Loading