Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use policy.yaml in tests #1110

Merged
merged 1 commit into from
Jan 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use policy.yaml in tests
This change replaces the usage of policy.json by policy.yaml in test
codes, because Gnocchi service now uses policy.yaml by default.
  • Loading branch information
kajinamit committed Jan 4, 2021
commit 756d56a323885eb0d6c25d61f8bde10006162060
2 changes: 1 addition & 1 deletion gnocchi/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def setUp(self):
os.path.join(py_root, 'rest', 'api-paste.ini'),
group="api")
self.conf.set_override('policy_file',
os.path.join(py_root, 'rest', 'policy.json'),
os.path.join(py_root, 'rest', 'policy.yaml'),
group="oslo_policy")

# NOTE(jd) This allows to test S3 on AWS
Expand Down
2 changes: 1 addition & 1 deletion gnocchi/tests/functional/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def start_fixture(self):
os.path.join(py_root, 'rest', 'api-paste.ini'),
group="api")
conf.set_override('policy_file',
os.path.join(py_root, 'rest', 'policy.json'),
os.path.join(py_root, 'rest', 'policy.yaml'),
group="oslo_policy")

# NOTE(sileht): This is not concurrency safe, but only this tests file
Expand Down