Skip to content

Commit 771078c

Browse files
committed
add missing file
1 parent ac2ff70 commit 771078c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crd/multitenancy/embed_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const mtpncFilename = "manifests/multitenancy.acn.azure.com_multitenantpodnetwor
1212
func TestEmbedMTPNC(t *testing.T) {
1313
b, err := os.ReadFile(mtpncFilename)
1414
assert.NoError(t, err)
15-
assert.Equal(t, b, MultitenantPodNetworkConfigsYAML)
15+
assert.YAMLEq(t, string(b), string(MultitenantPodNetworkConfigsYAML))
1616
}
1717

1818
func TestGetMultitenantPodNetworkConfigs(t *testing.T) {
@@ -25,7 +25,7 @@ const nodeinfoFilename = "manifests/multitenancy.acn.azure.com_nodeinfo.yaml"
2525
func TestEmbedNodeInfo(t *testing.T) {
2626
b, err := os.ReadFile(nodeinfoFilename)
2727
assert.NoError(t, err)
28-
assert.Equal(t, b, NodeInfoYAML)
28+
assert.YAMLEq(t, string(b), string(NodeInfoYAML))
2929
}
3030

3131
func TestGetNodeInfo(t *testing.T) {
@@ -38,7 +38,7 @@ const podNetworkFilename = "manifests/multitenancy.acn.azure.com_podnetworks.yam
3838
func TestEmbedPodNetwork(t *testing.T) {
3939
b, err := os.ReadFile(podNetworkFilename)
4040
assert.NoError(t, err)
41-
assert.Equal(t, b, PodNetworkYAML)
41+
assert.YAMLEq(t, string(b), string(PodNetworkYAML))
4242
}
4343

4444
func TestGetPodNetworks(t *testing.T) {
@@ -51,7 +51,7 @@ const podNetworkInstanceFilename = "manifests/multitenancy.acn.azure.com_podnetw
5151
func TestEmbedPodNetworkInstance(t *testing.T) {
5252
b, err := os.ReadFile(podNetworkInstanceFilename)
5353
assert.NoError(t, err)
54-
assert.Equal(t, b, PodNetworkInstanceYAML)
54+
assert.YAMLEq(t, string(b), string(PodNetworkInstanceYAML))
5555
}
5656

5757
func TestGetPodNetworkInstances(t *testing.T) {

0 commit comments

Comments
 (0)