Skip to content

Commit d92a44e

Browse files
test: add missing UTs for OS image config cloud settings (#7557)
1 parent c8e4591 commit d92a44e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT license.
3+
4+
package datamodel
5+
6+
import (
7+
"testing"
8+
9+
"github.com/stretchr/testify/assert"
10+
)
11+
12+
func TestOSImageConfigForCloudSettings(t *testing.T) {
13+
clouds := []string{
14+
AzureBleuCloud,
15+
AzureChinaCloud,
16+
AzureGermanCloud,
17+
AzureGermanyCloud,
18+
AzurePublicCloud,
19+
AzureUSGovernmentCloud,
20+
USNatCloud,
21+
USSecCloud,
22+
}
23+
for _, cloud := range clouds {
24+
assert.Contains(t, AzureCloudToOSImageMap, cloud)
25+
assert.NotEmpty(t, AzureCloudToOSImageMap[cloud])
26+
}
27+
}

0 commit comments

Comments
 (0)