Skip to content

Commit

Permalink
unit test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackofallops committed Feb 4, 2021
1 parent 57697e4 commit 33a49a4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
28 changes: 17 additions & 11 deletions azurerm/internal/provider/features_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func TestExpandFeatures(t *testing.T) {
DeleteNestedItemsDuringDeletion: true,
},
VirtualMachine: features.VirtualMachineFeatures{
DeleteOSDiskOnDeletion: true,
DeleteDataDiskOnDeletion: true,
DeleteOSDiskOnDeletion: true,
},
VirtualMachineScaleSet: features.VirtualMachineScaleSetFeatures{
RollInstancesWhenRequired: true,
Expand Down Expand Up @@ -82,8 +83,9 @@ func TestExpandFeatures(t *testing.T) {
DeleteNestedItemsDuringDeletion: true,
},
VirtualMachine: features.VirtualMachineFeatures{
DeleteOSDiskOnDeletion: true,
GracefulShutdown: true,
DeleteDataDiskOnDeletion: true,
DeleteOSDiskOnDeletion: true,
GracefulShutdown: true,
},
VirtualMachineScaleSet: features.VirtualMachineScaleSetFeatures{
RollInstancesWhenRequired: true,
Expand Down Expand Up @@ -136,8 +138,9 @@ func TestExpandFeatures(t *testing.T) {
DeleteNestedItemsDuringDeletion: false,
},
VirtualMachine: features.VirtualMachineFeatures{
DeleteOSDiskOnDeletion: false,
GracefulShutdown: false,
DeleteDataDiskOnDeletion: false,
DeleteOSDiskOnDeletion: false,
GracefulShutdown: false,
},
VirtualMachineScaleSet: features.VirtualMachineScaleSetFeatures{
RollInstancesWhenRequired: false,
Expand Down Expand Up @@ -371,8 +374,9 @@ func TestExpandFeaturesVirtualMachine(t *testing.T) {
},
Expected: features.UserFeatures{
VirtualMachine: features.VirtualMachineFeatures{
DeleteOSDiskOnDeletion: true,
GracefulShutdown: false,
DeleteDataDiskOnDeletion: true,
DeleteOSDiskOnDeletion: true,
GracefulShutdown: false,
},
},
},
Expand All @@ -391,8 +395,9 @@ func TestExpandFeaturesVirtualMachine(t *testing.T) {
},
Expected: features.UserFeatures{
VirtualMachine: features.VirtualMachineFeatures{
DeleteOSDiskOnDeletion: true,
GracefulShutdown: true,
DeleteDataDiskOnDeletion: true,
DeleteOSDiskOnDeletion: true,
GracefulShutdown: true,
},
},
},
Expand All @@ -411,8 +416,9 @@ func TestExpandFeaturesVirtualMachine(t *testing.T) {
},
Expected: features.UserFeatures{
VirtualMachine: features.VirtualMachineFeatures{
DeleteOSDiskOnDeletion: false,
GracefulShutdown: false,
DeleteDataDiskOnDeletion: false,
DeleteOSDiskOnDeletion: false,
GracefulShutdown: false,
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion website/allowed-subcategories
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Data Share
Database
Database Migration
Databricks
DesktopVirtualization
Desktop Virtualization
Dev Test
DevSpace
Digital Twins
Expand Down

0 comments on commit 33a49a4

Please sign in to comment.