@@ -20,22 +20,22 @@ func TestToolchainStatusUnready(t *testing.T) {
2020 VerifyToolchainStatus (t , hostAwait , memberAwait )
2121
2222 t .Run ("verify updated toolchainconfig is synced - go to unready" , func (t * testing.T ) {
23- // set the che required flag to true to force an error on the memberstatus (che is not installed in e2e test environments )
24- memberConfigurationWithCheRequired := testconfig .ModifyMemberOperatorConfigObj (memberAwait .GetMemberOperatorConfig (t ), testconfig .Che ().Required ( true ))
25- hostAwait .UpdateToolchainConfig (t , testconfig .Members ().Default (memberConfigurationWithCheRequired .Spec ))
23+ // set an invalid console route name to force an error on the memberstatus (console route won't be found )
24+ memberConfigurationWithInvalidConsole := testconfig .ModifyMemberOperatorConfigObj (memberAwait .GetMemberOperatorConfig (t ), testconfig .Console ().RouteName ( "nonexistent-console-route" ))
25+ hostAwait .UpdateToolchainConfig (t , testconfig .Members ().Default (memberConfigurationWithInvalidConsole .Spec ))
2626
2727 err := memberAwait .WaitForMemberStatus (t ,
2828 wait .UntilMemberStatusHasConditions (wait .ToolchainStatusComponentsNotReady ("[routes]" )))
29- require .NoError (t , err , "failed while waiting for MemberStatus to contain error due to che being required " )
29+ require .NoError (t , err , "failed while waiting for MemberStatus to contain error due to invalid console route " )
3030
3131 _ , err = hostAwait .WaitForToolchainStatus (t ,
3232 wait .UntilToolchainStatusHasConditions (wait .ToolchainStatusComponentsNotReady ("[members]" ), wait .ToolchainStatusUnreadyNotificationNotCreated ()))
33- require .NoError (t , err , "failed while waiting for ToolchainStatus to contain error due to che being required " )
33+ require .NoError (t , err , "failed while waiting for ToolchainStatus to contain error due to invalid console route " )
3434
3535 t .Run ("verify member and toolchain status go back to ready" , func (t * testing.T ) {
36- // change che required flag back to true to resolve the error on the memberstatus
37- memberConfigurationWithCheRequired = testconfig .ModifyMemberOperatorConfigObj (memberAwait .GetMemberOperatorConfig (t ), testconfig .Che ().Required ( false ))
38- hostAwait .UpdateToolchainConfig (t , testconfig .Members ().Default (memberConfigurationWithCheRequired .Spec ))
36+ // change console route name back to default to resolve the error on the memberstatus
37+ memberConfigurationWithValidConsole : = testconfig .ModifyMemberOperatorConfigObj (memberAwait .GetMemberOperatorConfig (t ), testconfig .Console ().RouteName ( "console" ))
38+ hostAwait .UpdateToolchainConfig (t , testconfig .Members ().Default (memberConfigurationWithValidConsole .Spec ))
3939
4040 VerifyMemberStatus (t , memberAwait , consoleURL )
4141 VerifyToolchainStatus (t , hostAwait , memberAwait )
0 commit comments