Skip to content

Commit

Permalink
fix: update tests after ikg modifications
Browse files Browse the repository at this point in the history
Closing ENG-2397
  • Loading branch information
cowan-macady committed Nov 30, 2023
1 parent 53af4f8 commit c59e1e6
Show file tree
Hide file tree
Showing 13 changed files with 12,714 additions and 3,467 deletions.
8 changes: 4 additions & 4 deletions authorization/authorization_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ var _ = Describe("Authorized", func() {
resource1: PointTo(MatchFields(IgnoreExtras, Fields{
"Actions": MatchAllKeys(Keys{
action1: PointTo(MatchFields(IgnoreExtras, Fields{
"Allow": Equal(false),
"Allow": Equal(true),
})),
}),
})),
Expand Down Expand Up @@ -765,6 +765,9 @@ var _ = Describe("Authorized", func() {
"2": PointTo(MatchFields(IgnoreExtras, Fields{
"ExternalId": Equal(integration.Asset3),
})),
"3": PointTo(MatchFields(IgnoreExtras, Fields{
"ExternalId": Equal(integration.Asset4),
})),
}),
})),
}),
Expand Down Expand Up @@ -954,9 +957,6 @@ var _ = Describe("Authorized", func() {
"1": PointTo(MatchFields(IgnoreExtras, Fields{
"ExternalId": Equal(integration.Asset2),
})),
"2": PointTo(MatchFields(IgnoreExtras, Fields{
"ExternalId": Equal(integration.Asset3),
})),
}),
})),
}),
Expand Down
20 changes: 0 additions & 20 deletions config/config_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,26 +279,6 @@ func (x *NodeRequest) WithWebauthnProviderConfig(v *configpb.WebAuthnProviderCon
return x
}

func (x *NodeRequest) WithReadidProviderConfig(v *configpb.ReadIDProviderConfig) *NodeRequest {
switch {
case x.create != nil:
x.create.Config = nil
if v != nil {
x.create.Config = &configpb.CreateConfigNodeRequest_ReadidProviderConfig{
ReadidProviderConfig: v,
}
}
case x.update != nil:
x.update.Config = nil
if v != nil {
x.update.Config = &configpb.UpdateConfigNodeRequest_ReadidProviderConfig{
ReadidProviderConfig: v,
}
}
}
return x
}

func (x *NodeRequest) WithAuditSinkConfig(v *configpb.AuditSinkConfig) *NodeRequest {
switch {
case x.create != nil:
Expand Down
Loading

0 comments on commit c59e1e6

Please sign in to comment.