Skip to content

Commit

Permalink
fix: Move functests to u1.large instancetypes
Browse files Browse the repository at this point in the history
After fixing the missing requirements on windows.11 preferences, they
now need at least 2 vCPUs to pass the functional tests.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
  • Loading branch information
0xFelix committed Nov 20, 2023
1 parent d008605 commit 2309235
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/functest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ for preference in $(${KUBECTL} get virtualmachineclusterpreferences --no-headers
fi
fi

# Ensure a VirtualMachine can be created when enough resources are provided using the u1.medium instance type
if ! ${VIRTCTL} create vm --instancetype u1.medium --preference "${preference}" --volume-containerdisk name:disk,src:quay.io/containerdisks/fedora:latest --name "vm-${preference}" | ${KUBECTL} apply -f - ; then
echo "functest failed on preference ${preference} using instancetype u1.medium"
# Ensure a VirtualMachine can be created when enough resources are provided using the u1.large instance type
if ! ${VIRTCTL} create vm --instancetype u1.large --preference "${preference}" --volume-containerdisk name:disk,src:quay.io/containerdisks/fedora:latest --name "vm-${preference}" | ${KUBECTL} apply -f - ; then
echo "functest failed on preference ${preference} using instancetype u1.large"
exit 1
fi
${KUBECTL} delete "vm/vm-${preference}"
Expand Down

0 comments on commit 2309235

Please sign in to comment.