atlas-init 0.3.3__py3-none-any.whl → 0.3.4__py3-none-any.whl
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.
- atlas_init/__init__.py +1 -1
- atlas_init/atlas_init.yaml +1 -0
- atlas_init/cli_helper/go.py +3 -0
- atlas_init/cli_root/go_test.py +9 -2
- {atlas_init-0.3.3.dist-info → atlas_init-0.3.4.dist-info}/METADATA +1 -1
- {atlas_init-0.3.3.dist-info → atlas_init-0.3.4.dist-info}/RECORD +8 -8
- {atlas_init-0.3.3.dist-info → atlas_init-0.3.4.dist-info}/WHEEL +0 -0
- {atlas_init-0.3.3.dist-info → atlas_init-0.3.4.dist-info}/entry_points.txt +0 -0
    
        atlas_init/__init__.py
    CHANGED
    
    
    
        atlas_init/atlas_init.yaml
    CHANGED
    
    
    
        atlas_init/cli_helper/go.py
    CHANGED
    
    | @@ -79,6 +79,9 @@ def run_go_tests( | |
| 79 79 | 
             
                        logger.warning(f"no go packages for suite: {group}")
         | 
| 80 80 | 
             
                        continue
         | 
| 81 81 | 
             
                    if mode == GoTestMode.individual:
         | 
| 82 | 
            +
                        if group.sequential_tests:
         | 
| 83 | 
            +
                            logger.info(f"running individual tests sequentially as {group.name} is set to sequential_tests")
         | 
| 84 | 
            +
                            concurrent_runs = 1
         | 
| 82 85 | 
             
                        test_names = find_individual_tests(repo_path, package_paths)
         | 
| 83 86 | 
             
                        for name, pkg_path in test_names.items():
         | 
| 84 87 | 
             
                            results.add_test_package_path(name, pkg_path)
         | 
    
        atlas_init/cli_root/go_test.py
    CHANGED
    
    | @@ -19,6 +19,9 @@ def go_test( | |
| 19 19 | 
             
                concurrent_runs: int = typer.Option(20, "-c", "--concurrent", help="number of concurrent runs"),
         | 
| 20 20 | 
             
                re_run: bool = typer.Option(False, "-r", "--re-run", help="re-run the tests if the log already exist"),
         | 
| 21 21 | 
             
                export_mock_tf_log: bool = typer.Option(False, "-e", "--export", help="export the mock-tf-log"),
         | 
| 22 | 
            +
                export_mock_tf_log_verbose: bool = typer.Option(
         | 
| 23 | 
            +
                    False, "--export-verbose", help="log roundtrips when exporting the mock-tf-log"
         | 
| 24 | 
            +
                ),
         | 
| 22 25 | 
             
                env_method: GoEnvVars = typer.Option(GoEnvVars.manual, "--env", help="|".join(list(GoEnvVars))),
         | 
| 23 26 | 
             
            ):
         | 
| 24 27 | 
             
                if export_mock_tf_log and mode != GoTestMode.individual:
         | 
| @@ -54,12 +57,12 @@ def go_test( | |
| 54 57 | 
             
                    error_msg = "no results found"
         | 
| 55 58 | 
             
                    raise ValueError(error_msg)
         | 
| 56 59 | 
             
                if export_mock_tf_log:
         | 
| 57 | 
            -
                    _export_mock_tf_logs(results)
         | 
| 60 | 
            +
                    _export_mock_tf_logs(results, export_mock_tf_log_verbose)
         | 
| 58 61 | 
             
                # use the test_results: dict[str, list[GoTestRun]]
         | 
| 59 62 | 
             
                # TODO: create_detailed_summary()
         | 
| 60 63 |  | 
| 61 64 |  | 
| 62 | 
            -
            def _export_mock_tf_logs(results: GoTestResult):
         | 
| 65 | 
            +
            def _export_mock_tf_logs(results: GoTestResult, verbose: bool):
         | 
| 63 66 | 
             
                package_paths = results.test_name_package_path
         | 
| 64 67 | 
             
                admin_api_path = resolve_admin_api_path("", sdk_branch="main", admin_api_path="")
         | 
| 65 68 | 
             
                for test_name, runs in results.runs.items():
         | 
| @@ -78,11 +81,15 @@ def _export_mock_tf_logs(results: GoTestResult): | |
| 78 81 | 
             
                        tpf_package_path = default_package_path
         | 
| 79 82 | 
             
                    tf_log_path = run.log_path
         | 
| 80 83 | 
             
                    assert tf_log_path, f"test didn't set tf_log_path: {test_name}"
         | 
| 84 | 
            +
                    if test_name in results.failure_names:
         | 
| 85 | 
            +
                        logger.warning(f"test_name={test_name} failed, not exporting mock-tf-log")
         | 
| 86 | 
            +
                        continue
         | 
| 81 87 | 
             
                    req = MockTFLog(
         | 
| 82 88 | 
             
                        log_path=tf_log_path,
         | 
| 83 89 | 
             
                        output_dir=tpf_package_path,
         | 
| 84 90 | 
             
                        admin_api_path=admin_api_path,
         | 
| 85 91 | 
             
                        package_name=package_path.name,
         | 
| 92 | 
            +
                        log_diff_roundtrips=verbose,
         | 
| 86 93 | 
             
                    )
         | 
| 87 94 | 
             
                    mocked_yaml = mock_tf_log(req)
         | 
| 88 95 | 
             
                    logger.info(f"mocked TestConfig saved to {mocked_yaml}")
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            Metadata-Version: 2.3
         | 
| 2 2 | 
             
            Name: atlas-init
         | 
| 3 | 
            -
            Version: 0.3. | 
| 3 | 
            +
            Version: 0.3.4
         | 
| 4 4 | 
             
            Project-URL: Documentation, https://github.com/EspenAlbert/atlas-init#readme
         | 
| 5 5 | 
             
            Project-URL: Issues, https://github.com/EspenAlbert/atlas-init/issues
         | 
| 6 6 | 
             
            Project-URL: Source, https://github.com/EspenAlbert/atlas-init
         | 
| @@ -1,6 +1,6 @@ | |
| 1 | 
            -
            atlas_init/__init__.py,sha256= | 
| 1 | 
            +
            atlas_init/__init__.py,sha256=2WaRI0pCJs3nKsbAgEt7upEnc9JyUA4G-ZqVJG0Jh5U,372
         | 
| 2 2 | 
             
            atlas_init/__main__.py,sha256=dY1dWWvwxRZMmnOFla6RSfti-hMeLeKdoXP7SVYqMUc,52
         | 
| 3 | 
            -
            atlas_init/atlas_init.yaml,sha256= | 
| 3 | 
            +
            atlas_init/atlas_init.yaml,sha256=OAosOZw4kjhTWcPeEv0jtztRFWRhsie8D9r5afySAxM,2065
         | 
| 4 4 | 
             
            atlas_init/cli.py,sha256=xOnAOUccHDLkivICdF0GsLhccr_IxvnTKTbe1KGW7kU,8971
         | 
| 5 5 | 
             
            atlas_init/cli_args.py,sha256=tiwUYAE0JBSl9lHV6VJ41vFCU90ChBZ4mKvi-YoF_HY,541
         | 
| 6 6 | 
             
            atlas_init/humps.py,sha256=l0ZXXuI34wwd9TskXhCjULfGbUyK-qNmiyC6_2ow6kU,7339
         | 
| @@ -13,13 +13,13 @@ atlas_init/cli_cfn/cfn_parameter_finder.py,sha256=tAadNF1M_U2BTY-m9fXVXFXNQRvfud | |
| 13 13 | 
             
            atlas_init/cli_cfn/example.py,sha256=pQNpFreuv58O3lanLy5Kunp8GxG8i9PWjuWsYlpv2tg,8320
         | 
| 14 14 | 
             
            atlas_init/cli_cfn/files.py,sha256=vjop9G8rGMgyRe4fX5eWNX5H-YGAmk-fNUqUGErI7xg,1720
         | 
| 15 15 | 
             
            atlas_init/cli_helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
         | 
| 16 | 
            -
            atlas_init/cli_helper/go.py,sha256= | 
| 16 | 
            +
            atlas_init/cli_helper/go.py,sha256=727Rh881pU5w1ZXBmDGt6ep0yvjRVpIBUL80BZyT0O8,8221
         | 
| 17 17 | 
             
            atlas_init/cli_helper/run.py,sha256=njE_ua8x_glOo6eOGa4NgZqpLcqOo3eALydrZ0bCXW4,3486
         | 
| 18 18 | 
             
            atlas_init/cli_helper/sdk.py,sha256=exh58-VZwxtosaxM269C62EEy1VnpJPOVziPDPkGsmE,2983
         | 
| 19 19 | 
             
            atlas_init/cli_helper/sdk_auto_changes.py,sha256=oWyXw7P0PdO28hclRvza_RcIVXAyzu0lCYTJTNBDMeo,189
         | 
| 20 20 | 
             
            atlas_init/cli_helper/tf_runner.py,sha256=OYdC-Y6i-xRh8_LCudKdtP7CEYEO9e67nVhholN29eg,3636
         | 
| 21 21 | 
             
            atlas_init/cli_root/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
         | 
| 22 | 
            -
            atlas_init/cli_root/go_test.py,sha256= | 
| 22 | 
            +
            atlas_init/cli_root/go_test.py,sha256=1MgBjT1qXmJAbL0Z-REm64hVN4qFLBEVTr0zwuivlyc,4265
         | 
| 23 23 | 
             
            atlas_init/cli_root/trigger.py,sha256=oEgqb_l25tyYgUaFHEuChcOCJA7k3mnRa4D-Myz-Igs,5789
         | 
| 24 24 | 
             
            atlas_init/cli_tf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
         | 
| 25 25 | 
             
            atlas_init/cli_tf/app.py,sha256=0Y5c-Pc9ibOz6kXvFlL-yhH_fx1nHLgBgK9OAVqjX9s,11390
         | 
| @@ -88,7 +88,7 @@ atlas_init/tf/modules/vpc_peering/vpc_peering.tf,sha256=hJ3KJdGbLpOQednUpVuiJ0Cq | |
| 88 88 | 
             
            atlas_init/tf/modules/vpc_privatelink/atlas-privatelink.tf,sha256=FloaaX1MNDvoMZxBnEopeLKyfIlq6kaX2dmx8WWlXNU,1298
         | 
| 89 89 | 
             
            atlas_init/tf/modules/vpc_privatelink/variables.tf,sha256=gktHCDYD4rz6CEpLg5aiXcFbugw4L5S2Fqc52QYdJyc,255
         | 
| 90 90 | 
             
            atlas_init/tf/modules/vpc_privatelink/versions.tf,sha256=G0u5V_Hvvrkux_tqfOY05pA-GzSp_qILpfx1dZaTGDc,237
         | 
| 91 | 
            -
            atlas_init-0.3. | 
| 92 | 
            -
            atlas_init-0.3. | 
| 93 | 
            -
            atlas_init-0.3. | 
| 94 | 
            -
            atlas_init-0.3. | 
| 91 | 
            +
            atlas_init-0.3.4.dist-info/METADATA,sha256=bur5W1zMSSpw_8NmQhrI5Ban1vNVzmVdRu6J-tJB_co,5650
         | 
| 92 | 
            +
            atlas_init-0.3.4.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
         | 
| 93 | 
            +
            atlas_init-0.3.4.dist-info/entry_points.txt,sha256=oSNFIEAS9nUZyyZ8Fc-0F0U5j-NErygy01LpJVSHapQ,57
         | 
| 94 | 
            +
            atlas_init-0.3.4.dist-info/RECORD,,
         | 
| 
            File without changes
         | 
| 
            File without changes
         |