File tree Expand file tree Collapse file tree 5 files changed +15
-25
lines changed
Expand file tree Collapse file tree 5 files changed +15
-25
lines changed Original file line number Diff line number Diff line change 1+ ../ ../ test / settings .py
Original file line number Diff line number Diff line change 1+ ../ ../ test / settings .py
Original file line number Diff line number Diff line change 1+ import os
2+
3+ from pathlib import Path
4+
5+
6+ VERSION = os .getenv ("VERSION" )
7+ OS = os .getenv ("OS" ).lower ()
8+ IMAGE_NAME = os .getenv ("IMAGE_NAME" )
9+ TEST_DIR = Path (__file__ ).parent .absolute ()
Original file line number Diff line number Diff line change 1- import os
2- import sys
31import re
42import tempfile
53
6- from pathlib import Path
7-
84import pytest
95
106from container_ci_suite .container_lib import ContainerTestLib
11- from container_ci_suite .utils import ContainerTestLibUtils , check_variables
12-
13-
14- if not check_variables ():
15- sys .exit (1 )
16-
7+ from container_ci_suite .utils import ContainerTestLibUtils
178
18- TEST_DIR = Path (__file__ ).parent .absolute ()
19- VERSION = os .getenv ("VERSION" )
20- OS = os .getenv ("OS" ).lower ()
21- IMAGE_NAME = os .getenv ("IMAGE_NAME" )
9+ from settings import IMAGE_NAME , TEST_DIR
2210
2311
2412class TestHttpdAppContainer :
Original file line number Diff line number Diff line change 1- import os
2- import sys
31import time
42import tempfile
53
64from pathlib import Path
75
86from container_ci_suite .container_lib import ContainerTestLib
9- from container_ci_suite .utils import ContainerTestLibUtils , check_variables
7+ from container_ci_suite .utils import ContainerTestLibUtils
108from container_ci_suite .engines .podman_wrapper import PodmanCLIWrapper
119
12- if not check_variables ():
13- sys .exit (1 )
14-
15- TEST_DIR = Path (__file__ ).parent .absolute ()
16- VERSION = os .getenv ("VERSION" )
17- OS = os .getenv ("OS" ).lower ()
18- IMAGE_NAME = os .getenv ("IMAGE_NAME" )
19-
10+ from settings import IMAGE_NAME , TEST_DIR
2011
2112pre_init_test_app = TEST_DIR / "pre-init-test-app"
2213sample_test_app = TEST_DIR / "sample-test-app"
You can’t perform that action at this time.
0 commit comments