diff --git a/nomad/secure_variables_endpoint_test.go b/nomad/secure_variables_endpoint_test.go index 00ef54bc3..2649b0d36 100644 --- a/nomad/secure_variables_endpoint_test.go +++ b/nomad/secure_variables_endpoint_test.go @@ -40,8 +40,9 @@ func TestSecureVariablesEndpoint_auth(t *testing.T) { alloc2.Namespace = ns store := srv.fsm.State() + require.NoError(t, store.UpsertNamespaces(1000, []*structs.Namespace{{Name: ns}})) require.NoError(t, store.UpsertAllocs( - structs.MsgTypeTestSetup, 1000, []*structs.Allocation{alloc1, alloc2})) + structs.MsgTypeTestSetup, 1001, []*structs.Allocation{alloc1, alloc2})) claims1 := alloc1.ToTaskIdentityClaims("web") idToken, err := srv.encrypter.SignClaims(claims1)