fix test for 1.10 upgrade
@@ -90,13 +90,23 @@ func TestOrchestratorUpgradeInfo(t *testing.T) {
// 1.8.6, 1.8.7, 1.8.8, 1.8.9, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4
Expect(len(orch.Upgrades)).To(Equal(9))
- // 1.9.4 is not upgradable
+ // 1.9.4 is upgradable to 1.10.x
csOrch = &OrchestratorProfile{
OrchestratorType: Kubernetes,
OrchestratorVersion: "1.9.4",
}
orch, e = GetOrchestratorVersionProfile(csOrch)
Expect(e).To(BeNil())
+ // 1.10.0-beta.2
+ Expect(len(orch.Upgrades)).To(Equal(1))
+
+ // 1.10.x is not upgradable
+ csOrch = &OrchestratorProfile{
+ OrchestratorType: Kubernetes,
+ OrchestratorVersion: "1.10.0-beta.2",
+ }
+ orch, e = GetOrchestratorVersionProfile(csOrch)
+ Expect(e).To(BeNil())
Expect(len(orch.Upgrades)).To(Equal(0))
// v20170930 - all orchestrators
