Skip to content

Commit

Permalink
fixed windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
idimov-keeper committed Sep 14, 2023
1 parent 1b32689 commit 0aa95a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integration/keeper_secrets_manager_cli/tests/misc_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion integration/keeper_secrets_manager_cli/tests/secret_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 0aa95a3

Please sign in to comment.