mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2026-09-30 03:31:27 +02:00
Fix Linting Errors (#1835)
* initial commit: add groups to azure Signed-off-by: andrewphamade@gmail.com <andrewphamade@gmail.com> * fix deprecations and linting errors Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> * remove groups testing from azure provider Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> * fix test error Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> * verify-generate Signed-off-by: Andrew Hamade <andrewphamade@gmail.com> Signed-off-by: andrewphamade@gmail.com <andrewphamade@gmail.com> Signed-off-by: Andrew Hamade <andrewphamade@gmail.com>
This commit is contained in:
+2
-3
@@ -3,7 +3,6 @@ package main
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -191,7 +190,7 @@ redirect_url="http://localhost:4180/oauth2/callback"
|
||||
|
||||
if in.configContent != "" {
|
||||
By("Writing the config to a temporary file", func() {
|
||||
file, err := ioutil.TempFile("", "oauth2-proxy-test-config-XXXX.cfg")
|
||||
file, err := os.CreateTemp("", "oauth2-proxy-test-config-XXXX.cfg")
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
defer file.Close()
|
||||
|
||||
@@ -204,7 +203,7 @@ redirect_url="http://localhost:4180/oauth2/callback"
|
||||
|
||||
if in.alphaConfigContent != "" {
|
||||
By("Writing the config to a temporary file", func() {
|
||||
file, err := ioutil.TempFile("", "oauth2-proxy-test-alpha-config-XXXX.yaml")
|
||||
file, err := os.CreateTemp("", "oauth2-proxy-test-alpha-config-XXXX.yaml")
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
defer file.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user