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.
Merge pull request #20 from kyma-project/e2e
E2e
- Loading branch information
Showing
23 changed files
with
874 additions
and
1,785 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
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,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: phoenix | ||
subjects: | ||
- kind: Group | ||
apiGroup: rbac.authorization.k8s.io | ||
name: phx-skr-admin | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-admin |
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,46 @@ | ||
Feature: Module enable feature | ||
|
||
@all | ||
Scenario: Module enable scenario | ||
Given resource declaration: | ||
| kyma | Kyma | "default" | "kyma-system" | | ||
| cm | CloudResources | "default" | "kyma-system" | | ||
Given there are no cloud resources | ||
And module is removed | ||
When module is added | ||
Then eventually value load("cm").status.state equals "Ready" | ||
|
||
|
||
@aws @allShoots @dev | ||
Scenario: Installed CRDs | ||
When CRDs are loaded | ||
Then CRDs exist: | ||
| IpRange | | ||
| AwsNfsVolume | | ||
| AwsVpcPeering | | ||
| AwsRedisInstance | | ||
And CRDs do not exist: | ||
| GcpNfsVolume | | ||
| GcpNfsVolumeBackup | | ||
| GcpNfsVolumeRestore | | ||
| GcpRedisInstance | | ||
| GcpVpcPeering | | ||
| AzureVpcPeering | | ||
| AzureRedisInstance | | ||
|
||
@gcp @allShoots @dev | ||
Scenario: Installed CRDs | ||
When CRDs are loaded | ||
Then CRDs exist: | ||
| IpRange | | ||
| GcpNfsVolume | | ||
| GcpNfsVolumeBackup | | ||
| GcpNfsVolumeRestore | | ||
| GcpRedisInstance | | ||
| GcpVpcPeering | | ||
And CRDs do not exist: | ||
| AwsNfsVolume | | ||
| AwsVpcPeering | | ||
| AwsRedisInstance | | ||
| AzureVpcPeering | | ||
| AzureRedisInstance | |
3 changes: 2 additions & 1 deletion
3
features/awsnfsvolume.feature → features/200-awsnfsvolume.feature
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,54 @@ | ||
Feature: GcpNfsVolume feature | ||
|
||
@gcp @allShoots @allEnvs | ||
Scenario: GcpNfsVolume scenario | ||
Given resource declaration: | ||
| vol | GcpNfsVolume | "vol-"+rndStr(8) | namespace | | ||
| pv | PersistentVolume | vol.status.id | | | ||
| pvc | PersistentVolumeClaim | vol.metadata.name | namespace | | ||
| pod | Pod | "test-vol" | 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" | ||
And eventually value load("pv").status.phase equals "Bound" | ||
And eventually value load("pvc").status.phase equals "Bound" | ||
|
||
When resource pod is applied: | ||
""" | ||
apiVersion: v1 | ||
kind: Pod | ||
spec: | ||
volumes: | ||
- name: data | ||
persistentVolumeClaim: | ||
claimName: <(vol.metadata.name)> | ||
containers: | ||
- name: cloud1 | ||
image: ubuntu | ||
imagePullPolicy: IfNotPresent | ||
volumeMounts: | ||
- mountPath: "/mnt/data1" | ||
name: data | ||
command: | ||
- "/bin/bash" | ||
- "-c" | ||
- "--" | ||
args: | ||
- "echo 'test line' > /mnt/data1/test.txt & cat /mnt/data1/test.txt" | ||
restartPolicy: Never | ||
""" | ||
Then eventually value load("pod").status.phase equals "Succeeded" | ||
And value logs("pod").search(/test line/) > -1 equals true | ||
|
||
When resource pod is deleted | ||
Then eventually resource pod does not exist | ||
|
||
When resource vol is deleted | ||
Then eventually resource pvc does not exist | ||
And eventually resource pv does not exist | ||
And eventually resource vol does not exist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.