github.com/pavlo67/common@v0.5.3/common/auth/auth_ecdsa/ecdsa_test.go (about) 1 package auth_ecdsa 2 3 import ( 4 "os" 5 "testing" 6 7 "github.com/stretchr/testify/require" 8 9 "github.com/pavlo67/common/common/auth" 10 ) 11 12 const serviceName = "" 13 14 func TestOperator(t *testing.T) { 15 env := "test" 16 err := os.Setenv("ENV", env) 17 require.NoError(t, err) 18 19 //l, err = logger_zap.Init(logger.Config{}) 20 //require.NoError(t, err) 21 //require.NotNil(t, l) 22 23 //configPath := "../../../environments/" + serviceName + "." + env + ".yaml" 24 //cfg, err := config.Get(configPath, serializer.MarshalerYAML) 25 //require.NoError(t, err) 26 //require.NotNil(t, cfg) 27 28 authOp, err := New() 29 require.NoError(t, err) 30 require.NotNil(t, authOp) 31 32 auth.OperatorTestScenarioPublicKey(t, authOp) 33 }