generated from kyma-project/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(GcpNfsBackupSchedule): e2e tests
- Loading branch information
1 parent
54fed8e
commit 7081aee
Showing
4 changed files
with
137 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Feature: GcpNfsBackupSchedule feature | ||
|
||
@gcp @allShoots @allEnvs | ||
Scenario: GcpNfsVolume scenario | ||
Given resource declaration: | ||
| vol | GcpNfsVolume | "vol-"+rndStr(8) | namespace | | ||
| schedule | GcpNfsBackupSchedule | "test-schedule-"+rndStr(3) | namespace | | ||
| backup | GcpNfsVolumeBackup | schedule.status.lastCreatedBackup.name | namespace | | ||
|
||
When resource vol is applied: | ||
""" | ||
apiVersion: cloud-resources.kyma-project.io/v1beta1 | ||
kind: GcpNfsVolume | ||
spec: | ||
capacityGb: 1024 | ||
""" | ||
Then eventually value load("vol").status.state equals "Ready" with timeout2X | ||
|
||
When resource schedule is applied: | ||
""" | ||
apiVersion: cloud-resources.kyma-project.io/v1beta1 | ||
kind: GcpNfsBackupSchedule | ||
spec: | ||
nfsVolumeRef: | ||
name: <(vol.metadata.name)> | ||
schedule: "*/5 * * * *" | ||
prefix: five-minutes-backup | ||
deleteCascade: true | ||
""" | ||
Then eventually value load("schedule").status.state equals "Active" | ||
And eventually value load("schedule").status.lastCreatedBackup.name is not zero | ||
And eventually value load("backup").status.state equals "Ready" | ||
|
||
When resource schedule is deleted | ||
Then eventually resource backup does not exist | ||
And eventually resource schedule does not exist | ||
|
||
When resource vol is deleted | ||
And eventually resource vol does not exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters