Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brycekahle committed Jun 20, 2024
1 parent 20be2be commit 595e153
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tasks/gitlab_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_link_to_pipeline_job_on_main(job_name: str):
def get_link_to_test_runs(job_id: str):
query_params = {
"test_level": "test",
"@ci.job.url": f"https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/{job_id}",
"@ci.job.url": f"\"https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/{job_id}\"",
"@test.service": "datadog-agent",
}
query_string = to_query_string(query_params)
Expand Down
6 changes: 3 additions & 3 deletions tasks/unit-tests/gitlab_helpers_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_create_gitlab_annotations_report_basic_name(self):
{
"external_link": {
"label": "CI Visibility: This job test runs on main",
"url": f"{TEST_VISIBILITY_URL}?query=test_level%3Atest%20%40ci.job.name%3A%22test-job%22%20%40git.branch%3Amain20%40test.service%3Adatadog-agent",
"url": f"{TEST_VISIBILITY_URL}?query=test_level%3Atest%20%40ci.job.name%3A%22test-job%22%20%40git.branch%3Amain%20%40test.service%3Adatadog-agent",
}
},
]
Expand Down Expand Up @@ -72,7 +72,7 @@ def test_create_gitlab_annotations_report_name_with_spaces(self):
{
"external_link": {
"label": "CI Visibility: This job test runs on main",
"url": f"{TEST_VISIBILITY_URL}?query=test_level%3Atest%20%40ci.job.name%3A%22test%20job%22%20%40git.branch%3Amain20%40test.service%3Adatadog-agent",
"url": f"{TEST_VISIBILITY_URL}?query=test_level%3Atest%20%40ci.job.name%3A%22test%20job%22%20%40git.branch%3Amain%20%40test.service%3Adatadog-agent",
}
},
]
Expand Down Expand Up @@ -109,7 +109,7 @@ def test_create_gitlab_annotations_report_name_with_weird_chars(self):
{
"external_link": {
"label": "CI Visibility: This job test runs on main",
"url": f"{TEST_VISIBILITY_URL}?query=test_level%3Atest%20%40ci.job.name%3A%22test%20job%20%5BOne%7CTwo%7CThree%5D%20--skip%20Four%22%20%40git.branch%3Amain20%40test.service%3Adatadog-agent",
"url": f"{TEST_VISIBILITY_URL}?query=test_level%3Atest%20%40ci.job.name%3A%22test%20job%20%5BOne%7CTwo%7CThree%5D%20--skip%20Four%22%20%40git.branch%3Amain%20%40test.service%3Adatadog-agent",
}
},
]
Expand Down

0 comments on commit 595e153

Please sign in to comment.