Skip to content

Commit

Permalink
ci: test ony commit
Browse files Browse the repository at this point in the history
testing this by pacing the
test in the biginning to fail
early

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 committed Sep 10, 2024
1 parent ac16a77 commit 97ef0f5
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions e2e/cephfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,30 @@ var _ = Describe(cephfsType, func() {
})
}

By("verify mountOptions support", func() {
By("Create volumeGroupSnapshot", func() {
err := createCephfsStorageClass(f.ClientSet, f, true, nil)
if err != nil {
framework.Failf("failed to create CephFS storageclass: %v", err)
}
scName := "csi-cephfs-sc"
base, err := newVolumeGroupSnapshotBase(f, scName, f.UniqueName, false, deployTimeout, 3)
if err != nil {
framework.Failf("failed to create volumeGroupSnapshot Base: %v", err)
}
snapshotter := newCephFSVolumeGroupSnapshot(f)
err = base.testVolumeGroupSnapshot(snapshotter)
if err != nil {
framework.Failf("failed to test volumeGroupSnapshot: %v", err)
}

err = verifySeLinuxMountOption(f, pvcPath, appPath,
err = deleteResource(cephFSExamplePath + "storageclass.yaml")
if err != nil {
framework.Failf("failed to delete CephFS storageclass: %v", err)
}
})

By("verify mountOptions support", func() {
err := verifySeLinuxMountOption(f, pvcPath, appPath,
cephFSDeamonSetName, cephFSContainerName, cephCSINamespace)
if err != nil {
framework.Failf("failed to verify mount options: %v", err)
Expand Down Expand Up @@ -2488,18 +2505,6 @@ var _ = Describe(cephfsType, func() {
return
}

By("Create volumeGroupSnapshot", func() {
scName := "csi-cephfs-sc"
base, err := newVolumeGroupSnapshotBase(f, scName, f.UniqueName, false, deployTimeout, 3)
if err != nil {
framework.Failf("failed to create volumeGroupSnapshot Base: %v", err)
}
snapshotter := newCephFSVolumeGroupSnapshot(f)
err = base.testVolumeGroupSnapshot(snapshotter)
if err != nil {
framework.Failf("failed to test volumeGroupSnapshot: %v", err)
}
})
// Make sure this should be last testcase in this file, because
// it deletes pool
By("Create a PVC and delete PVC when backend pool deleted", func() {
Expand Down

0 comments on commit 97ef0f5

Please sign in to comment.