Skip to content

Commit e4e61ad

Browse files
Add diagnostics.boot.userManaged.nil test case
1 parent 142af53 commit e4e61ad

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

azure/converters/diagnostics_test.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package converters
1919
import (
2020
"testing"
2121

22-
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5"
2322
"github.com/google/go-cmp/cmp"
2423
"k8s.io/utils/ptr"
2524
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
@@ -81,6 +80,16 @@ func TestGetDiagnosticsProfile(t *testing.T) {
8180
},
8281
want: nil,
8382
},
83+
{
84+
name: "nil diagnostics boot user managed",
85+
diagnostics: &infrav1.Diagnostics{
86+
Boot: &infrav1.BootDiagnostics{
87+
StorageAccountType: infrav1.UserManagedDiagnosticsStorage,
88+
UserManaged: nil,
89+
},
90+
},
91+
want: nil,
92+
},
8493
}
8594
for _, tt := range tests {
8695
tt := tt

0 commit comments

Comments
 (0)