Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 89adc36

Browse files
authored
fix: rename auth srv default client ID (#128)
* fix: rename auth srv default client ID * fix test error
1 parent 58a6d13 commit 89adc36

File tree

3 files changed

+2
-27
lines changed

3 files changed

+2
-27
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
args: --timeout=10m
3131
skip-go-installation: true
3232
- name: test
33-
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic
33+
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic -timeout 15m
3434
- name: Send coverage report
3535
uses: codecov/codecov-action@v2
3636
with:

pkg/auth/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/caos/oidc/pkg/op"
99
)
1010

11-
const ClientID = "01FH69GFQ4DFCXS5XD91JK4HZ1"
11+
const ClientID = "reearth-authsrv-client-default"
1212

1313
type Client struct {
1414
id string

pkg/user/builder_test.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -89,31 +89,6 @@ func TestBuilder_LangFrom(t *testing.T) {
8989
}
9090
}
9191

92-
func TestBuilder_PasswordReset(t *testing.T) {
93-
testCases := []struct {
94-
Name, Token string
95-
CreatedAt time.Time
96-
Expected PasswordReset
97-
}{
98-
{
99-
Name: "Test1",
100-
Token: "xyz",
101-
CreatedAt: time.Unix(0, 0),
102-
Expected: PasswordReset{
103-
Token: "xyz",
104-
CreatedAt: time.Unix(0, 0),
105-
},
106-
},
107-
}
108-
for _, tc := range testCases {
109-
t.Run(tc.Name, func(tt *testing.T) {
110-
tt.Parallel()
111-
// u := New().NewID().PasswordReset(tc.Token, tc.CreatedAt).MustBuild()
112-
// assert.Equal(t, tc.Expected, *u.passwordReset)
113-
})
114-
}
115-
}
116-
11792
func TestNew(t *testing.T) {
11893
b := New()
11994
assert.NotNil(t, b)

0 commit comments

Comments
 (0)