-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fips): update tests to run for fips packages
* update harvest tests to run for fips packages * chore: update action versions * update packaging tests * assume role for 2 hours as tests can take longer than 1 hour
- Loading branch information
1 parent
69e3f6c
commit 0aaa822
Showing
19 changed files
with
264 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 26 additions & 6 deletions
32
test/harvest/ansible/roles/build-harvest-tests/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 16 additions & 5 deletions
21
test/harvest/ansible/roles/run-harvest-tests/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
--- | ||
|
||
- name: register os/arch specific binary name | ||
set_fact: | ||
os_arch_binary_name: "{{ os_arch_binary_name_tpl | replace('%GOOS%',ansible_system|lower) | replace('%GOARCH%',architecture_map[ansible_architecture]) }}" | ||
- name: Register os/arch specific binary name | ||
ansible.builtin.set_fact: | ||
os_arch_binary_name: "{{ os_arch_binary_name_tpl | ||
| replace('%GOOS%', ansible_system | lower) | ||
| replace('%GOARCH%', architecture_map[ansible_architecture]) }}" | ||
when: "'-fips' not in inventory_hostname" | ||
|
||
- name: copy binary | ||
- name: Register os/arch specific binary name - FIPS | ||
ansible.builtin.set_fact: | ||
os_arch_binary_name: "{{ os_arch_binary_name_tpl_fips | ||
| replace('%GOOS%', ansible_system | lower) | ||
| replace('%GOARCH%', architecture_map[ansible_architecture]) }}" | ||
when: "'-fips' in inventory_hostname" | ||
|
||
- name: Copy binary | ||
ansible.builtin.copy: | ||
src: "{{ agent_root_dir }}/{{ os_arch_binary_name }}" | ||
dest: "{{ ansible_user_dir }}/{{ os_arch_binary_name }}" | ||
mode: '0755' | ||
|
||
- include_tasks: "execute-tests-{{ ansible_system }}.yaml" | ||
- name: Include OS-specific test tasks | ||
ansible.builtin.include_tasks: "execute-tests-{{ ansible_system }}.yaml" | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.