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:
Graham McIntire 2026-03-10 15:49:11 -05:00
parent b4ef6b2020
commit 9d513b77ee
No known key found for this signature in database

View file

@ -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.