Skip to content

Commit

Permalink
ci: update upgrade test and canaries
Browse files Browse the repository at this point in the history
  • Loading branch information
rajrohanyadav committed Feb 21, 2025
1 parent 3825a62 commit 6550d88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions test/canaries/deploy_canaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
fips_enabled: "{{ '-fips' in inventory_hostname }}"

- name: install previous agent in container
# Remove the "when" condition after second release https://new-relic.atlassian.net/browse/NR-355851
when: "'-fips' not in inventory_hostname"
ansible.builtin.include_role:
name: caos.ansible_roles.infra_agent
vars:
Expand Down
5 changes: 4 additions & 1 deletion test/packaging/ansible/agent-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
name: caos.ansible_roles.infra_agent
vars:
uninstall: true
fips_enabled: "{{ '-fips' in inventory_hostname }}"

tasks:
- name: agent upgrade tests suite
# TODO: https://new-relic.atlassian.net/browse/NR-355851 Update when two releases with FIPS are done
# Also add FIPS tests
vars:
target_agent_version: "1.57.1"
target_agent_version: "1.60.0"

block:

Expand All @@ -27,6 +28,7 @@
vars:
target_version: "{{ target_agent_version }}"
repo_endpoint: "http://nr-downloads-ohai-staging.s3-website-us-east-1.amazonaws.com/infrastructure_agent"
fips_enabled: "{{ '-fips' in inventory_hostname }}"

- name: Assert version
include_role:
Expand All @@ -45,6 +47,7 @@
name: caos.ansible_roles.infra_agent
vars:
install_only_if_present: "yes"
fips_enabled: "{{ '-fips' in inventory_hostname }}"

- name: assert service countinues running after upgrade
include_role:
Expand Down
1 change: 0 additions & 1 deletion test/packaging/ansible/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

- name: Agent upgrade
import_playbook: agent-upgrade.yml
when: "'-fips' not in inventory_hostname" # TODO: https://new-relic.atlassian.net/browse/NR-355851

- name: Shutdown , terminate and HNR alerts
import_playbook: shutdown-and-terminate.yml
Expand Down

0 comments on commit 6550d88

Please # to comment.