github.com/pavlo67/common@v0.5.3/common/auth/auth_stub/stub_test.go (about)

     1  package auth_stub
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  
     7  	"github.com/pavlo67/common/common/logger/logger_test"
     8  
     9  	"github.com/pavlo67/common/common/auth"
    10  	"github.com/stretchr/testify/require"
    11  )
    12  
    13  func TestAuthStub(t *testing.T) {
    14  
    15  	os.Setenv("ENV", "test")
    16  
    17  	l = logger_test.New(t, "", "", false, nil)
    18  
    19  	authOp, err := New(nil)
    20  	require.NoError(t, err)
    21  	require.NotNil(t, authOp)
    22  
    23  	auth.OperatorTestScenarioPassword(t, authOp)
    24  }