Skip to content

Commit

Permalink
Merge pull request #375 from klihub/devel/e2e/default-to-fedora-40-cl…
Browse files Browse the repository at this point in the history
…oud-base

e2e: switch default test distro to fedora/40-cloud-base.
  • Loading branch information
fmuyassarov authored Oct 5, 2024
2 parents 34e0018 + ab25ea1 commit ed00b79
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
22 changes: 16 additions & 6 deletions test/e2e/playbook/provision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,23 @@
when: ansible_facts['distribution'] == "Ubuntu"

- name: Install rpm packages
ansible.builtin.dnf:
pkg:
- iproute-tc
- grubby
state: present
update_cache: true
when: ansible_facts['distribution'] == "Fedora"
block:
- name: Common rpm packages
ansible.builtin.dnf:
pkg:
- iproute-tc
- grubby
state: present
update_cache: true
- name: Extra python3 rpm packages for ansible
ansible.builtin.dnf:
pkg:
- python3-libselinux
- python3-packaging
state:
present
when: ansible_facts['distribution_major_version'] | int >= 40

- name: Disable SELinux
ansible.posix.selinux:
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

TITLE="NRI Resource Policy End-to-End Testing"
DEFAULT_DISTRO=${DEFAULT_DISTRO:-"generic/fedora37"}
DEFAULT_DISTRO=${DEFAULT_DISTRO:-"fedora/40-cloud-base"}

# Other tested distros
# generic/ubuntu2204
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
TESTS_DIR="$1"
RUN_SH="${0%/*}/run.sh"

DEFAULT_DISTRO=${DEFAULT_DISTRO:-"generic/fedora37"}
DEFAULT_DISTRO=${DEFAULT_DISTRO:-"fedora/40-cloud-base"}

k8scri=${k8scri:="containerd"}

Expand Down

0 comments on commit ed00b79

Please sign in to comment.