pybuilder-integration 98__tar.gz → 101__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.
Files changed (18) hide show
  1. {pybuilder-integration-98 → pybuilder-integration-101}/PKG-INFO +4 -1
  2. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration/__init__.py +2 -0
  3. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration/directory_utility.py +7 -2
  4. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration/properties.py +1 -0
  5. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration/tasks.py +3 -1
  6. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration.egg-info/PKG-INFO +4 -1
  7. {pybuilder-integration-98 → pybuilder-integration-101}/setup.py +1 -1
  8. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration/artifact_manager.py +0 -0
  9. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration/cloudwatchlogs_utility.py +0 -0
  10. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration/exec_utility.py +0 -0
  11. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration/tool_utility.py +0 -0
  12. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration.egg-info/SOURCES.txt +0 -0
  13. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration.egg-info/dependency_links.txt +0 -0
  14. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration.egg-info/namespace_packages.txt +0 -0
  15. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration.egg-info/requires.txt +0 -0
  16. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration.egg-info/top_level.txt +0 -0
  17. {pybuilder-integration-98 → pybuilder-integration-101}/pybuilder_integration.egg-info/zip-safe +0 -0
  18. {pybuilder-integration-98 → pybuilder-integration-101}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybuilder-integration
3
- Version: 98
3
+ Version: 101
4
4
  Summary: A pybuilder plugin that runs integration tests (Tavern & Cypress) against a target.
5
5
  Home-page: https://github.com/rspitler/pybuilder-integration
6
6
  Author:
@@ -10,5 +10,8 @@ Maintainer-email:
10
10
  License: Apache 2.0
11
11
  Classifier: Development Status :: 3 - Alpha
12
12
  Classifier: Programming Language :: Python
13
+ Requires-Dist: pytest
14
+ Requires-Dist: tavern==1.25.2
15
+ Requires-Dist: boto3
13
16
 
14
17
  A pybuilder plugin that runs integration tests against a target. This is intended to be a broader scope than unit-tests encompassing dependant functionality.
@@ -25,6 +25,7 @@ def init_plugin(project):
25
25
  f"\t2. Run integration tests found in 'LATEST-{ENVIRONMENT}' managed by ${ARTIFACT_MANAGER}\n"
26
26
  f"\t3. Promote current build integration tests to 'LATEST-{ENVIRONMENT}' (disable with ${PROMOTE_ARTIFACT})\n"
27
27
  f"\t${INTEGRATION_TARGET_URL} - (required) Full URL target for tests\n"
28
+ f"\t${INTEGRATION_PUBLIC_TARGET_URL} - (required) Full public URL target for tests\n"
28
29
  f"\t${ENVIRONMENT} - (required) Environment that is being tested (ci/prod)\n"
29
30
  f"\t${PROMOTE_ARTIFACT} - Promote integration tests to LATEST-${ENVIRONMENT} (default TRUE)\n"
30
31
  )
@@ -34,6 +35,7 @@ def verify_environment(project: Project, logger: Logger, reactor: Reactor):
34
35
 
35
36
  @task(description="Run integration tests using a cypress spec. Requires NPM installed.\n"
36
37
  f"\t{INTEGRATION_TARGET_URL} - (required) Full URL target for cypress tests\n"
38
+ f"\t{INTEGRATION_PUBLIC_TARGET_URL} - (required) Full public URL target for cypress tests\n"
37
39
  f"\t{CYPRESS_TEST_DIR} - directory for test specification (src/integrationtest/cypress)\n"
38
40
  )
39
41
  def verify_cypress(project: Project, logger: Logger, reactor: Reactor):
@@ -3,6 +3,7 @@ import shutil
3
3
  import tempfile
4
4
 
5
5
 
6
+
6
7
  def prepare_reports_directory(project):
7
8
  return prepare_directory("$dir_reports", project)
8
9
 
@@ -34,12 +35,16 @@ def get_working_distribution_directory(project):
34
35
 
35
36
  def get_latest_distribution_directory(project):
36
37
  dist_directory = prepare_dist_directory(project)
37
- return _ensure_directory_exists(f"{dist_directory}/LATEST")
38
+ from pybuilder_integration import ENVIRONMENT
39
+ environment = project.get_mandatory_property(ENVIRONMENT)
40
+ return _ensure_directory_exists(f"{dist_directory}/LATEST-{environment}")
38
41
 
39
42
 
40
43
  def get_latest_zipped_distribution_directory(project):
41
44
  dist_directory = prepare_dist_directory(project)
42
- return _ensure_directory_exists(f"{dist_directory}/LATEST/zipped")
45
+ from pybuilder_integration import ENVIRONMENT
46
+ environment = project.get_mandatory_property(ENVIRONMENT)
47
+ return _ensure_directory_exists(f"{dist_directory}/LATEST-{environment}/zipped")
43
48
 
44
49
 
45
50
  def get_local_zip_artifact_path(tool, project, include_ending=False):
@@ -5,6 +5,7 @@ ARTIFACT_MANAGER = "integration_artifact_manager"
5
5
  CYPRESS_TEST_DIR = "cypress_test_dir"
6
6
  CYPRESS_CONFIG_FILE = "cypress_config_file"
7
7
  INTEGRATION_TARGET_URL = "integration_target_url"
8
+ INTEGRATION_PUBLIC_TARGET_URL = "integration_public_target_url"
8
9
  TAVERN_ADDITIONAL_ARGS = "tavern_addition_args"
9
10
  WORKING_TEST_DIR = "verify_environment_new_test_dir"
10
11
  TAVERN_TEST_DIR = "tavern_test_dir"
@@ -214,8 +214,10 @@ def _run_tavern_tests_in_dir(test_dir: str, logger: Logger, project: Project, re
214
214
  if project.get_property(RUN_PARALLEL, False):
215
215
  args.extend(['-n', 'auto'])
216
216
  os.environ['TARGET'] = project.get_property(INTEGRATION_TARGET_URL)
217
+ os.environ['PUBLIC_TARGET'] = project.get_property(INTEGRATION_PUBLIC_TARGET_URL)
217
218
  os.environ[ENVIRONMENT] = project.get_property(ENVIRONMENT)
218
- logger.info(f"Running against: {project.get_property(INTEGRATION_TARGET_URL)} ")
219
+ logger.info(f"Running against target: {project.get_property(INTEGRATION_TARGET_URL)} and "
220
+ f"public target: {project.get_property(INTEGRATION_PUBLIC_TARGET_URL)}")
219
221
  cache_wd = os.getcwd()
220
222
  try:
221
223
  os.chdir(test_dir)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pybuilder-integration
3
- Version: 98
3
+ Version: 101
4
4
  Summary: A pybuilder plugin that runs integration tests (Tavern & Cypress) against a target.
5
5
  Home-page: https://github.com/rspitler/pybuilder-integration
6
6
  Author:
@@ -10,5 +10,8 @@ Maintainer-email:
10
10
  License: Apache 2.0
11
11
  Classifier: Development Status :: 3 - Alpha
12
12
  Classifier: Programming Language :: Python
13
+ Requires-Dist: pytest
14
+ Requires-Dist: tavern==1.25.2
15
+ Requires-Dist: boto3
13
16
 
14
17
  A pybuilder plugin that runs integration tests against a target. This is intended to be a broader scope than unit-tests encompassing dependant functionality.
@@ -21,7 +21,7 @@ class install(_install):
21
21
  if __name__ == '__main__':
22
22
  setup(
23
23
  name = 'pybuilder-integration',
24
- version = '98',
24
+ version = '101',
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,