Skip to content

Commit cb684db

Browse files
committed
[DEBUG] Make volume/snapshot names unique
1 parent 423e273 commit cb684db

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pkg/sanity/controller.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -1346,31 +1346,31 @@ var _ = DescribeSanity("ListSnapshots [Controller Server]", func(sc *TestContext
13461346

13471347
By("creating first unrelated snapshot")
13481348
// Create volume source and afterwards the first unrelated snapshot.
1349-
volReq := MakeCreateVolumeReq(sc, "listSnapshots-volume-unrelated1")
1349+
volReq := MakeCreateVolumeReq(sc, "listSnapshots-snapshot-id-volume-unrelated1")
13501350
volumeUnrelated1, err := c.CreateVolume(context.Background(), volReq)
13511351
Expect(err).NotTo(HaveOccurred())
13521352

1353-
snapshotReq := MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-unrelated1", volumeUnrelated1.GetVolume().GetVolumeId())
1353+
snapshotReq := MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-id-snapshot-unrelated1", volumeUnrelated1.GetVolume().GetVolumeId())
13541354
snapshotUnrelated1, err := c.CreateSnapshot(context.Background(), snapshotReq)
13551355
Expect(err).NotTo(HaveOccurred())
13561356

13571357
By("creating target snapshot")
13581358
// Create volume source and afterwards the target snapshot.
1359-
volReq = MakeCreateVolumeReq(sc, "listSnapshots-volume-target")
1359+
volReq = MakeCreateVolumeReq(sc, "listSnapshots-snapshot-id-volume-target")
13601360
volumeTarget, err := c.CreateVolume(context.Background(), volReq)
13611361
Expect(err).NotTo(HaveOccurred())
13621362

1363-
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-target", volumeTarget.GetVolume().GetVolumeId())
1363+
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-id-snapshot-target", volumeTarget.GetVolume().GetVolumeId())
13641364
snapshotTarget, err := c.CreateSnapshot(context.Background(), snapshotReq)
13651365
Expect(err).NotTo(HaveOccurred())
13661366

13671367
By("creating second unrelated snapshot")
13681368
// Create volume source and afterwards the second unrelated snapshot.
1369-
volReq = MakeCreateVolumeReq(sc, "listSnapshots-volume-unrelated2")
1369+
volReq = MakeCreateVolumeReq(sc, "listSnapshots-snapshot-id-volume-unrelated2")
13701370
volumeUnrelated2, err := c.CreateVolume(context.Background(), volReq)
13711371
Expect(err).NotTo(HaveOccurred())
13721372

1373-
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-unrelated2", volumeUnrelated2.GetVolume().GetVolumeId())
1373+
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-id-snapshot-unrelated2", volumeUnrelated2.GetVolume().GetVolumeId())
13741374
snapshotUnrelated2, err := c.CreateSnapshot(context.Background(), snapshotReq)
13751375
Expect(err).NotTo(HaveOccurred())
13761376

@@ -1425,25 +1425,25 @@ var _ = DescribeSanity("ListSnapshots [Controller Server]", func(sc *TestContext
14251425

14261426
By("creating first unrelated snapshot")
14271427
// Create volume source and afterwards the first unrelated snapshot.
1428-
volReq := MakeCreateVolumeReq(sc, "listSnapshots-volume-unrelated1")
1428+
volReq := MakeCreateVolumeReq(sc, "listSnapshots-src-vol-id-volume-unrelated1")
14291429
volumeUnrelated1, err := c.CreateVolume(context.Background(), volReq)
14301430
Expect(err).NotTo(HaveOccurred())
14311431

1432-
snapshotReq := MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-unrelated1", volumeUnrelated1.GetVolume().GetVolumeId())
1432+
snapshotReq := MakeCreateSnapshotReq(sc, "listSnapshots-src-vol-id-snapshot-unrelated1", volumeUnrelated1.GetVolume().GetVolumeId())
14331433
snapshotUnrelated1, err := c.CreateSnapshot(context.Background(), snapshotReq)
14341434
Expect(err).NotTo(HaveOccurred())
14351435

14361436
By("creating target snapshots")
14371437
// Create volume source and afterwards the two target snapshots.
1438-
volReq = MakeCreateVolumeReq(sc, "listSnapshots-volume-target")
1438+
volReq = MakeCreateVolumeReq(sc, "listSnapshots-src-vol-id-volume-target")
14391439
volumeTarget, err := c.CreateVolume(context.Background(), volReq)
14401440
Expect(err).NotTo(HaveOccurred())
14411441

1442-
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-target1", volumeTarget.GetVolume().GetVolumeId())
1442+
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-src-vol-id-snapshot-target1", volumeTarget.GetVolume().GetVolumeId())
14431443
snapshotTarget1, err := c.CreateSnapshot(context.Background(), snapshotReq)
14441444
Expect(err).NotTo(HaveOccurred())
14451445

1446-
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-target2", volumeTarget.GetVolume().GetVolumeId())
1446+
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-src-vol-id-snapshot-target2", volumeTarget.GetVolume().GetVolumeId())
14471447
snapshotTarget2, err := c.CreateSnapshot(context.Background(), snapshotReq)
14481448
Expect(err).NotTo(HaveOccurred())
14491449

@@ -1454,11 +1454,11 @@ var _ = DescribeSanity("ListSnapshots [Controller Server]", func(sc *TestContext
14541454

14551455
By("creating second unrelated snapshot")
14561456
// Create volume source and afterwards the second unrelated snapshot.
1457-
volReq = MakeCreateVolumeReq(sc, "listSnapshots-volume-unrelated2")
1457+
volReq = MakeCreateVolumeReq(sc, "listSnapshots-src-vol-id-volume-unrelated2")
14581458
volumeUnrelated2, err := c.CreateVolume(context.Background(), volReq)
14591459
Expect(err).NotTo(HaveOccurred())
14601460

1461-
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-snapshot-unrelated2", volumeUnrelated2.GetVolume().GetVolumeId())
1461+
snapshotReq = MakeCreateSnapshotReq(sc, "listSnapshots-src-vol-id-snapshot-unrelated2", volumeUnrelated2.GetVolume().GetVolumeId())
14621462
snapshotUnrelated2, err := c.CreateSnapshot(context.Background(), snapshotReq)
14631463
Expect(err).NotTo(HaveOccurred())
14641464

0 commit comments

Comments
 (0)