Fix conflicts caused from rebasing main into multiple IDPs branch
This commit is contained in:
parent
e2bdab9e2d
commit
b6f0dc3ba7
@ -2491,7 +2491,7 @@ func TestAttributeUnchangedSinceLogin(t *testing.T) {
|
|||||||
tt := test
|
tt := test
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
initialValRawEncoded := base64.RawURLEncoding.EncodeToString([]byte(initialVal))
|
initialValRawEncoded := base64.RawURLEncoding.EncodeToString([]byte(initialVal))
|
||||||
err := attributeUnchangedSinceLogin(attributeName)(tt.entry, provider.RefreshAttributes{AdditionalAttributes: map[string]string{attributeName: initialValRawEncoded}})
|
err := attributeUnchangedSinceLogin(attributeName)(tt.entry, upstreamprovider.RefreshAttributes{AdditionalAttributes: map[string]string{attributeName: initialValRawEncoded}})
|
||||||
if tt.wantErr != "" {
|
if tt.wantErr != "" {
|
||||||
require.Error(t, err)
|
require.Error(t, err)
|
||||||
require.Equal(t, tt.wantErr, err.Error())
|
require.Equal(t, tt.wantErr, err.Error())
|
||||||
|
@ -2203,8 +2203,8 @@ func TestUpstreamRefresh(t *testing.T) {
|
|||||||
{
|
{
|
||||||
name: "search result has a changed pwdLastSet value",
|
name: "search result has a changed pwdLastSet value",
|
||||||
providerConfig: providerConfig(func(p *ProviderConfig) {
|
providerConfig: providerConfig(func(p *ProviderConfig) {
|
||||||
p.RefreshAttributeChecks = map[string]func(*ldap.Entry, provider.RefreshAttributes) error{
|
p.RefreshAttributeChecks = map[string]func(*ldap.Entry, upstreamprovider.RefreshAttributes) error{
|
||||||
pwdLastSetAttribute: func(*ldap.Entry, provider.RefreshAttributes) error {
|
pwdLastSetAttribute: func(*ldap.Entry, upstreamprovider.RefreshAttributes) error {
|
||||||
return errors.New(`value for attribute "pwdLastSet" has changed since initial value at login`)
|
return errors.New(`value for attribute "pwdLastSet" has changed since initial value at login`)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1210,7 +1210,7 @@ func TestE2EFullIntegration_Browser(t *testing.T) {
|
|||||||
testCtx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
|
testCtx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
|
||||||
t.Cleanup(cancel)
|
t.Cleanup(cancel)
|
||||||
|
|
||||||
tempDir := testutil.TempDir(t) // per-test tmp dir to avoid sharing files between tests
|
tempDir := t.TempDir() // per-test tmp dir to avoid sharing files between tests
|
||||||
|
|
||||||
// Start a fresh browser driver because we don't want to share cookies between the various tests in this file.
|
// Start a fresh browser driver because we don't want to share cookies between the various tests in this file.
|
||||||
browser := browsertest.OpenBrowser(t)
|
browser := browsertest.OpenBrowser(t)
|
||||||
|
Loading…
Reference in New Issue
Block a user