diff options
author | Lovett, Trevor <trevor.lovett@att.com> | 2019-07-23 18:09:09 -0500 |
---|---|---|
committer | Lovett, Trevor (tl2972) <tl2972@att.com> | 2019-07-24 08:13:17 -0500 |
commit | b395eb5bb6c79558202a3d414982a56fac7c9e1d (patch) | |
tree | fee89beee0b19a0a15ae79037024e4a8edb64aaf /ice_validator/tests/test_initial_configuration.py | |
parent | ddba4856fc7e3d844e9e763d44ce97207a1f23bd (diff) |
[VVP] Adding bandit security scans and fixes
Issue-ID: VVP-244
Change-Id: Ia782f4cc7bf5a379ff8cdcce96cd2e7235998345
Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
Diffstat (limited to 'ice_validator/tests/test_initial_configuration.py')
-rw-r--r-- | ice_validator/tests/test_initial_configuration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ice_validator/tests/test_initial_configuration.py b/ice_validator/tests/test_initial_configuration.py index f911ce9..654d75d 100644 --- a/ice_validator/tests/test_initial_configuration.py +++ b/ice_validator/tests/test_initial_configuration.py @@ -80,7 +80,7 @@ def test_02_no_duplicate_keys_in_file(yaml_file): try: with open(yaml_file) as fh: - normal_yaml.load(fh) + normal_yaml.safe_load(fh) except ConstructorError as e: pytest.fail("{} {}".format(e.problem, e.problem_mark)) @@ -93,7 +93,7 @@ def test_03_all_referenced_resources_exists(yaml_file): actually exists in all yaml files """ with open(yaml_file) as fh: - yml = yaml.load(fh) + yml = yaml.safe_load(fh) # skip if resources are not defined if "resources" not in yml: |