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:
@@ -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}'}}"
|
||||
)
|
||||
)
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user