Skip to content

Commit

Permalink
refactor: rebase
Browse files Browse the repository at this point in the history
Signed-off-by: 1998-felix <[email protected]>
  • Loading branch information
felixgateru committed Jul 4, 2024
1 parent 8562a82 commit 093a669
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/sdk/go/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,24 @@ func convertInvitation(i sdk.Invitation) invitations.Invitation {
}
}

func generateTestUser(t *testing.T) sdk.User {
createdAt, err := time.Parse(time.RFC3339, "2024-01-01T00:00:00Z")
assert.Nil(t, err, fmt.Sprintf("Unexpected error parsing time: %v", err))
return sdk.User{
ID: generateUUID(t),
Name: "clientname",
Credentials: sdk.Credentials{
Identity: "[email protected]",
Secret: secret,
},
Tags: []string{"tag1", "tag2"},
Metadata: validMetadata,
CreatedAt: createdAt,
UpdatedAt: createdAt,
Status: mgclients.EnabledStatus.String(),
}
}

func TestMain(m *testing.M) {
exitCode := m.Run()
os.Exit(exitCode)
Expand Down

0 comments on commit 093a669

Please sign in to comment.