Add a testcase for specifying project label

Test that a project label with the configured current project
is still added to queries even when the query tries to specify
a project on its own.

Change-Id: I920382c6c43971fef7ccc63fa10fcd5f4627cb09
This commit is contained in:
Jaromir Wysoglad
2025-06-20 04:14:13 -04:00
parent f36b857ae8
commit 21a5f3eb85

View File

@@ -167,6 +167,12 @@ class PromQLRbacTest(testtools.TestCase):
f"{{project='{self.project_id}'}}"
f"[10m])))"
)
), (
"test_query{project='some_id'}",
(f"test_query{{project='some_id', "
f"project='{self.project_id}'}}"
)
)
]