From 0c728f8be787f979552d4abbe79e4ddff72748c6 Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Thu, 28 Nov 2024 14:04:53 -0500 Subject: [PATCH] test: port python-code-header-cleanser to avoid yaml Signed-off-by: Nick Mitchell --- .../python-code-header-cleanser/pail/app.yaml | 20 ------------------- .../pail/{data => }/requirements.txt | 0 .../python-code-header-cleanser/settings.sh | 3 +++ 3 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 tests/tests/python-code-header-cleanser/pail/app.yaml rename tests/tests/python-code-header-cleanser/pail/{data => }/requirements.txt (100%) diff --git a/tests/tests/python-code-header-cleanser/pail/app.yaml b/tests/tests/python-code-header-cleanser/pail/app.yaml deleted file mode 100644 index 08fee054..00000000 --- a/tests/tests/python-code-header-cleanser/pail/app.yaml +++ /dev/null @@ -1,20 +0,0 @@ -apiVersion: lunchpail.io/v1alpha1 -kind: Application -metadata: - name: header_cleanser -spec: - image: docker.io/python:3.12 - command: python3 ./main.py - minSize: 4Gi - needs: - - name: python - version: latest - requirements: | -{{ .Files.Get "data/requirements.txt" | indent 8 }} - code: - - name: main.py - source: | -{{ .Files.Get "src/main.py" | indent 8 }} - - name: header_cleanser_transform.py - source: | -{{ .Files.Get "src/header_cleanser_transform.py" | indent 8 }} diff --git a/tests/tests/python-code-header-cleanser/pail/data/requirements.txt b/tests/tests/python-code-header-cleanser/pail/requirements.txt similarity index 100% rename from tests/tests/python-code-header-cleanser/pail/data/requirements.txt rename to tests/tests/python-code-header-cleanser/pail/requirements.txt diff --git a/tests/tests/python-code-header-cleanser/settings.sh b/tests/tests/python-code-header-cleanser/settings.sh index 990df80f..8268b7bd 100644 --- a/tests/tests/python-code-header-cleanser/settings.sh +++ b/tests/tests/python-code-header-cleanser/settings.sh @@ -3,4 +3,7 @@ api=workqueue expected=("input table has 10 rows" "output table has 10 rows") NUM_DESIRED_OUTPUTS=0 +# the default is --yaml. we don't want that +source_from=" " + up_args='<(gunzip -c "$TEST_PATH"/pail/test-data/input/test1.parquet.gz)'