Skip to content

Commit

Permalink
fix: Lookup the JWT from an env var in all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alessfg committed Nov 20, 2024
1 parent d743972 commit 00318f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions molecule/downgrade-plus/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
force: false
mode: "0444"

- name: Create ephemeral license JWT file from b64 encoded env var
ansible.builtin.copy:
content: "{{ lookup('env', 'NGINX_JWT') }}"
dest: ../../files/license/license.jwt
force: false
mode: "0444"

- name: Prepare NGINX Plus
hosts: all
tasks:
Expand Down
7 changes: 7 additions & 0 deletions molecule/upgrade-plus/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
force: false
mode: "0444"

- name: Create ephemeral license JWT file from b64 encoded env var
ansible.builtin.copy:
content: "{{ lookup('env', 'NGINX_JWT') }}"
dest: ../../files/license/license.jwt
force: false
mode: "0444"

- name: Prepare NGINX Plus
hosts: all
pre_tasks:
Expand Down

0 comments on commit 00318f2

Please sign in to comment.