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

Commit

Permalink
fix: rename auth srv default client ID (#128)
Browse files Browse the repository at this point in the history
* fix: rename auth srv default client ID

* fix test error
  • Loading branch information
rot1024 authored Mar 24, 2022
1 parent 58a6d13 commit 89adc36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
args: --timeout=10m
skip-go-installation: true
- name: test
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic
run: go test ./... -v -race -coverprofile=coverage.txt -covermode=atomic -timeout 15m
- name: Send coverage report
uses: codecov/codecov-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion pkg/auth/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/caos/oidc/pkg/op"
)

const ClientID = "01FH69GFQ4DFCXS5XD91JK4HZ1"
const ClientID = "reearth-authsrv-client-default"

type Client struct {
id string
Expand Down
25 changes: 0 additions & 25 deletions pkg/user/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,31 +89,6 @@ func TestBuilder_LangFrom(t *testing.T) {
}
}

func TestBuilder_PasswordReset(t *testing.T) {
testCases := []struct {
Name, Token string
CreatedAt time.Time
Expected PasswordReset
}{
{
Name: "Test1",
Token: "xyz",
CreatedAt: time.Unix(0, 0),
Expected: PasswordReset{
Token: "xyz",
CreatedAt: time.Unix(0, 0),
},
},
}
for _, tc := range testCases {
t.Run(tc.Name, func(tt *testing.T) {
tt.Parallel()
// u := New().NewID().PasswordReset(tc.Token, tc.CreatedAt).MustBuild()
// assert.Equal(t, tc.Expected, *u.passwordReset)
})
}
}

func TestNew(t *testing.T) {
b := New()
assert.NotNil(t, b)
Expand Down

0 comments on commit 89adc36

Please sign in to comment.