@@ -12,7 +12,7 @@ const mtpncFilename = "manifests/multitenancy.acn.azure.com_multitenantpodnetwor
1212func 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
1818func TestGetMultitenantPodNetworkConfigs (t * testing.T ) {
@@ -25,7 +25,7 @@ const nodeinfoFilename = "manifests/multitenancy.acn.azure.com_nodeinfo.yaml"
2525func 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
3131func TestGetNodeInfo (t * testing.T ) {
@@ -38,7 +38,7 @@ const podNetworkFilename = "manifests/multitenancy.acn.azure.com_podnetworks.yam
3838func 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
4444func TestGetPodNetworks (t * testing.T ) {
@@ -51,7 +51,7 @@ const podNetworkInstanceFilename = "manifests/multitenancy.acn.azure.com_podnetw
5151func 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
5757func TestGetPodNetworkInstances (t * testing.T ) {
0 commit comments