Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E tests for powerflex driver in the minimal manifest file #736

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions tests/e2e/testfiles/minimal-testfiles/scenarios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,43 @@
name: Cert CSI
run:
- cert-csi test vio --sc op-e2e-vxflexos --chainNumber 2 --chainLength 2
- scenario: "Install PowerFlex Driver(With Observability)"
paths:
- "testfiles/minimal-testfiles/storage_csm_powerflex_observability.yaml"
tags:
- "observability"
- "powerflex"
steps:
- "Given an environment with k8s or openshift, and CSM operator installed"
- "Create storageclass with name [op-e2e-vxflexos] and template [testfiles/powerflex-templates/powerflex-storageclass-template.yaml] for [pflex]"
- "Set up secret with template [testfiles/powerflex-templates/powerflex-secret-template.yaml] name [test-vxflexos-config] in namespace [test-vxflexos] for [pflex]"
- "Apply custom resource [1]"
- "Validate [powerflex] driver from CR [1] is installed"
- "Validate [observability] module from CR [1] is installed"
- "Run custom test"
# cleanup
- "Enable forceRemoveDriver on CR [1]"
- "Delete custom resource [1]"
- "Restore template [testfiles/powerflex-templates/powerflex-secret-template.yaml] for [pflex]"
- "Restore template [testfiles/powerflex-templates/powerflex-storageclass-template.yaml] for [pflex]"
customTest:
name: Cert CSI
run:
- cert-csi test vio --sc op-e2e-vxflexos --chainNumber 2 --chainLength 2
- scenario: "Install PowerFlex Driver(With Observability and Custom Cert for Otel-Collector)"
paths:
- "testfiles/minimal-testfiles/storage_csm_powerflex_observability_otel_custom_cert.yaml"
tags:
- "observability"
steps:
- "Given an environment with k8s or openshift, and CSM operator installed"
- "Create storageclass with name [op-e2e-vxflexos] and template [testfiles/powerflex-templates/powerflex-storageclass-template.yaml] for [pflex]"
- "Set up secret with template [testfiles/powerflex-templates/powerflex-secret-template.yaml] name [test-vxflexos-config] in namespace [test-vxflexos] for [pflex]"
- "Apply custom resource [1]"
- "Validate [powerflex] driver from CR [1] is installed"
- "Validate [observability] module from CR [1] is installed"
# cleanup
- "Enable forceRemoveDriver on CR [1]"
- "Delete custom resource [1]"
- "Restore template [testfiles/powerflex-templates/powerflex-secret-template.yaml] for [pflex]"
- "Restore template [testfiles/powerflex-templates/powerflex-storageclass-template.yaml] for [pflex]"
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: storage.dell.com/v1
kind: ContainerStorageModule
metadata:
name: vxflexos
namespace: vxflexos
name: test-vxflexos
namespace: test-vxflexos
spec:
driver:
csiDriverType: "powerflex"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: storage.dell.com/v1
kind: ContainerStorageModule
metadata:
name: vxflexos
namespace: vxflexos
name: test-vxflexos
namespace: test-vxflexos
spec:
driver:
csiDriverType: "powerflex"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: storage.dell.com/v1
kind: ContainerStorageModule
metadata:
name: vxflexos
namespace: vxflexos
name: test-vxflexos
namespace: test-vxflexos
spec:
driver:
csiDriverType: "powerflex"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: storage.dell.com/v1
kind: ContainerStorageModule
metadata:
name: test-vxflexos
namespace: test-vxflexos
spec:
driver:
csiDriverType: "powerflex"
configVersion: v2.12.0
common:
image: "dellemc/csi-vxflexos:nightly"
forceRemoveDriver: true
modules:
- name: observability
enabled: true
components:
- name: topology
enabled: true
image: dellemc/csm-topology:nightly
- name: otel-collector
enabled: true
image: otel/opentelemetry-collector:0.42.0
- name: cert-manager
enabled: true
- name: metrics-powerflex
enabled: true
image: dellemc/csm-metrics-powerflex:nightly
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: storage.dell.com/v1
kind: ContainerStorageModule
metadata:
name: test-vxflexos
namespace: test-vxflexos
spec:
driver:
csiDriverType: "powerflex"
configVersion: v2.12.0
common:
image: "dellemc/csi-vxflexos:nightly"
forceRemoveDriver: true
modules:
- name: observability
# enabled: Enable/Disable observability
enabled: true
components:
- name: topology
# enabled: Enable/Disable topology
enabled: false
# image: Defines karavi-topology image. This shouldn't be changed
# Allowed values: string
image: dellemc/csm-topology:nightly
- name: otel-collector
# enabled: Enable/Disable OpenTelemetry Collector
enabled: true
# image: Defines otel-collector image. This shouldn't be changed
# Allowed values: string
image: otel/opentelemetry-collector:0.42.0
# certificate: certificate for cert/private-key pair -- please add cert here to use custom certificates
# for self-signed certs, leave empty string
# Allowed values: string
certificate: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQrekNDQXVPZ0F3SUJBZ0lVUWd1aFg2U1BHR08rcVBFcEFGNG9nMlhPRnJrd0RRWUpLb1pJaHZjTkFRRUwKQlFBd2dZd3hDekFKQmdOVkJBWVRBbFZUTVJNd0VRWURWUVFJREFwT1pTQUlkeUJaYjNKck1SRXdEd1lEVlFRSApEQWhPWlhjZ1dXOXlhekVOTUFzR0ExVUVDZ3dFUkdWc2JERU1NQW9HQTFVRUN3d0RTVk5ITVJFd0R3WURWUVFECkRBaEtiMjl6WlhCd2FURWxNQ01HQ1NxR1NJYjNEUUVKQVJZV2FtOXZjMlZ3Y0dsZmJIVnVZVUJrWld4c0xtTnYKYlRBZUZ3MHlOREF5TWpFeE9ESTJNRFphRncweU5EQTFNakV4T0RJMk1EWmFNSUdNTVFzd0NRWURWUVFHRXdKVgpVekVUTUJFR0ExVUVDQXdLVG1VZ0NIY2dXVzl5YXpFUk1BOEdBMVVFQnd3SVRtVjNJRmx2Y21zeERUQUxCZ05WCkJBb01CRVJsYkd3eEREQUtCZ05WQkFzTUEwbFRSekVSTUE4R0ExVUVBd3dJU205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QW9tZlVqY2N6ZUQKWGw5VFBlL1dVbzRIb2lpOVh3MDF3YVI3a0xkVzN6UlBwTlpyTmo5QlZqYTRCTm5jMTM0OERScXhWR1J2SGdwVApnVW81RC94SDN0YzRUQm9EYmlIY09Pb1Iweks4NUlUQUYzVExubG9yMEt2d2o5UUR2TFFkZ1liK0liZ0hZbDNVCjc5Z3E3WEt0V09jVzVvMG85cm9pCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0="
# privateKey: private key for cert/private-key pair -- please add cert here to use custom certificates
# for self-signed certs, leave empty string

privateKey: "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFb3dJQkFBS0NBUUVBd0Q0VFZhSUJyMm0vMFBzVExNNXZBSjUva2FMUHA0ckFVWnI4dTdVRzdnS084aklICnBKQjlYVkt2K2JDTjhIUktLd1ZaaG5hYVdPcHZISlNqUU5DY0dnbkJaT0tKSGRUS3F1UTQ4aTRhYXpScDI1UFIKblpMRk5lM0VwVFp6T0NSRkdFT2F0WE9odlJKU3o4Z0FES2xNZTdpeWxKQlVSZEppNjdEVTNWNTZyT0VpY21SUApaNlI0MkJrM2ZqakVHbUZYMWplekRta2lhMDByQ0JMVWpWTFBVSUFSdGZJQ0kwVkdFQ1VWOTRzVU8vaTlsSmdOCm8yMzlSNTZTR2M4K0I3b3RWSmVHV0dOUkNNaktYdVdRdTVFV0cxK0ZRMXY5SlVDWVhzalJQT1FrVCtTOVdoM0EKcTBxN2FLTHpHR0JWNTJHdkNNa2FvVTVkMDNCenVmYTE4T3pzNFFJREFRQUJBb0lCQUJCdC9iY0cxb0FJV0tWaQpuOXZuZEtNbjZKMG92ZmlDcWpjUE9PUk43MTZ1QjB0NXJSK0tYYng1RWFNVVRMMHRJeDJVSW5lVWNWS0NEcWJ4CnFSWWovZ05YckJpVUo4WE41dGcrRXdQWG50aGtyVnRmd2IxbXlzWDJJU1ZCaHcxWVJETnpxNmd3VHJWYStJcmIKZSsyWkZubElhcks1d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mZWtUc1lCZ2U1UUlwaDJuL2J0Yy9vMURSZWExWnlLNXVUTGZjUgpWUy9BejhSZGdicXhTTUZQUjRKM25XTUg3M0dwdzV0TVZaaFZxU1dZTEdGRFlvc1krdHVpak5iRHljY0pKZyt4CkdvL2hBb0dCQUorY0lCZzhENGNXNnJQMFV1dUIrQWFiVlJYWEQyd2lnL2ZFZlRtNUIyS0RJWXk0NGZUYWlIZlMKMzgwQnNmcm1CeWlWYnJNUzZ2b2t2MFJOSmUxZ1o3YlBUWk5GRjFJN1ZXY1hXdzE1QmhvMjd2cWFmcmFsOXBlOQp4RElRTHdPeFRFaVF5OXllbHZBZHpqRituMlR5SFNic3hVUlU5SzFNQWloTTdqVUU3N0VlCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0t"
envs:
- name: "NGINX_PROXY_IMAGE"
value: "nginxinc/nginx-unprivileged:1.20"
- name: cert-manager
enabled: true
- name: metrics-powerflex
# enabled: Enable/Disable PowerFlex metrics
enabled: true
# image: Defines PowerFlex metrics image. This shouldn't be changed
image: dellemc/csm-metrics-powerflex:nightly
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: storage.dell.com/v1
kind: ContainerStorageModule
metadata:
name: vxflexos
namespace: vxflexos
name: test-vxflexos
namespace: test-vxflexos
spec:
driver:
csiDriverType: "powerflex"
Expand Down
Loading