-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: add new OIDC credentials creation and assigment (Azure data sou… #773
Conversation
@@ -29,8 +29,6 @@ func TestAwsOidcCredentialDataSource(t *testing.T) { | |||
Type: string(client.AwsAssumedRoleCredentialsType), | |||
} | |||
|
|||
oidcSub := "oidc sub 123345 !!!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to organization data.
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" | ||
) | ||
|
||
func TestAzureOidcCredentialDataSource(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests duplication to be refactored on the next commit.
@@ -49,5 +54,10 @@ func dataOrganizationRead(ctx context.Context, d *schema.ResourceData, meta inte | |||
return diag.Errorf("schema resource data serialization failed: %v", err) | |||
} | |||
|
|||
oidcSub, err := apiClient.OidcSub() | |||
if err == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may fail if oidc is disabled. Set the value if successful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good left one question
…rce)
Part of #743
Solution