Skip to content

Commit 6387ed4

Browse files
committed
WIP - update test steps
1 parent 38653ef commit 6387ed4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

internal/k8s/configuration_vsr_test.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,7 @@ func TestAttemptToAddVSRtoNotExistingVS_ReturnsProblems(t *testing.T) {
185185
}
186186
}
187187

188-
// TestAddVSRtoVS logic:
189-
//
190-
// 1) Create VSR
191-
// 2) Create VS
192-
// 3) Add the VSR to the VS
188+
// TestAddVSRtoVS validates that we can add VSR to VS
193189
func TestAddVSRtoVS(t *testing.T) {
194190
t.Parallel()
195191

@@ -213,9 +209,10 @@ func TestAddVSRtoVS(t *testing.T) {
213209
},
214210
}
215211

216-
// adding VSR but no VS exist at this stage, chance we get problems
212+
// adding VSR to the configuration; no VS exist at this stage, chance we get problems
213+
//
217214
// if we don't get it right now we call t.Fatal as there is no
218-
// point to continue test - preconditions are not setup correctly.
215+
// point to continue the test - preconditions are not setup correctly.
219216
changes, problems := configuration.AddOrUpdateVirtualServerRoute(vsr)
220217
if !cmp.Equal(expectedChanges, changes, cmpopts.IgnoreFields(ConfigurationProblem{}, "Message")) {
221218
t.Fatal(cmp.Diff(expectedChanges, changes))

0 commit comments

Comments
 (0)