Skip to content

Commit

Permalink
chore(go): fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jjacque committed Dec 22, 2023
1 parent df56ef0 commit a8422f0
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion pkg/oktaApiAuth/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ type setupTest struct {
err error
}


func startTLS(t *testing.T) {
t.Helper()

Expand Down
1 change: 0 additions & 1 deletion pkg/oktaApiAuth/oktaApiAuth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ type authTest struct {
err error
}


func TestAuth(t *testing.T) {
defer gock.Off()
//gock.Observe(gock.DumpRequest)
Expand Down
1 change: 0 additions & 1 deletion pkg/oktaApiAuth/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ echo -n | openssl s_client -connect example.oktapreview.com:443 2>/dev/null |\
// used in api_test.go, oktaApiAuth_test.go, utils_test.go
var pin []string = []string{"SE4qe2vdD9tAegPwO79rMnZyhHvqj3i5g1c2HkyGUNE="}


// used in api_test.go, oktaApiAuth_test.go, utils_test.go
type authRequest struct {
path string
Expand Down
1 change: 0 additions & 1 deletion pkg/oktaApiAuth/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type allowedGroupsTest struct {
err error
}


func TestCheckAllowedGroups(t *testing.T) {
defer gock.Off()
// Uncomment the following line to see HTTP requests intercepted by gock
Expand Down
1 change: 0 additions & 1 deletion pkg/validator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ var (
}
)


// Read the ini file containing the API config
func (validator *OktaOpenVPNValidator) readConfigFile() error {
var cfgPaths []string
Expand Down
1 change: 0 additions & 1 deletion pkg/validator/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type testCfgFile struct {
err error
}


func TestParsePassword(t *testing.T) {
t.Run("Parse password with passcode", func(t *testing.T) {
setEnv(setupEnv)
Expand Down
2 changes: 0 additions & 2 deletions pkg/validator/loading_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

const pin string = "SE4qe2vdD9tAegPwO79rMnZyhHvqj3i5g1c2HkyGUNE="


type testViaFile struct {
testName string
path string
Expand All @@ -31,7 +30,6 @@ type testEnvVar struct {
err error
}


func TestLoadViaFile(t *testing.T) {
tests := []testViaFile{
{
Expand Down
1 change: 0 additions & 1 deletion pkg/validator/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type testControlFile struct {
err error
}


func TestCheckUsernameFormat(t *testing.T) {
tests := []usernameTest{
{
Expand Down
1 change: 0 additions & 1 deletion pkg/validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"gopkg.in/algolia/openvpn-auth-okta.v2/pkg/oktaApiAuth"
)


type OktaApiAuth = oktaApiAuth.OktaApiAuth

type OktaOpenVPNValidator struct {
Expand Down
1 change: 0 additions & 1 deletion pkg/validator/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ var setupEnv = map[string]string{
"auth_control_file": controlFile,
}


type testWriteFile struct {
testName string
userValid bool
Expand Down

0 comments on commit a8422f0

Please sign in to comment.