Yes, excellent point. I am now providing manual test for all of the other releases:
-----------------------------
#!/bin/bash set -e
series=$1
name=$series-test
function cleanup { lxc delete $name --force }
function on_err { echo -e "Test Failed" cleanup exit 1 }
trap on_err ERR
if [ $series == "xenial" ]; then security_id="CVE-2020-26262" elif [ $series == "focal" ]; then security_id="USN-4539-1" elif [ $series == "jammy" ]; then security_id="CVE-2023-1326" elif [ $series == "kinetic" ]; then security_id="CVE-2023-1326" fi
function upgrade_to_proposed { echo -e "\n-------------------------------------------" echo "** upgrading to 27.14.4 from proposed" echo "-------------------------------------------" lxc exec $name -- sh -c "echo \"deb http://archive.ubuntu.com/ubuntu $series-proposed main\" | tee /etc/apt/sources.list.d/proposed.list" lxc exec $name -- apt-get update > /dev/null lxc exec $name -- apt-get install ubuntu-advantage-tools -y lxc exec $name -- apt-cache policy ubuntu-advantage-tools echo "-------------------------------------------" }
function set_up_env { echo -e "\n-------------------------------------------" echo "** Setting up environment for $series machine" echo "-------------------------------------------" if [ $series == "xenial" ]; then lxc exec $name -- apt-get install -y coturn=4.5.0.3-1build1 > /dev/null elif [ $series == "focal" ]; then lxc exec $name -- apt-get install -y libawl-php=0.60-1 > /dev/null elif [ $series == "jammy" ]; then lxc exec $name -- apt-get install -y apport=2.20.11-0ubuntu82.3 > /dev/null elif [ $series == "kinetic" ]; then lxc exec $name -- apt-get install -y apport=2.23.1-0ubuntu3.1 > /dev/null fi echo "-------------------------------------------" }
lxc launch ubuntu-daily:$series $name sleep 5 upgrade_to_proposed set_up_env
echo -e "\n-------------------------------------------" echo "** Verify pro fix command cannot install the update" lxc exec $name -- sed -i "/$series-updates/d" /etc/apt/sources.list lxc exec $name -- sed -i "/$series-security/d" /etc/apt/sources.list lxc exec $name -- rm /etc/apt/sources.list.d/proposed.list
lxc exec $name -- apt-get update > /dev/null lxc exec $name -- sh -c "pro fix $security_id || true" echo "-------------------------------------------"
cleanup
---------------------------------
Yes, excellent point. I am now providing manual test for all of the other releases:
------- ------- ------- ------- -
#!/bin/bash
set -e
series=$1
name=$series-test
function cleanup {
lxc delete $name --force
}
function on_err {
echo -e "Test Failed"
cleanup
exit 1
}
trap on_err ERR
if [ $series == "xenial" ]; then id="CVE- 2020-26262" id="USN- 4539-1" id="CVE- 2023-1326" id="CVE- 2023-1326"
security_
elif [ $series == "focal" ]; then
security_
elif [ $series == "jammy" ]; then
security_
elif [ $series == "kinetic" ]; then
security_
fi
function upgrade_to_proposed { ------- ------- ------- ------- ------- ----" ------- ------- ------- ------- ------- --" archive. ubuntu. com/ubuntu $series-proposed main\" | tee /etc/apt/ sources. list.d/ proposed. list" advantage- tools -y advantage- tools ------- ------- ------- ------- ------- --"
echo -e "\n----
echo "** upgrading to 27.14.4 from proposed"
echo "------
lxc exec $name -- sh -c "echo \"deb http://
lxc exec $name -- apt-get update > /dev/null
lxc exec $name -- apt-get install ubuntu-
lxc exec $name -- apt-cache policy ubuntu-
echo "------
}
function set_up_env { ------- ------- ------- ------- ------- ----" ------- ------- ------- ------- ------- --" 4.5.0.3- 1build1 > /dev/null 2.20.11- 0ubuntu82. 3 > /dev/null 2.23.1- 0ubuntu3. 1 > /dev/null ------- ------- ------- ------- ------- --"
echo -e "\n----
echo "** Setting up environment for $series machine"
echo "------
if [ $series == "xenial" ]; then
lxc exec $name -- apt-get install -y coturn=
elif [ $series == "focal" ]; then
lxc exec $name -- apt-get install -y libawl-php=0.60-1 > /dev/null
elif [ $series == "jammy" ]; then
lxc exec $name -- apt-get install -y apport=
elif [ $series == "kinetic" ]; then
lxc exec $name -- apt-get install -y apport=
fi
echo "------
}
lxc launch ubuntu- daily:$ series $name
sleep 5
upgrade_to_proposed
set_up_env
echo -e "\n---- ------- ------- ------- ------- ------- ----" updates/ d" /etc/apt/ sources. list security/ d" /etc/apt/ sources. list sources. list.d/ proposed. list
echo "** Verify pro fix command cannot install the update"
lxc exec $name -- sed -i "/$series-
lxc exec $name -- sed -i "/$series-
lxc exec $name -- rm /etc/apt/
lxc exec $name -- apt-get update > /dev/null ------- ------- ------- ------- ------- --"
lxc exec $name -- sh -c "pro fix $security_id || true"
echo "------
cleanup
------- ------- ------- ------- -----