From 08c8843a00c0402e2eb9a2df56dd38f9a2648d88 Mon Sep 17 00:00:00 2001 From: Daniela Plascencia Date: Fri, 7 Jun 2024 16:41:13 +0200 Subject: [PATCH] skip: fix env var --- agent/tests/test_rock.py | 6 +++--- controller/tests/test_rock.py | 6 +++--- lgbserver/tests/test_rock.py | 8 ++++---- paddleserver/tests/test_rock.py | 8 ++++---- pmmlserver/tests/test_rock.py | 8 ++++---- sklearnserver/tests/test_rock.py | 8 ++++---- storage-initializer/tests/test_rock.py | 8 ++++---- xgbserver/tests/test_rock.py | 8 ++++---- 8 files changed, 30 insertions(+), 30 deletions(-) diff --git a/agent/tests/test_rock.py b/agent/tests/test_rock.py index e9d86b7..3221fd0 100644 --- a/agent/tests/test_rock.py +++ b/agent/tests/test_rock.py @@ -13,7 +13,7 @@ def test_rock(): check_rock = CheckRock("rockcraft.yaml") rock_image = check_rock.get_name() rock_version = check_rock.get_version() - LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}" + LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}" # assert the rock contains the expected files subprocess.run( @@ -21,7 +21,7 @@ def test_rock(): "docker", "run", "--rm", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "exec", "ls", "-la", @@ -35,7 +35,7 @@ def test_rock(): "docker", "run", "--rm", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "exec", "ls", "-la", diff --git a/controller/tests/test_rock.py b/controller/tests/test_rock.py index e75e250..30bc0d1 100644 --- a/controller/tests/test_rock.py +++ b/controller/tests/test_rock.py @@ -13,7 +13,7 @@ def test_rock(): check_rock = CheckRock("rockcraft.yaml") rock_image = check_rock.get_name() rock_version = check_rock.get_version() - LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}" + LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}" # assert the rock contains the expected files subprocess.run( @@ -21,7 +21,7 @@ def test_rock(): "docker", "run", "--rm", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "exec", "ls", "-la", @@ -31,6 +31,6 @@ def test_rock(): ) subprocess.run( - ["docker", "run", "--rm", LOCAL_rock_IMAGE, "exec", "ls", "-la", "/manager"], + ["docker", "run", "--rm", LOCAL_ROCK_IMAGE, "exec", "ls", "-la", "/manager"], check=True, ) diff --git a/lgbserver/tests/test_rock.py b/lgbserver/tests/test_rock.py index 5f88230..77aed84 100644 --- a/lgbserver/tests/test_rock.py +++ b/lgbserver/tests/test_rock.py @@ -31,7 +31,7 @@ def test_rock(rock_test_env): check_rock = CheckRock("rockcraft.yaml") rock_image = check_rock.get_name() rock_version = check_rock.get_version() - LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}" + LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}" # assert we have the expected files subprocess.run( @@ -40,7 +40,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/lgbserver", ], @@ -52,7 +52,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/kserve", ], @@ -64,7 +64,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /third_party", ], diff --git a/paddleserver/tests/test_rock.py b/paddleserver/tests/test_rock.py index 36e5c49..c08bb79 100644 --- a/paddleserver/tests/test_rock.py +++ b/paddleserver/tests/test_rock.py @@ -36,7 +36,7 @@ def test_rock(rock_test_env): check_rock = CheckRock("rockcraft.yaml") rock_image = check_rock.get_name() rock_version = check_rock.get_version() - LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}" + LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}" # assert we have the expected files subprocess.run( @@ -45,7 +45,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/paddleserver", ], @@ -57,7 +57,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/kserve", ], @@ -69,7 +69,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /third_party", ], diff --git a/pmmlserver/tests/test_rock.py b/pmmlserver/tests/test_rock.py index 614f557..9fa4686 100644 --- a/pmmlserver/tests/test_rock.py +++ b/pmmlserver/tests/test_rock.py @@ -36,7 +36,7 @@ def test_rock(rock_test_env): check_rock = CheckRock("rockcraft.yaml") rock_image = check_rock.get_name() rock_version = check_rock.get_version() - LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}" + LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}" # assert we have the expected files subprocess.run( @@ -45,7 +45,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/pmmlserver", ], @@ -57,7 +57,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/kserve", ], @@ -69,7 +69,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /third_party", ], diff --git a/sklearnserver/tests/test_rock.py b/sklearnserver/tests/test_rock.py index a0ea059..de84d53 100644 --- a/sklearnserver/tests/test_rock.py +++ b/sklearnserver/tests/test_rock.py @@ -36,7 +36,7 @@ def test_rock(rock_test_env): check_rock = CheckRock("rockcraft.yaml") rock_image = check_rock.get_name() rock_version = check_rock.get_version() - LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}" + LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}" # assert we have the expected files subprocess.run( @@ -45,7 +45,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/sklearnserver", ], @@ -57,7 +57,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/kserve", ], @@ -69,7 +69,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /third_party", ], diff --git a/storage-initializer/tests/test_rock.py b/storage-initializer/tests/test_rock.py index ebc7fcb..6a62c14 100644 --- a/storage-initializer/tests/test_rock.py +++ b/storage-initializer/tests/test_rock.py @@ -31,7 +31,7 @@ def test_rock(rock_test_env): check_rock = CheckRock("rockcraft.yaml") rock_image = check_rock.get_name() rock_version = check_rock.get_version() - LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}" + LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}" # assert we have the expected files subprocess.run( @@ -40,7 +40,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/kserve", ], @@ -52,7 +52,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /third_party", ], @@ -64,7 +64,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /storage-initializer/scripts/initializer-entrypoint", ], diff --git a/xgbserver/tests/test_rock.py b/xgbserver/tests/test_rock.py index 3bda547..caa84a2 100644 --- a/xgbserver/tests/test_rock.py +++ b/xgbserver/tests/test_rock.py @@ -36,7 +36,7 @@ def test_rock(rock_test_env): check_rock = CheckRock("rockcraft.yaml") rock_image = check_rock.get_name() rock_version = check_rock.get_version() - LOCAL_rock_IMAGE = f"{rock_image}:{rock_version}" + LOCAL_ROCK_IMAGE = f"{rock_image}:{rock_version}" # assert we have the expected files subprocess.run( @@ -45,7 +45,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/xgbserver", ], @@ -57,7 +57,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /usr/local/lib/python3.10/dist-packages/kserve", ], @@ -69,7 +69,7 @@ def test_rock(rock_test_env): "run", "--entrypoint", "/bin/bash", - LOCAL_rock_IMAGE, + LOCAL_ROCK_IMAGE, "-c", "ls -la /third_party", ],