@@ -663,8 +663,8 @@ func TestSingleNodeAirgapUpgrade(t *testing.T) {
663
663
localArtifactMirrorPort : "50001" , // choose an alternate lam port
664
664
})
665
665
666
- if _ , _ , err := tc .SetupPlaywrightAndRunTest ("deploy-app" ); err != nil {
667
- t .Fatalf ("fail to run playwright test deploy-app: %v" , err )
666
+ if stdout , stderr , err := tc .SetupPlaywrightAndRunTest ("deploy-app" ); err != nil {
667
+ t .Fatalf ("fail to run playwright test deploy-app: %v: %s: %s " , err , stdout , stderr )
668
668
}
669
669
670
670
t .Logf ("%s: checking installation state after app deployment" , time .Now ().Format (time .RFC3339 ))
@@ -685,8 +685,8 @@ func TestSingleNodeAirgapUpgrade(t *testing.T) {
685
685
testArgs := []string {appUpgradeVersion }
686
686
687
687
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
688
- if _ , _ , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
689
- t .Fatalf ("fail to run playwright test deploy-app : %v" , err )
688
+ if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
689
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s " , err , stdout , stderr )
690
690
}
691
691
692
692
checkPostUpgradeState (t , tc )
@@ -734,8 +734,8 @@ func TestSingleNodeAirgapUpgradeCustomCIDR(t *testing.T) {
734
734
cidr : "172.16.0.0/15" ,
735
735
})
736
736
737
- if _ , _ , err := tc .SetupPlaywrightAndRunTest ("deploy-app" ); err != nil {
738
- t .Fatalf ("fail to run playwright test deploy-app: %v" , err )
737
+ if stdout , stderr , err := tc .SetupPlaywrightAndRunTest ("deploy-app" ); err != nil {
738
+ t .Fatalf ("fail to run playwright test deploy-app: %v: %s: %s " , err , stdout , stderr )
739
739
}
740
740
741
741
t .Logf ("%s: checking installation state after app deployment" , time .Now ().Format (time .RFC3339 ))
@@ -754,8 +754,8 @@ func TestSingleNodeAirgapUpgradeCustomCIDR(t *testing.T) {
754
754
testArgs := []string {appUpgradeVersion }
755
755
756
756
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
757
- if _ , _ , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
758
- t .Fatalf ("fail to run playwright test deploy-app : %v" , err )
757
+ if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
758
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s " , err , stdout , stderr )
759
759
}
760
760
761
761
checkPostUpgradeState (t , tc )
@@ -853,8 +853,8 @@ func TestAirgapUpgradeFromEC18(t *testing.T) {
853
853
if err := tc .SetupPlaywright (withEnv ); err != nil {
854
854
t .Fatalf ("fail to setup playwright: %v" , err )
855
855
}
856
- if _ , _ , err := tc .RunPlaywrightTest ("deploy-ec18-app" ); err != nil {
857
- t .Fatalf ("fail to run playwright test deploy-ec18-app: %v" , err )
856
+ if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-ec18-app" ); err != nil {
857
+ t .Fatalf ("fail to run playwright test deploy-ec18-app: %v: %s: %s " , err , stdout , stderr )
858
858
}
859
859
860
860
// generate worker node join command.
@@ -928,7 +928,7 @@ func TestAirgapUpgradeFromEC18(t *testing.T) {
928
928
929
929
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
930
930
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
931
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
931
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
932
932
}
933
933
934
934
t .Logf ("%s: checking installation state after noop upgrade" , time .Now ().Format (time .RFC3339 ))
@@ -957,7 +957,7 @@ func TestAirgapUpgradeFromEC18(t *testing.T) {
957
957
958
958
t .Logf ("%s: upgrading cluster a second time" , time .Now ().Format (time .RFC3339 ))
959
959
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
960
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
960
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
961
961
}
962
962
963
963
t .Logf ("%s: checking installation state after second upgrade" , time .Now ().Format (time .RFC3339 ))
@@ -1056,7 +1056,7 @@ func TestMultiNodeAirgapUpgradeSameK0s(t *testing.T) {
1056
1056
1057
1057
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1058
1058
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
1059
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1059
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1060
1060
}
1061
1061
1062
1062
checkPostUpgradeState (t , tc )
@@ -1134,7 +1134,7 @@ func TestMultiNodeAirgapUpgrade(t *testing.T) {
1134
1134
1135
1135
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1136
1136
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
1137
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1137
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1138
1138
}
1139
1139
1140
1140
checkPostUpgradeState (t , tc )
@@ -1226,7 +1226,7 @@ func TestMultiNodeAirgapUpgradePreviousStable(t *testing.T) {
1226
1226
1227
1227
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1228
1228
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
1229
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1229
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1230
1230
}
1231
1231
1232
1232
t .Logf ("%s: checking installation state after noop upgrade" , time .Now ().Format (time .RFC3339 ))
@@ -1246,7 +1246,7 @@ func TestMultiNodeAirgapUpgradePreviousStable(t *testing.T) {
1246
1246
1247
1247
t .Logf ("%s: upgrading cluster a second time" , time .Now ().Format (time .RFC3339 ))
1248
1248
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
1249
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1249
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1250
1250
}
1251
1251
1252
1252
checkPostUpgradeStateWithOptions (t , tc , postUpgradeStateOptions {
@@ -1299,7 +1299,7 @@ func TestMultiNodeHAInstallation(t *testing.T) {
1299
1299
1300
1300
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1301
1301
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
1302
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1302
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1303
1303
}
1304
1304
1305
1305
checkPostUpgradeState (t , tc )
@@ -1428,7 +1428,7 @@ func TestMultiNodeAirgapHAInstallation(t *testing.T) {
1428
1428
1429
1429
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1430
1430
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
1431
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1431
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1432
1432
}
1433
1433
1434
1434
checkPostUpgradeState (t , tc )
@@ -1495,7 +1495,7 @@ func TestInstallSnapshotFromReplicatedApp(t *testing.T) {
1495
1495
1496
1496
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1497
1497
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
1498
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1498
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1499
1499
}
1500
1500
1501
1501
checkPostUpgradeState (t , tc )
@@ -1589,7 +1589,7 @@ func TestSingleNodeInstallationNoopUpgrade(t *testing.T) {
1589
1589
1590
1590
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1591
1591
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
1592
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1592
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1593
1593
}
1594
1594
1595
1595
checkInstallationStateWithOptions (t , tc , installationStateOptions {
@@ -1717,7 +1717,7 @@ func TestFiveNodesAirgapUpgrade(t *testing.T) {
1717
1717
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1718
1718
testArgs := []string {fmt .Sprintf ("appver-%s-upgrade" , os .Getenv ("SHORT_SHA" ))}
1719
1719
if stdout , stderr , err := tc .RunPlaywrightTest ("deploy-upgrade" , testArgs ... ); err != nil {
1720
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1720
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1721
1721
}
1722
1722
1723
1723
checkPostUpgradeState (t , tc )
@@ -1787,7 +1787,7 @@ spec:
1787
1787
1788
1788
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1789
1789
if stdout , stderr , err := tc .SetupPlaywrightAndRunTest ("deploy-upgrade" , testArgs ... ); err != nil {
1790
- t .Fatalf ("fail to run playwright test deploy-app : %v: %s: %s" , err , stdout , stderr )
1790
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s" , err , stdout , stderr )
1791
1791
}
1792
1792
1793
1793
checkPostUpgradeState (t , tc )
@@ -1886,8 +1886,8 @@ spec:
1886
1886
testArgs := []string {appUpgradeVersion , "" , hostname }
1887
1887
1888
1888
t .Logf ("%s: upgrading cluster" , time .Now ().Format (time .RFC3339 ))
1889
- if _ , _ , err := tc .SetupPlaywrightAndRunTest ("deploy-upgrade" , testArgs ... ); err != nil {
1890
- t .Fatalf ("fail to run playwright test deploy-app : %v" , err )
1889
+ if stdout , stderr , err := tc .SetupPlaywrightAndRunTest ("deploy-upgrade" , testArgs ... ); err != nil {
1890
+ t .Fatalf ("fail to run playwright test deploy-upgrade : %v: %s: %s " , err , stdout , stderr )
1891
1891
}
1892
1892
1893
1893
checkPostUpgradeState (t , tc )
0 commit comments