Skip to content

Commit

Permalink
Fix azure-go-call-azure-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
jkisk committed Feb 11, 2022
1 parent 64631b8 commit 633aab8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion azure-go-call-azure-sdk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {
}
_, err = authorization.NewRoleAssignment(ctx, "access-from-cluster", &authorization.RoleAssignmentArgs{
PrincipalId: pulumi.String(currentPrincipal),
PrincipalType: pulumi.String(authorization.PrincipalTypeUser), // adjust the type if you are running as a service principal
PrincipalType: pulumi.String(authorization.PrincipalTypeServicePrincipal), // adjust the type if you are running as a user
RoleDefinitionId: pulumi.String(*roleDef),
Scope: registry.ID(),
})
Expand Down
3 changes: 0 additions & 3 deletions misc/test/azure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func TestAccAzureGoAci(t *testing.T) {
test := getAzureBase(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "azure-go-aci"),
// TODO[pulumi/examples#1120]: Fix issue with extra runtime validation
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
assertAppServiceResult(t, stack.Outputs["containerIPv4Address"], func(body string) bool {
return assert.Contains(t, body, "Welcome to Azure Container Instances!")
Expand All @@ -90,8 +89,6 @@ func TestAccAzureGoWebserverComponent(t *testing.T) {
}

func TestAccAzureGoCallAzureSdk(t *testing.T) {
// TODO[pulumi/examples#1119]: Reenable failing test.
t.Skip("Skip due to failing test: https://github.com/pulumi/examples/issues/1119")
test := getAzureBase(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "azure-go-call-azure-sdk"),
Expand Down

0 comments on commit 633aab8

Please sign in to comment.