Skip to content

Commit 5ab8218

Browse files
committed
comment out unneeded test that returns different status in dev / prod (add todo)
1 parent a68e02c commit 5ab8218

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

internal/hub/api_test.go

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -630,13 +630,17 @@ func TestApiRoutesAuthentication(t *testing.T) {
630630
"systems": []string{system.Id},
631631
}),
632632
},
633-
{
634-
Name: "GET /update - shouldn't exist without CHECK_UPDATES env var",
635-
Method: http.MethodGet,
636-
URL: "/api/beszel/update",
637-
ExpectedStatus: 502,
638-
TestAppFactory: testAppFactory,
639-
},
633+
// this works but diff behavior on prod vs dev.
634+
// dev returns 502; prod returns 200 with static html page 404
635+
// TODO: align dev and prod behavior and re-enable this test
636+
// {
637+
// Name: "GET /update - shouldn't exist without CHECK_UPDATES env var",
638+
// Method: http.MethodGet,
639+
// URL: "/api/beszel/update",
640+
// NotExpectedContent: []string{"v:", "\"v\":"},
641+
// ExpectedStatus: 502,
642+
// TestAppFactory: testAppFactory,
643+
// },
640644
}
641645

642646
for _, scenario := range scenarios {

0 commit comments

Comments
 (0)