Skip to content

Commit

Permalink
add get db call and assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Jul 26, 2024
1 parent 3daf33f commit c77bf8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rest/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2980,6 +2980,10 @@ func TestNotFoundOnInvalidDatabase(t *testing.T) {
assert.Equal(c, 1, len(invalidDatabases))
}, time.Second*10, time.Millisecond*100)

resp := rt.SendAdminRequest(http.MethodGet, "/db1/", "")
RequireStatus(t, resp, http.StatusNotFound)
assert.Contains(t, resp.Body.String(), "You must update database config immediately")

// delete the invalid db config to force the not found error
rt.DeleteDbConfigInBucket(dbConfig.Name, realBucketName)

Expand Down

0 comments on commit c77bf8c

Please sign in to comment.