atlas-init 0.3.4__py3-none-any.whl → 0.3.5__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/cli_helper/go.py +5 -1
- atlas_init/cli_root/go_test.py +4 -0
- {atlas_init-0.3.4.dist-info → atlas_init-0.3.5.dist-info}/METADATA +1 -1
- {atlas_init-0.3.4.dist-info → atlas_init-0.3.5.dist-info}/RECORD +7 -7
- {atlas_init-0.3.4.dist-info → atlas_init-0.3.5.dist-info}/WHEEL +0 -0
- {atlas_init-0.3.4.dist-info → atlas_init-0.3.5.dist-info}/entry_points.txt +0 -0
atlas_init/__init__.py
CHANGED
atlas_init/cli_helper/go.py
CHANGED
@@ -66,6 +66,7 @@ def run_go_tests(
|
|
66
66
|
concurrent_runs: int = 20,
|
67
67
|
re_run: bool = False,
|
68
68
|
env_vars: GoEnvVars = GoEnvVars.vscode,
|
69
|
+
names: set[str] | None = None,
|
69
70
|
) -> GoTestResult:
|
70
71
|
test_env = _resolve_env_vars(settings, env_vars)
|
71
72
|
if ci_value := test_env.pop("CI", None):
|
@@ -84,10 +85,13 @@ def run_go_tests(
|
|
84
85
|
concurrent_runs = 1
|
85
86
|
test_names = find_individual_tests(repo_path, package_paths)
|
86
87
|
for name, pkg_path in test_names.items():
|
88
|
+
if names and name not in names:
|
89
|
+
continue
|
87
90
|
results.add_test_package_path(name, pkg_path)
|
88
91
|
commands_to_run[name] = f"go test {packages} -v -run ^{name}$ -timeout {timeout_minutes}m"
|
89
92
|
elif mode == GoTestMode.package:
|
90
|
-
|
93
|
+
name_regex = f'^({"|".join(names)})$' if names else "^TestAcc*"
|
94
|
+
command = f"go test {packages} -v -run {name_regex} -timeout {timeout_minutes}m"
|
91
95
|
if not group.sequential_tests:
|
92
96
|
command = f"{command} -parallel {concurrent_runs}"
|
93
97
|
commands_to_run[group.name] = command
|
atlas_init/cli_root/go_test.py
CHANGED
@@ -23,6 +23,9 @@ def go_test(
|
|
23
23
|
False, "--export-verbose", help="log roundtrips when exporting the mock-tf-log"
|
24
24
|
),
|
25
25
|
env_method: GoEnvVars = typer.Option(GoEnvVars.manual, "--env", help="|".join(list(GoEnvVars))),
|
26
|
+
names: list[str] = typer.Option(
|
27
|
+
..., "-n", "--names", default_factory=list, help="run only the tests with these names"
|
28
|
+
),
|
26
29
|
):
|
27
30
|
if export_mock_tf_log and mode != GoTestMode.individual:
|
28
31
|
err_msg = "exporting mock-tf-log is only supported for individual tests"
|
@@ -50,6 +53,7 @@ def go_test(
|
|
50
53
|
concurrent_runs=concurrent_runs,
|
51
54
|
re_run=re_run,
|
52
55
|
env_vars=env_method,
|
56
|
+
names=set(names),
|
53
57
|
)
|
54
58
|
case _:
|
55
59
|
raise NotImplementedError
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: atlas-init
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.5
|
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,4 +1,4 @@
|
|
1
|
-
atlas_init/__init__.py,sha256=
|
1
|
+
atlas_init/__init__.py,sha256=bmmvmAoWZR99QstJeXgp8n5fDtO2RL8UYwdJpDBOnj8,372
|
2
2
|
atlas_init/__main__.py,sha256=dY1dWWvwxRZMmnOFla6RSfti-hMeLeKdoXP7SVYqMUc,52
|
3
3
|
atlas_init/atlas_init.yaml,sha256=OAosOZw4kjhTWcPeEv0jtztRFWRhsie8D9r5afySAxM,2065
|
4
4
|
atlas_init/cli.py,sha256=xOnAOUccHDLkivICdF0GsLhccr_IxvnTKTbe1KGW7kU,8971
|
@@ -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=_ytiX-EUqdZdBvzchQVRmlbrbbdXw4sf_FJdsCtffb8,8412
|
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=tWQgIoL2K1XdQfvU7wlA1ckBULfC9XrrF6SUs928KWg,4438
|
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.5.dist-info/METADATA,sha256=1JS-oOF2C-MZatON3IcBf3QlOC_KVuU0Xl61MBWEYco,5650
|
92
|
+
atlas_init-0.3.5.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
93
|
+
atlas_init-0.3.5.dist-info/entry_points.txt,sha256=oSNFIEAS9nUZyyZ8Fc-0F0U5j-NErygy01LpJVSHapQ,57
|
94
|
+
atlas_init-0.3.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|