@@ -84,51 +84,6 @@ func TestAutoscaler(t *testing.T) {
8484 })
8585}
8686
87- func TestChe (t * testing.T ) {
88- t .Run ("is required" , func (t * testing.T ) {
89- t .Run ("default" , func (t * testing.T ) {
90- cfg := commonconfig .NewMemberOperatorConfigWithReset (t )
91- memberOperatorCfg := Configuration {cfg : & cfg .Spec }
92-
93- assert .False (t , memberOperatorCfg .Che ().IsRequired ())
94- })
95- t .Run ("non-default" , func (t * testing.T ) {
96- cfg := commonconfig .NewMemberOperatorConfigWithReset (t , testconfig .Che ().Required (true ))
97- memberOperatorCfg := Configuration {cfg : & cfg .Spec }
98-
99- assert .True (t , memberOperatorCfg .Che ().IsRequired ())
100- })
101- })
102- t .Run ("namespace" , func (t * testing.T ) {
103- t .Run ("default" , func (t * testing.T ) {
104- cfg := commonconfig .NewMemberOperatorConfigWithReset (t )
105- memberOperatorCfg := Configuration {cfg : & cfg .Spec }
106-
107- assert .Equal (t , "codeready-workspaces-operator" , memberOperatorCfg .Che ().Namespace ())
108- })
109- t .Run ("non-default" , func (t * testing.T ) {
110- cfg := commonconfig .NewMemberOperatorConfigWithReset (t , testconfig .Che ().Namespace ("crw" ))
111- memberOperatorCfg := Configuration {cfg : & cfg .Spec }
112-
113- assert .Equal (t , "crw" , memberOperatorCfg .Che ().Namespace ())
114- })
115- })
116- t .Run ("route name" , func (t * testing.T ) {
117- t .Run ("default" , func (t * testing.T ) {
118- cfg := commonconfig .NewMemberOperatorConfigWithReset (t )
119- memberOperatorCfg := Configuration {cfg : & cfg .Spec }
120-
121- assert .Equal (t , "codeready" , memberOperatorCfg .Che ().RouteName ())
122- })
123- t .Run ("non-default" , func (t * testing.T ) {
124- cfg := commonconfig .NewMemberOperatorConfigWithReset (t , testconfig .Che ().RouteName ("crw" ))
125- memberOperatorCfg := Configuration {cfg : & cfg .Spec }
126-
127- assert .Equal (t , "crw" , memberOperatorCfg .Che ().RouteName ())
128- })
129- })
130- }
131-
13287func TestGitHubSecret (t * testing.T ) {
13388 t .Run ("default" , func (t * testing.T ) {
13489 cfg := commonconfig .NewMemberOperatorConfigWithReset (t )
0 commit comments