cloud-radar 0.15.0a0__tar.gz → 0.15.0a1__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. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/PKG-INFO +1 -1
  2. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/pyproject.toml +1 -1
  3. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/_template.py +12 -4
  4. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/LICENSE.txt +0 -0
  5. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/README.md +0 -0
  6. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/__init__.py +0 -0
  7. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/__init__.py +0 -0
  8. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/e2e/__init__.py +0 -0
  9. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/e2e/_stack.py +0 -0
  10. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/__init__.py +0 -0
  11. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/_condition.py +0 -0
  12. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/_hooks.py +0 -0
  13. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/_output.py +0 -0
  14. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/_parameter.py +0 -0
  15. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/_resource.py +0 -0
  16. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/_stack.py +0 -0
  17. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/functions.py +0 -0
  18. {cloud_radar-0.15.0a0 → cloud_radar-0.15.0a1}/src/cloud_radar/cf/unit/test__template.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cloud-radar
3
- Version: 0.15.0a0
3
+ Version: 0.15.0a1
4
4
  Summary: Run functional tests on cloudformation stacks.
5
5
  License: Apache-2.0
6
6
  Keywords: aws,cloudformation,cloud-radar,testing,taskcat,cloud,radar
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cloud-radar"
3
- version = "0.15.0a0"
3
+ version = "0.15.0a1"
4
4
  description = "Run functional tests on cloudformation stacks."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -232,7 +232,6 @@ class Template:
232
232
  return {**functions.ALL_FUNCTIONS, **transform_functions}
233
233
 
234
234
  if isinstance(self.transforms, list):
235
-
236
235
  transform_functions = {}
237
236
 
238
237
  for transform in self.transforms:
@@ -505,8 +504,14 @@ class Template:
505
504
 
506
505
  t_params: dict = self.template["Parameters"]
507
506
 
508
- if set(parameters) - set(t_params):
509
- raise ValueError("You passed a Parameter that was not in the Template.")
507
+ params_not_in_template = set(parameters) - set(t_params)
508
+ if params_not_in_template:
509
+ raise ValueError(
510
+ (
511
+ "You supplied one or more Parameters that were not in the "
512
+ f"Template - {params_not_in_template}"
513
+ )
514
+ )
510
515
 
511
516
  for p_name, p_value in t_params.items():
512
517
  if p_name in parameters:
@@ -519,7 +524,10 @@ class Template:
519
524
 
520
525
  if "Default" not in p_value:
521
526
  raise ValueError(
522
- "Must provide values for parameters that don't have a default value."
527
+ (
528
+ f'Must provide values for parameter "{p_name}" '
529
+ "that does not have a default value."
530
+ )
523
531
  )
524
532
 
525
533
  t_params[p_name]["Value"] = p_value["Default"]
File without changes