customer/tests/integration/rpc_clients_test.go
Pasha 34a88a3a70
Some checks failed
Lint / Lint (push) Failing after 1m2s
rename go.mod
2024-11-18 21:44:09 +00:00

27 lines
662 B
Go

package integration
import (
"context"
"fmt"
"github.com/stretchr/testify/assert"
"go.uber.org/zap"
"gitea.pena/PenaSide/customer/pkg/customer_clients"
"testing"
)
func Test_SetVerifyAccount(t *testing.T) {
logger, err := zap.NewProduction()
assert.NoError(t, err)
ctx := context.Background()
customerClients := customer_clients.NewCustomersClient(customer_clients.CustomersClientDeps{
Logger: logger,
CustomerServiceHost: "localhost:9000",
})
account, err := customerClients.SetVerifyAccount(ctx, "64e53ed187392e122e5d3d50", "nko")
assert.NoError(t, err)
fmt.Println(account.Status)
assert.Equal(t, 0, int(account.Status))
}