@@ -61,11 +61,12 @@ import (
6161// https://docs.openstack.org/ironic/latest/contributor/webapi-version-history.html
6262const (
6363 // NOTE(dtantsur): latest is now at least 1.99, so we can rely on this
64- // value to check that specifying Version: 31 .0 actually installs 31 .0.
64+ // value to check that specifying Version: 32 .0 actually installs 32 .0.
6565 apiVersionIn300 = "1.99"
6666 apiVersionIn310 = "1.99"
67+ apiVersionIn320 = "1.101"
6768 // Update this periodically to make sure we're installing the latest version by default.
68- knownAPIMinorVersion = 99
69+ knownAPIMinorVersion = 101
6970
7071 numberOfNodes = 100
7172
@@ -916,8 +917,12 @@ var _ = Describe("Ironic object tests", func() {
916917 testUpgrade ("30.0" , "31.0" , apiVersionIn300 , apiVersionIn310 , namespace )
917918 })
918919
919- It ("creates Ironic 31.0 and upgrades to latest" , Label ("v310-to-latest" , "upgrade" ), func () {
920- testUpgrade ("31.0" , "latest" , apiVersionIn310 , "" , namespace )
920+ It ("creates Ironic 31.0 and upgrades to 32.0" , Label ("v310-to-320" , "upgrade" ), func () {
921+ testUpgrade ("31.0" , "32.0" , apiVersionIn310 , apiVersionIn320 , namespace )
922+ })
923+
924+ It ("creates Ironic 32.0 and upgrades to latest" , Label ("v320-to-latest" , "upgrade" ), func () {
925+ testUpgrade ("32.0" , "latest" , apiVersionIn320 , "" , namespace )
921926 })
922927
923928 It ("refuses to downgrade Ironic with a database" , Label ("no-db-downgrade" , "upgrade" ), func () {
@@ -954,8 +959,12 @@ var _ = Describe("Ironic object tests", func() {
954959 testUpgradeHA ("30.0" , "31.0" , apiVersionIn300 , apiVersionIn310 , namespace )
955960 })
956961
957- It ("creates Ironic 31.0 with HA and upgrades to latest" , Label ("ha-v310-to-latest" , "ha" , "upgrade" ), func () {
958- testUpgradeHA ("31.0" , "latest" , apiVersionIn310 , "" , namespace )
962+ It ("creates Ironic 31.0 with HA and upgrades to 32.0" , Label ("ha-v310-to-320" , "ha" , "upgrade" ), func () {
963+ testUpgradeHA ("31.0" , "32.0" , apiVersionIn310 , apiVersionIn320 , namespace )
964+ })
965+
966+ It ("creates Ironic 32.0 with HA and upgrades to latest" , Label ("ha-v320-to-latest" , "ha" , "upgrade" ), func () {
967+ testUpgradeHA ("32.0" , "latest" , apiVersionIn320 , "" , namespace )
959968 })
960969
961970 It ("creates Ironic with keepalived and DHCP" , Label ("keepalived-dnsmasq" ), func () {
0 commit comments