pybuilder-integration 91__tar.gz → 93__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.
- {pybuilder-integration-91 → pybuilder-integration-93}/PKG-INFO +1 -1
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/artifact_manager.py +10 -6
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/tasks.py +10 -3
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/PKG-INFO +1 -1
- {pybuilder-integration-91 → pybuilder-integration-93}/setup.py +1 -1
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/__init__.py +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/cloudwatchlogs_utility.py +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/directory_utility.py +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/exec_utility.py +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/properties.py +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/tool_utility.py +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/SOURCES.txt +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/dependency_links.txt +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/namespace_packages.txt +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/requires.txt +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/top_level.txt +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/zip-safe +0 -0
- {pybuilder-integration-91 → pybuilder-integration-93}/setup.cfg +0 -0
{pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/artifact_manager.py
RENAMED
|
@@ -104,13 +104,17 @@ class S3ArtifactManager(ArtifactManager):
|
|
|
104
104
|
|
|
105
105
|
def does_bucket_exist(self, logger, project, reactor):
|
|
106
106
|
app_group, app_name, bucket, environment, role = get_project_metadata(logger, project)
|
|
107
|
+
|
|
108
|
+
args = [
|
|
109
|
+
's3api',
|
|
110
|
+
'head-bucket',
|
|
111
|
+
'--bucket',
|
|
112
|
+
bucket
|
|
113
|
+
]
|
|
114
|
+
if project.get_property("verbose", False):
|
|
115
|
+
args.append('--debug')
|
|
107
116
|
return exec_utility.exec_command(command_name='aws',
|
|
108
|
-
args=
|
|
109
|
-
's3api',
|
|
110
|
-
'head-bucket',
|
|
111
|
-
'--bucket',
|
|
112
|
-
bucket
|
|
113
|
-
],
|
|
117
|
+
args=args,
|
|
114
118
|
failure_message=f"Failed to find bucket",
|
|
115
119
|
log_file_name='s3-head-bucket',
|
|
116
120
|
project=project,
|
|
@@ -48,6 +48,7 @@ def _should_run_latest(test_dir, project):
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
def _run_tests_in_directory(dist_directory, logger, project, reactor, latest=False):
|
|
51
|
+
logger.debug(f"Run tests in directory: {os.listdir(dist_directory)} ")
|
|
51
52
|
_run_tavern_tests_in_dist_dir(dist_directory, latest, logger, project, reactor)
|
|
52
53
|
_run_cypress_tests_in_dist_dir(dist_directory, latest, logger, project, reactor)
|
|
53
54
|
|
|
@@ -56,6 +57,8 @@ def _run_cypress_tests_in_dist_dir(dist_directory, latest, logger, project, reac
|
|
|
56
57
|
total_time = Timer.start()
|
|
57
58
|
cypress_test_path = f"{dist_directory}/cypress"
|
|
58
59
|
if os.path.exists(cypress_test_path):
|
|
60
|
+
logger.debug(f"Run cypress tests in directory: {cypress_test_path} ")
|
|
61
|
+
logger.debug(f"Run cypress tests in directory files: {os.listdir(cypress_test_path)} ")
|
|
59
62
|
logger.info(f"Found cypress tests - starting run latest: {latest}")
|
|
60
63
|
if latest:
|
|
61
64
|
for test_dir in os.listdir(cypress_test_path):
|
|
@@ -80,11 +83,14 @@ def _run_tavern_tests_in_dist_dir(dist_directory, latest, logger, project, react
|
|
|
80
83
|
tavern_test_path = f"{dist_directory}/tavern"
|
|
81
84
|
if os.path.exists(tavern_test_path):
|
|
82
85
|
logger.info(f"Found tavern tests - starting run latest: {latest}")
|
|
86
|
+
logger.debug(f"Run tavern tests in directory: {tavern_test_path} ")
|
|
87
|
+
logger.debug(f"Run tavern tests in directory files: {os.listdir(tavern_test_path)} ")
|
|
83
88
|
if latest:
|
|
84
89
|
for tavern_dir in os.listdir(tavern_test_path):
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
90
|
+
tavern_test_direcotry = f"{tavern_test_path}/{tavern_dir}"
|
|
91
|
+
if os.path.isdir(tavern_test_direcotry) and _should_run_latest(tavern_dir, project):
|
|
92
|
+
logger.info(f"Running {tavern_test_direcotry}")
|
|
93
|
+
_run_tavern_tests_in_dir(test_dir=tavern_test_direcotry,
|
|
88
94
|
logger=logger,
|
|
89
95
|
project=project,
|
|
90
96
|
reactor=reactor,
|
|
@@ -113,6 +119,7 @@ def _run_cypress_tests_in_directory(work_dir, logger, project, reactor: Reactor)
|
|
|
113
119
|
logger.info("Skipping cypress run: no tests")
|
|
114
120
|
return False
|
|
115
121
|
logger.info(f"Found {len(os.listdir(work_dir))} files in cypress test directory")
|
|
122
|
+
logger.debug(f"Files: {os.listdir(work_dir)} ")
|
|
116
123
|
# Validate NPM install and Install cypress
|
|
117
124
|
package_json = os.path.join(work_dir, "package.json")
|
|
118
125
|
if os.path.exists(package_json):
|
|
@@ -21,7 +21,7 @@ class install(_install):
|
|
|
21
21
|
if __name__ == '__main__':
|
|
22
22
|
setup(
|
|
23
23
|
name = 'pybuilder-integration',
|
|
24
|
-
version = '
|
|
24
|
+
version = '93',
|
|
25
25
|
description = 'A pybuilder plugin that runs integration tests (Tavern & Cypress) against a target.',
|
|
26
26
|
long_description = 'A pybuilder plugin that runs integration tests against a target. This is intended to be a broader scope than unit-tests encompassing dependant functionality.',
|
|
27
27
|
long_description_content_type = None,
|
|
File without changes
|
|
File without changes
|
{pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration/directory_utility.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/requires.txt
RENAMED
|
File without changes
|
{pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/top_level.txt
RENAMED
|
File without changes
|
{pybuilder-integration-91 → pybuilder-integration-93}/pybuilder_integration.egg-info/zip-safe
RENAMED
|
File without changes
|
|
File without changes
|