From 9cfeeb08956ccdda0ffe6f77125e90f7b1ac67aa Mon Sep 17 00:00:00 2001 From: pintojoy Date: Wed, 15 Nov 2023 17:39:59 +0530 Subject: [PATCH] Addressing review comment Signed-off-by: pintojoy --- ...est_nfs_feature_enable_for_ODF_clusters.py | 47 +------------------ 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/tests/manage/nfs_feature/test_nfs_feature_enable_for_ODF_clusters.py b/tests/manage/nfs_feature/test_nfs_feature_enable_for_ODF_clusters.py index 175456d5430..82bd30cbc6b 100644 --- a/tests/manage/nfs_feature/test_nfs_feature_enable_for_ODF_clusters.py +++ b/tests/manage/nfs_feature/test_nfs_feature_enable_for_ODF_clusters.py @@ -1143,52 +1143,7 @@ def test_respin_app_pod_exported_nfs_volume_incluster( # Create deployment config for app pod log.info("----create deployment config----") - ''' - deployment_config = """ - apiVersion: apps.openshift.io/v1 - kind: DeploymentConfig - metadata: - name: nfs-test-pod - namespace: openshift-storage - labels: - app: nfs-test-pod - spec: - template: - metadata: - labels: - name: nfs-test-pod - spec: - restartPolicy: Always - volumes: - - name: vol - persistentVolumeClaim: - claimName: nfs-pvc - containers: - - name: fedora - image: fedora - command: ['/bin/bash', '-ce', 'tail -f /dev/null'] - imagePullPolicy: IfNotPresent - securityContext: - capabilities: {} - privileged: true - volumeMounts: - - mountPath: /mnt - name: vol - livenessProbe: - exec: - command: - - 'sh' - - '-ec' - - 'df /mnt' - initialDelaySeconds: 3 - periodSeconds: 3 - replicas: 1 - triggers: - - type: ConfigChange - paused: false - """ - ''' - deployment_config_data = templating.load_yaml(constants.FIO_DEPLOYMENT_YAML) + deployment_config_data = templating.load_yaml(constants.NFS_APP_POD_YAML) helpers.create_resource(**deployment_config_data) time.sleep(60)