fix: tag flaky GitHub API test as :integration
The test makes a real HTTP call to GitHub which can fail or return different responses depending on network conditions, rate limits, etc. Tagged as :integration to exclude from normal test runs, consistent with other GitHub API tests in ReleaseCheckerTest.
This commit is contained in:
parent
b4ef6b2020
commit
9d513b77ee
1 changed files with 1 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ defmodule ToweropsWeb.Api.V1.AgentReleaseWebhookControllerTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "create/2 response" do
|
describe "create/2 response" do
|
||||||
|
@tag :integration
|
||||||
test "returns 502 when GitHub API is unavailable", %{conn: conn} do
|
test "returns 502 when GitHub API is unavailable", %{conn: conn} do
|
||||||
# In test environment, GitHub API returns 404 (private repo, no auth token).
|
# In test environment, GitHub API returns 404 (private repo, no auth token).
|
||||||
# The controller should surface this as a 502.
|
# The controller should surface this as a 502.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue