Skip to content

Commit 104ebf4

Browse files
RWX VMService VM testcases and utils automation
1 parent 61f0a34 commit 104ebf4

File tree

15 files changed

+3206
-4
lines changed

15 files changed

+3206
-4
lines changed

hack/run-e2e-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ then
7373
OPTS+=(-p)
7474
ginkgo -mod=mod "${OPTS[@]}" --focus="csi-block-vanilla-parallelized" tests/e2e
7575
else
76-
ginkgo -mod=mod "${OPTS[@]}" --focus="$FOCUS" tests/e2e
76+
ginkgo -mod=mod "${OPTS[@]}" --focus="$FOCUS" -r tests/e2e
7777
fi
7878

7979
# Checking for test status

tests/e2e/constants/env_constants.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,14 @@ const (
160160
EnsureAccessibilityMModeType = "ensureObjectAccessibility"
161161
EnvClusterFlavor = "CLUSTER_FLAVOR"
162162
EnvDiskSizeLarge = "LARGE_DISK_SIZE"
163+
EnvClusterName = "CLUSTER_NAME"
163164
EnvCSINamespace = "CSI_NAMESPACE"
164165
EnvContentLibraryUrl = "CONTENT_LIB_URL"
165166
EnvContentLibraryUrlSslThumbprint = "CONTENT_LIB_THUMBPRINT"
167+
EnvDevopsUserName = "DEVOPS_USERNAME"
166168
EnvEsxHostIP = "ESX_TEST_HOST_IP"
167169
EnvFileServiceDisabledSharedDatastoreURL = "FILE_SERVICE_DISABLED_SHARED_VSPHERE_DATASTORE_URL"
170+
EnvFileShareDomainID = "FILE_SHARE_DOMAIN_ID"
168171
EnvFullSyncWaitTime = "FULL_SYNC_WAIT_TIME"
169172
EnvGatewayVmIp = "GATEWAY_VM_IP"
170173
EnvGatewayVmUser = "GATEWAY_VM_USER"
@@ -214,3 +217,10 @@ const (
214217
EnvAccessMode = "ACCESS_MODE"
215218
EnvVpToCsi = "VCPTOCSI"
216219
)
220+
221+
// for devops persona testing
222+
const (
223+
EnvAdminKubeconfig = "ADMIN_KUBECONFIG"
224+
EnvDevopsKubeconfig = "DEVOPS_KUBE_CONFIG"
225+
EnvIsDevopsUser = "IS_DEVOPS_USER"
226+
)

tests/e2e/constants/kubernetes.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const (
6969
DefaultrqLimit = "20Gi"
7070
RqStorageType = ".storageclass.storage.k8s.io/requests.storage"
7171
ResizerContainerName = "csi-resizer"
72+
ReadWritePermission = "READ_WRITE"
7273
ScParamDatastoreURL = "DatastoreURL"
7374
ScParamFsType = "csi.storage.k8s.io/fstype"
7475
ScParamStoragePolicyID = "storagePolicyID"
@@ -194,3 +195,11 @@ var UsageSuffixes = []string{
194195
"-vm-usage",
195196
"-latebinding-vm-usage",
196197
}
198+
199+
// for devops persona testing
200+
const (
201+
RbacApiGroup = "rbac.authorization.k8s.io"
202+
RoleKeyword = "Role"
203+
AudienceForSvcAccountName = "https://kubernetes.default.svc.cluster.local"
204+
ServiceAccountKeyword = "ServiceAccount"
205+
)

tests/e2e/constants/test_suite_level.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ const (
8181
Vc90 = "vc90"
8282
Vc80 = "vc80"
8383
Vc70 = "vc70"
84+
Vc901 = "vc901"
8485
Wldi = "wldi"
8586
VmServiceVm = "vmServiceVm"
8687
VcptocsiTest = "vcptocsiTest"

tests/e2e/constants/vsan_constants.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ const (
2828
HealthRed = "red"
2929
HealthStatusAccessible = "accessible"
3030
HealthStatusInAccessible = "inaccessible"
31+
VsanClusterFileServiceSystem = "vsan-cluster-file-service-system"
32+
VsanFileServiceType = "VsanFileServiceSystem"
3133
)

tests/e2e/constants/vsphere_constants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const (
4242
EztAllocType = "Fully initialized"
4343
LztAllocType = "Reserve space"
4444
Nfs4FSType = "nfs4"
45+
Nfs4Keyword = "NFSv4.1"
4546
ObjOrItemNotFoundErr = "The object or item referred to could not be found"
4647
ProviderPrefix = "vsphere://"
4748
)

0 commit comments

Comments
 (0)