orangebeard-client 2.7.1__tar.gz → 2.7.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {orangebeard_client-2.7.1/orangebeard_client.egg-info → orangebeard_client-2.7.2}/PKG-INFO +1 -1
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/config/AutoConfig.py +18 -16
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2/orangebeard_client.egg-info}/PKG-INFO +1 -1
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/pyproject.toml +1 -1
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/LICENSE +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/Cli.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/OrangebeardClient.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/__init__.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/Attachment.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/Attribute.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/FinishStep.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/FinishTest.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/FinishTestRun.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/Log.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/LogFormat.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/LogLevel.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/OrangebeardParameters.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/SUTComponent.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/Serializable.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/StartStep.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/StartSuite.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/StartTest.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/StartTestRun.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/Suite.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/TestStatus.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/TestType.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/__init__.py +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard_client.egg-info/SOURCES.txt +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard_client.egg-info/dependency_links.txt +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard_client.egg-info/entry_points.txt +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard_client.egg-info/requires.txt +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard_client.egg-info/top_level.txt +0 -0
- {orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/setup.cfg +0 -0
|
@@ -32,9 +32,10 @@ def update_config_parameters_from_env(current_config: OrangebeardParameters) ->
|
|
|
32
32
|
if env_attributes:
|
|
33
33
|
current_config.attributes.extend(env_attributes)
|
|
34
34
|
|
|
35
|
-
current_config.referenceUrl = os.environ.get('
|
|
35
|
+
current_config.referenceUrl = os.environ.get('ORANGEBEARD_REFERENCE_URL', current_config.referenceUrl)
|
|
36
36
|
if current_config.referenceUrl is not None:
|
|
37
37
|
current_config.attributes.append(Attribute('reference_url', current_config.referenceUrl))
|
|
38
|
+
current_config.referenceUrl = None #moved to attribute
|
|
38
39
|
|
|
39
40
|
current_config.testrun_uuid = os.environ.get('ORANGEBEARD_TESTRUN_UUID', current_config.testrun_uuid)
|
|
40
41
|
|
|
@@ -42,28 +43,29 @@ def update_config_parameters_from_env(current_config: OrangebeardParameters) ->
|
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
# noinspection PyBroadException
|
|
45
|
-
def get_config(path_to_resolve: str) ->
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
def get_config(path_to_resolve: str) -> OrangebeardParameters:
|
|
47
|
+
config_from_file = OrangebeardParameters()
|
|
48
|
+
|
|
49
|
+
current_path = path_to_resolve
|
|
50
|
+
while True:
|
|
51
|
+
config_file_path = os.path.join(current_path, 'orangebeard.json')
|
|
50
52
|
if os.path.exists(config_file_path):
|
|
51
53
|
try:
|
|
52
54
|
with open(config_file_path, 'r', encoding='utf-8') as file:
|
|
53
55
|
config_data = json.load(file)
|
|
54
|
-
if
|
|
55
|
-
config_data
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
pass
|
|
56
|
+
if isinstance(config_data, dict):
|
|
57
|
+
config_from_file.__dict__.update(config_data)
|
|
58
|
+
except (json.JSONDecodeError, IOError) as e:
|
|
59
|
+
print(f"Warning: Could not read or parse {config_file_path}. Error: {e}")
|
|
60
|
+
break
|
|
60
61
|
|
|
61
|
-
prev_path =
|
|
62
|
-
|
|
62
|
+
prev_path = current_path
|
|
63
|
+
current_path = os.path.dirname(current_path)
|
|
63
64
|
|
|
64
|
-
|
|
65
|
+
if current_path == prev_path:
|
|
66
|
+
break
|
|
65
67
|
|
|
66
|
-
return update_config_parameters_from_env(
|
|
68
|
+
return update_config_parameters_from_env(config_from_file)
|
|
67
69
|
|
|
68
70
|
|
|
69
71
|
config = get_config(os.getcwd())
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard/entity/OrangebeardParameters.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard_client.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard_client.egg-info/requires.txt
RENAMED
|
File without changes
|
{orangebeard_client-2.7.1 → orangebeard_client-2.7.2}/orangebeard_client.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|