Skip to content

Commit

Permalink
unit-tests: adjust labels in external_resources_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Jose A. Rivera <[email protected]>
  • Loading branch information
jarrpa committed Aug 31, 2021
1 parent af8d02f commit 6689dd6
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions controllers/storagecluster/external_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,20 @@ func TestOptionalExternalStorageClusterResources(t *testing.T) {
}

optionalTestParams := []struct {
label string
resourceToBeRemoved string
expectedRookCephConfigVal string
}{
{resourceToBeRemoved: "ceph-rgw", expectedRookCephConfigVal: "true"},
{resourceToBeRemoved: "cephfs", expectedRookCephConfigVal: "false"},
{
label: "RemoveRGW",
resourceToBeRemoved: "ceph-rgw",
expectedRookCephConfigVal: "true",
},
{
label: "RemoveCephFS",
resourceToBeRemoved: "cephfs",
expectedRookCephConfigVal: "false",
},
}

for _, testParam := range optionalTestParams {
Expand Down Expand Up @@ -494,7 +503,7 @@ func TestExternalMonitoringResources(t *testing.T) {
},
Name: "monitoring-endpoint",
},
Label: "A passing case, with valid args",
Label: "ValidEndpointAndPort",
ReconcileExpectedToFail: false,
},
{
Expand All @@ -505,7 +514,7 @@ func TestExternalMonitoringResources(t *testing.T) {
},
Name: "monitoring-endpoint",
},
Label: "Another passing case, without an explicit port, in which rook will provide a default port number",
Label: "ValidEndpointWithoutPort",
ReconcileExpectedToFail: false,
},
{
Expand All @@ -517,7 +526,7 @@ func TestExternalMonitoringResources(t *testing.T) {
},
Name: "monitoring-endpoint",
},
Label: "A failing case, which has an invalid port",
Label: "InvalidPort",
ReconcileExpectedToFail: true,
},
}
Expand Down

0 comments on commit 6689dd6

Please sign in to comment.