Skip to content

Commit 90bc044

Browse files
committed
test(readability): used embedded FS for fixtures
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent b75931b commit 90bc044

File tree

9 files changed

+552
-489
lines changed

9 files changed

+552
-489
lines changed

circular_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,12 @@ func TestCircular_RemoteExpandAzure(t *testing.T) {
266266
require.NotNil(t, pth1)
267267

268268
// check expected remaining $ref
269-
assertRefInJSONRegexp(t, jazon, `^(#/definitions/)|(networkInterface.json#/definitions/)|(networkSecurityGroup.json#/definitions/)|(network.json#/definitions)|(virtualNetworkTap.json#/definitions/)|(virtualNetwork.json#/definitions/)|(privateEndpoint.json#/definitions/)|(\./examples/)`)
269+
assertRefInJSONRegexp(t, jazon,
270+
`^(#/definitions/)|(networkInterface.json#/definitions/)|`+
271+
`(networkSecurityGroup.json#/definitions/)|(network.json#/definitions)|`+
272+
`(virtualNetworkTap.json#/definitions/)|(virtualNetwork.json#/definitions/)|`+
273+
`(privateEndpoint.json#/definitions/)|(\./examples/)`,
274+
)
270275

271276
// check all $ref resolve in the expanded root
272277
// (filter out the remaining $ref in x-ms-example extensions, which are not expanded)

0 commit comments

Comments
 (0)