diff --git a/integration/keeper_secrets_manager_cli/tests/misc_test.py b/integration/keeper_secrets_manager_cli/tests/misc_test.py index c9cf87f3..fdbe4dc6 100644 --- a/integration/keeper_secrets_manager_cli/tests/misc_test.py +++ b/integration/keeper_secrets_manager_cli/tests/misc_test.py @@ -66,7 +66,7 @@ def test_config_mode_dog_food(self): sp = subprocess.run(["icacls.exe", Config.default_ini_file], capture_output=True) if sp.stderr is not None and sp.stderr.decode() != "": self.fail("Could not icacls.exe {}: {}".format(Config.default_ini_file,sp.stderr.decode())) - allowed_users = [user.lower(), "Administrators".lower()] + allowed_users = [user.decode().lower(), "Administrators".lower()] for line in sp.stdout.decode().split("\n"): parts = line[len(Config.default_ini_file):].split(":") if len(parts) == 2: diff --git a/integration/keeper_secrets_manager_cli/tests/secret_test.py b/integration/keeper_secrets_manager_cli/tests/secret_test.py index b187fc19..16c0f279 100644 --- a/integration/keeper_secrets_manager_cli/tests/secret_test.py +++ b/integration/keeper_secrets_manager_cli/tests/secret_test.py @@ -159,6 +159,7 @@ def test_get(self): ], catch_exceptions=False) self.assertEqual(0, result.exit_code, "the exit code was not 0") + print(f'result.output: {result.output}') # TODO: remove fields = json.loads(result.output) self.assertEqual(4, len(fields), "didn't find 4 objects in array") @@ -958,7 +959,7 @@ def test_template_record_types(self): self.assertIsInstance(data.get("fields"), list, "fields is not a list") - field = data.get("fields")[1] + field = data.get("fields")[0] self.assertEqual("login", field.get("type"), "field type is not login") self.assertIsNotNone(field.get("value"), "value was None")