Solved bug which existed due to user structure refactoring

This commit is contained in:
2025-07-09 12:31:37 +02:00
parent e7322a239e
commit 73329506a9
3 changed files with 6 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ class TestGenerateDefaultApplicationsUsers(unittest.TestCase):
(self.role / "vars").mkdir(parents=True)
(self.role / "config").mkdir(parents=True)
(self.role / "meta").mkdir(parents=True)
(self.role / "users").mkdir(parents=True)
# Write application_id and configuration
(self.role / "vars" / "main.yml").write_text("application_id: app_with_users\n")
@@ -30,7 +31,7 @@ class TestGenerateDefaultApplicationsUsers(unittest.TestCase):
'bob': {'uid': 2002, 'gid': 2002}
}
}
with (self.role / "meta" / "users.yml").open('w', encoding='utf-8') as f:
with (self.role / "users" / "main.yml").open('w', encoding='utf-8') as f:
yaml.dump(users_meta, f)
# Output file path