@@ -666,7 +666,7 @@ func TestOldVersionUpgrade(t *testing.T) {
666
666
func TestSingleNodeAirgapUpgrade (t * testing.T ) {
667
667
t .Parallel ()
668
668
669
- RequireEnvVars (t , []string {"SHORT_SHA" })
669
+ RequireEnvVars (t , []string {"SHORT_SHA" , "AIRGAP_LICENSE_ID" })
670
670
671
671
t .Logf ("%s: downloading airgap files" , time .Now ().Format (time .RFC3339 ))
672
672
airgapInstallBundlePath := "/tmp/airgap-install-bundle.tar.gz"
@@ -756,8 +756,12 @@ func TestSingleNodeAirgapUpgrade(t *testing.T) {
756
756
t .Fatalf ("fail to remove airgap bundle on node %s: %v" , tc .Nodes [0 ], err )
757
757
}
758
758
759
- if _ , _ , err := runPlaywrightTest (t , tc , "deploy-airgap-upgrade" ); err != nil {
760
- t .Fatalf ("fail to run playwright test deploy-airgap-upgrade: %v" , err )
759
+ appUpgradeVersion := fmt .Sprintf ("appver-%s-upgrade" , os .Getenv ("SHORT_SHA" ))
760
+ testArgs := []string {appUpgradeVersion }
761
+
762
+ t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
763
+ if _ , _ , err := runPlaywrightTest (t , tc , "deploy-upgrade" , testArgs ... ); err != nil {
764
+ t .Fatalf ("fail to run playwright test deploy-app: %v" , err )
761
765
}
762
766
763
767
t .Logf ("%s: checking installation state after upgrade" , time .Now ().Format (time .RFC3339 ))
@@ -772,7 +776,7 @@ func TestSingleNodeAirgapUpgrade(t *testing.T) {
772
776
func TestSingleNodeAirgapUpgradeCustomCIDR (t * testing.T ) {
773
777
t .Parallel ()
774
778
775
- RequireEnvVars (t , []string {"SHORT_SHA" })
779
+ RequireEnvVars (t , []string {"SHORT_SHA" , "AIRGAP_LICENSE_ID" })
776
780
777
781
t .Logf ("%s: downloading airgap files" , time .Now ().Format (time .RFC3339 ))
778
782
airgapInstallBundlePath := "/tmp/airgap-install-bundle.tar.gz"
@@ -864,8 +868,12 @@ func TestSingleNodeAirgapUpgradeCustomCIDR(t *testing.T) {
864
868
t .Fatalf ("fail to remove airgap bundle on node %s: %v" , tc .Nodes [0 ], err )
865
869
}
866
870
867
- if _ , _ , err := runPlaywrightTest (t , tc , "deploy-airgap-upgrade" ); err != nil {
868
- t .Fatalf ("fail to run playwright test deploy-airgap-upgrade: %v" , err )
871
+ appUpgradeVersion := fmt .Sprintf ("appver-%s-upgrade" , os .Getenv ("SHORT_SHA" ))
872
+ testArgs := []string {appUpgradeVersion }
873
+
874
+ t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
875
+ if _ , _ , err := runPlaywrightTest (t , tc , "deploy-upgrade" , testArgs ... ); err != nil {
876
+ t .Fatalf ("fail to run playwright test deploy-app: %v" , err )
869
877
}
870
878
871
879
t .Logf ("%s: checking installation state after upgrade" , time .Now ().Format (time .RFC3339 ))
@@ -888,7 +896,7 @@ func TestSingleNodeAirgapUpgradeCustomCIDR(t *testing.T) {
888
896
func TestMultiNodeAirgapUpgradeSameK0s (t * testing.T ) {
889
897
t .Parallel ()
890
898
891
- RequireEnvVars (t , []string {"SHORT_SHA" })
899
+ RequireEnvVars (t , []string {"SHORT_SHA" , "AIRGAP_LICENSE_ID" })
892
900
893
901
t .Logf ("%s: downloading airgap files" , time .Now ().Format (time .RFC3339 ))
894
902
airgapInstallBundlePath := "/tmp/airgap-install-bundle.tar.gz"
@@ -1040,8 +1048,12 @@ func TestMultiNodeAirgapUpgradeSameK0s(t *testing.T) {
1040
1048
t .Fatalf ("fail to remove embedded-cluster-upgrade binary on node %s: %v" , tc .Nodes [0 ], err )
1041
1049
}
1042
1050
1043
- if _ , _ , err := runPlaywrightTest (t , tc , "deploy-airgap-upgrade" , "true" ); err != nil {
1044
- t .Fatalf ("fail to run playwright test deploy-airgap-upgrade: %v" , err )
1051
+ appUpgradeVersion := fmt .Sprintf ("appver-%s-upgrade" , os .Getenv ("SHORT_SHA" ))
1052
+ testArgs := []string {appUpgradeVersion , "true" } // true to indicate that this
1053
+
1054
+ t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1055
+ if _ , _ , err := runPlaywrightTest (t , tc , "deploy-upgrade" , testArgs ... ); err != nil {
1056
+ t .Fatalf ("fail to run playwright test deploy-app: %v" , err )
1045
1057
}
1046
1058
1047
1059
t .Logf ("%s: checking installation state after upgrade" , time .Now ().Format (time .RFC3339 ))
@@ -1056,7 +1068,7 @@ func TestMultiNodeAirgapUpgradeSameK0s(t *testing.T) {
1056
1068
func TestMultiNodeAirgapUpgrade (t * testing.T ) {
1057
1069
t .Parallel ()
1058
1070
1059
- RequireEnvVars (t , []string {"SHORT_SHA" })
1071
+ RequireEnvVars (t , []string {"SHORT_SHA" , "AIRGAP_LICENSE_ID" })
1060
1072
1061
1073
t .Logf ("%s: downloading airgap files" , time .Now ().Format (time .RFC3339 ))
1062
1074
airgapInstallBundlePath := "/tmp/airgap-install-bundle.tar.gz"
@@ -1200,8 +1212,12 @@ func TestMultiNodeAirgapUpgrade(t *testing.T) {
1200
1212
t .Fatalf ("fail to remove embedded-cluster-upgrade binary on node %s: %v" , tc .Nodes [0 ], err )
1201
1213
}
1202
1214
1203
- if _ , _ , err := runPlaywrightTest (t , tc , "deploy-airgap-upgrade" ); err != nil {
1204
- t .Fatalf ("fail to run playwright test deploy-airgap-upgrade: %v" , err )
1215
+ appUpgradeVersion := fmt .Sprintf ("appver-%s-upgrade" , os .Getenv ("SHORT_SHA" ))
1216
+ testArgs := []string {appUpgradeVersion }
1217
+
1218
+ t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1219
+ if _ , _ , err := runPlaywrightTest (t , tc , "deploy-upgrade" , testArgs ... ); err != nil {
1220
+ t .Fatalf ("fail to run playwright test deploy-app: %v" , err )
1205
1221
}
1206
1222
1207
1223
t .Logf ("%s: checking installation state after upgrade" , time .Now ().Format (time .RFC3339 ))
@@ -1492,7 +1508,7 @@ func TestMultiNodeAirgapHAInstallation(t *testing.T) {
1492
1508
func TestInstallSnapshotFromReplicatedApp (t * testing.T ) {
1493
1509
t .Parallel ()
1494
1510
1495
- RequireEnvVars (t , []string {"SHORT_SHA" })
1511
+ RequireEnvVars (t , []string {"SHORT_SHA" , "SNAPSHOT_LICENSE_ID" })
1496
1512
1497
1513
tc := cluster .NewTestCluster (& cluster.Input {
1498
1514
T : t ,
0 commit comments