Skip to content

Commit

Permalink
test that entered provising time is set
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes94 committed Oct 22, 2024
1 parent 4eec3d1 commit f6d4a7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/dinosaur/test/integration/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ func TestAssignCluster(t *testing.T) {
require.Nil(t, cr.Routes, "Stored Routes content should be nil.")
require.Empty(t, cr.RoutesCreationID, "Stored RoutesCreationID should be reset to empty string")
require.Equal(t, constants2.CentralRequestStatusProvisioning.String(), cr.Status, "Status should change from ready to provisioning.")
require.True(t, cr.EnteredProvisionig.Valid, "EnteredProvisioning time should be valid")
// can't require only after here as this might introduce a timing flake when this test runs through faster then
// the precision of the stored time
require.True(t, cr.CreatedAt.Equal(cr.EnteredProvisionig.Time) || cr.CreatedAt.After(cr.EnteredProvisionig.Time))
}

func TestAssignClusterCentralMismatch(t *testing.T) {
Expand Down

0 comments on commit f6d4a7b

Please sign in to comment.