Skip to content

Commit 7fe6384

Browse files
authoredOct 21, 2022
Fix Linting Errors (oauth2-proxy#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>
1 parent a6c8f6f commit 7fe6384

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+134
-146
lines changed
 

‎docs/docs/configuration/alpha_config.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ the caller provides it, and no value will be sent otherwise.
306306

307307
Examples:
308308

309-
A parameter whose value is fixed
309+
# A parameter whose value is fixed
310310

311311
```
312312
name: organization
@@ -354,8 +354,9 @@ as backslash is not considered to be an escape character. Alternatively
354354
use the "chomped block" format `|-`:
355355
356356
```
357-
- pattern: |-
357+
- pattern: |-
358358
^[^@]*@example\.com$
359+
359360
```
360361
361362
The hyphen is important, a `|` block would have a trailing newline

‎main_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package main
33
import (
44
"errors"
55
"fmt"
6-
"io/ioutil"
76
"os"
87
"strings"
98
"time"
@@ -191,7 +190,7 @@ redirect_url="http://localhost:4180/oauth2/callback"
191190

192191
if in.configContent != "" {
193192
By("Writing the config to a temporary file", func() {
194-
file, err := ioutil.TempFile("", "oauth2-proxy-test-config-XXXX.cfg")
193+
file, err := os.CreateTemp("", "oauth2-proxy-test-config-XXXX.cfg")
195194
Expect(err).ToNot(HaveOccurred())
196195
defer file.Close()
197196

@@ -204,7 +203,7 @@ redirect_url="http://localhost:4180/oauth2/callback"
204203

205204
if in.alphaConfigContent != "" {
206205
By("Writing the config to a temporary file", func() {
207-
file, err := ioutil.TempFile("", "oauth2-proxy-test-alpha-config-XXXX.yaml")
206+
file, err := os.CreateTemp("", "oauth2-proxy-test-alpha-config-XXXX.yaml")
208207
Expect(err).ToNot(HaveOccurred())
209208
defer file.Close()
210209

0 commit comments

Comments
 (0)
Please sign in to comment.