Skip to content

Commit b47586c

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

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

azure/converters/diagnostics_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ func TestGetDiagnosticsProfile(t *testing.T) {
8181
},
8282
want: nil,
8383
},
84+
{
85+
name: "nil diagnostics boot user managed",
86+
diagnostics: &infrav1.Diagnostics{
87+
Boot: &infrav1.BootDiagnostics{
88+
StorageAccountType: infrav1.UserManagedDiagnosticsStorage,
89+
UserManaged: nil,
90+
},
91+
},
92+
want: nil,
93+
},
8494
}
8595
for _, tt := range tests {
8696
tt := tt

0 commit comments

Comments
 (0)