Skip to content

Commit

Permalink
tests: updated unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: ehila <[email protected]>
  • Loading branch information
eggfoobar committed Oct 3, 2023
1 parent 2b4f57e commit 9e7be2f
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 118 deletions.
6 changes: 6 additions & 0 deletions lib/capability/capability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestSetCapabilities(t *testing.T) {
string(configv1.ClusterVersionCapabilityImageRegistry),
string(configv1.ClusterVersionCapabilityDeploymentConfig),
string(configv1.ClusterVersionCapabilityBuild),
string(configv1.ClusterVersionCapabilityOperatorLifecycleManager),
},
wantEnabledKeys: []string{},
},
Expand All @@ -72,6 +73,7 @@ func TestSetCapabilities(t *testing.T) {
string(configv1.ClusterVersionCapabilityImageRegistry),
string(configv1.ClusterVersionCapabilityDeploymentConfig),
string(configv1.ClusterVersionCapabilityBuild),
string(configv1.ClusterVersionCapabilityOperatorLifecycleManager),
},
wantEnabledKeys: []string{
string(configv1.ClusterVersionCapabilityBaremetal),
Expand Down Expand Up @@ -102,6 +104,7 @@ func TestSetCapabilities(t *testing.T) {
string(configv1.ClusterVersionCapabilityImageRegistry),
string(configv1.ClusterVersionCapabilityDeploymentConfig),
string(configv1.ClusterVersionCapabilityBuild),
string(configv1.ClusterVersionCapabilityOperatorLifecycleManager),
},
wantEnabledKeys: []string{
string(configv1.ClusterVersionCapabilityBaremetal),
Expand All @@ -116,6 +119,7 @@ func TestSetCapabilities(t *testing.T) {
string(configv1.ClusterVersionCapabilityImageRegistry),
string(configv1.ClusterVersionCapabilityDeploymentConfig),
string(configv1.ClusterVersionCapabilityBuild),
string(configv1.ClusterVersionCapabilityOperatorLifecycleManager),
},
},
{name: "set capabilities None with additional",
Expand All @@ -140,6 +144,7 @@ func TestSetCapabilities(t *testing.T) {
string(configv1.ClusterVersionCapabilityImageRegistry),
string(configv1.ClusterVersionCapabilityDeploymentConfig),
string(configv1.ClusterVersionCapabilityBuild),
string(configv1.ClusterVersionCapabilityOperatorLifecycleManager),
},
wantEnabledKeys: []string{"cap1", "cap2", "cap3"},
},
Expand All @@ -165,6 +170,7 @@ func TestSetCapabilities(t *testing.T) {
string(configv1.ClusterVersionCapabilityImageRegistry),
string(configv1.ClusterVersionCapabilityDeploymentConfig),
string(configv1.ClusterVersionCapabilityBuild),
string(configv1.ClusterVersionCapabilityOperatorLifecycleManager),
},
wantEnabledKeys: []string{
string(configv1.ClusterVersionCapabilityBaremetal),
Expand Down
Loading

0 comments on commit 9e7be2f

Please sign in to comment.