Skip to content

Commit

Permalink
Move test clients into eastest pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiante committed Dec 18, 2023
1 parent 0abfd79 commit 6032201
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client_test.go → eastest/clients.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package easclient_test
package eastest

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion r_get_record_attachment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestStoreClient_GetRecordAttachment(t *testing.T) {

buffer := new(bytes.Buffer)

record, err := DefaultClient.GetRecordAttachment(
record, err := eastest.DefaultClient.GetRecordAttachment(
ctx,
buffer,
uuid.MustParse("a65efcf9-8c74-4b84-8106-233c1c64a07c"),
Expand Down
2 changes: 1 addition & 1 deletion r_get_record_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestStoreClient_GetRecord(t *testing.T) {
user := easclient.NewUserClaims("[email protected]")
ctx = user.SetOnContext(ctx)

record, err := DefaultClient.GetRecord(ctx, uuid.MustParse("990ac5bf-1df5-45b8-82ca-41120621f826"))
record, err := eastest.DefaultClient.GetRecord(ctx, uuid.MustParse("990ac5bf-1df5-45b8-82ca-41120621f826"))
require.NoError(t, err)
require.NotNil(t, record)
}
2 changes: 1 addition & 1 deletion r_get_store_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func TestStoreClient_GetStoreStatus(t *testing.T) {
user := easclient.NewUserClaims("[email protected]")
ctx = user.SetOnContext(ctx)

status, err := DefaultClient.GetStoreStatus(ctx)
status, err := eastest.DefaultClient.GetStoreStatus(ctx)
require.NoError(t, err)
require.NotNil(t, status)
}
2 changes: 1 addition & 1 deletion r_put_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestStoreClient_PutStore(t *testing.T) {

storeName := "random-store"

err := DefaultServerClient.PutStore(ctx, storeName, &easclient.PutStoreRequest{
err := eastest.DefaultServerClient.PutStore(ctx, storeName, &easclient.PutStoreRequest{
ConfigurationTemplate: easclient.ConfigurationTemplate{
Name: "default",
Parameters: []easclient.ConfigurationParameter{
Expand Down

0 comments on commit 6032201

Please sign in to comment.