Skip to content

Commit 71f08b9

Browse files
committed
Removed failing unit tests. It is now valid to have a missing Identity tyoe in the 2019-09-16 API version. The CORS tests were removed for both versions as the auto generated schema's do not contain the validators that were added when these schemas were manually generated and so they no longer apply.
1 parent 05d774b commit 71f08b9

File tree

2 files changed

+0
-167
lines changed

2 files changed

+0
-167
lines changed

tests/2018-08-20-preview/Microsoft.HealthcareApis.tests.json

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -359,66 +359,6 @@
359359
}
360360
},
361361

362-
{
363-
"name": "services - With invalid CORS origin URL",
364-
"expectedErrors": [
365-
{
366-
"message": "Data does not match any schemas from \"oneOf\"",
367-
"dataPath": "/properties"
368-
}
369-
],
370-
"definition": "https://schema.management.azure.com/schemas/2018-08-20-preview/Microsoft.HealthcareApis.json#/resourceDefinitions/services",
371-
"json": {
372-
"type": "Microsoft.HealthcareApis/services",
373-
"name": "service1",
374-
"location": "westus2",
375-
"apiVersion": "2018-08-20-preview",
376-
"kind": "fhir",
377-
"properties": {
378-
"accessPolicies": [
379-
{
380-
"objectId": "eefc55be-0653-472f-bad4-7c07820847a4"
381-
}
382-
],
383-
"corsConfiguration": {
384-
"origins": [
385-
"not a url"
386-
]
387-
}
388-
}
389-
}
390-
},
391-
392-
{
393-
"name": "services - With invalid CORS method",
394-
"expectedErrors": [
395-
{
396-
"message": "Data does not match any schemas from \"oneOf\"",
397-
"dataPath": "/properties"
398-
}
399-
],
400-
"definition": "https://schema.management.azure.com/schemas/2018-08-20-preview/Microsoft.HealthcareApis.json#/resourceDefinitions/services",
401-
"json": {
402-
"type": "Microsoft.HealthcareApis/services",
403-
"name": "service1",
404-
"location": "westus2",
405-
"apiVersion": "2018-08-20-preview",
406-
"kind": "fhir",
407-
"properties": {
408-
"accessPolicies": [
409-
{
410-
"objectId": "eefc55be-0653-472f-bad4-7c07820847a4"
411-
}
412-
],
413-
"corsConfiguration": {
414-
"methods": [
415-
"not a verb"
416-
]
417-
}
418-
}
419-
}
420-
},
421-
422362
{
423363
"name": "services - With too large CORS max age",
424364
"expectedErrors": [

tests/2019-09-16/Microsoft.HealthcareApis.tests.json

Lines changed: 0 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -438,72 +438,6 @@
438438
}
439439
},
440440

441-
{
442-
"name": "services - With invalid CORS origin URL",
443-
"expectedErrors": [
444-
{
445-
"message": "Data does not match any schemas from \"oneOf\"",
446-
"dataPath": "/properties"
447-
}
448-
],
449-
"definition": "https://schema.management.azure.com/schemas/2019-09-16/Microsoft.HealthcareApis.json#/resourceDefinitions/services",
450-
"json": {
451-
"type": "Microsoft.HealthcareApis/services",
452-
"name": "service1",
453-
"location": "westus2",
454-
"apiVersion": "2019-09-16",
455-
"kind": "fhir",
456-
"identity": {
457-
"type": "None"
458-
},
459-
"properties": {
460-
"accessPolicies": [
461-
{
462-
"objectId": "eefc55be-0653-472f-bad4-7c07820847a4"
463-
}
464-
],
465-
"corsConfiguration": {
466-
"origins": [
467-
"not a url"
468-
]
469-
}
470-
}
471-
}
472-
},
473-
474-
{
475-
"name": "services - With invalid CORS method",
476-
"expectedErrors": [
477-
{
478-
"message": "Data does not match any schemas from \"oneOf\"",
479-
"dataPath": "/properties"
480-
}
481-
],
482-
"definition": "https://schema.management.azure.com/schemas/2019-09-16/Microsoft.HealthcareApis.json#/resourceDefinitions/services",
483-
"json": {
484-
"type": "Microsoft.HealthcareApis/services",
485-
"name": "service1",
486-
"location": "westus2",
487-
"apiVersion": "2019-09-16",
488-
"kind": "fhir",
489-
"identity": {
490-
"type": "None"
491-
},
492-
"properties": {
493-
"accessPolicies": [
494-
{
495-
"objectId": "eefc55be-0653-472f-bad4-7c07820847a4"
496-
}
497-
],
498-
"corsConfiguration": {
499-
"methods": [
500-
"not a verb"
501-
]
502-
}
503-
}
504-
}
505-
},
506-
507441
{
508442
"name": "services - With too large CORS max age",
509443
"expectedErrors": [
@@ -608,47 +542,6 @@
608542
}
609543
}
610544
}
611-
},
612-
{
613-
"name": "services - Identity missing",
614-
"expectedErrors": [
615-
{
616-
"message": "Missing required property: identity",
617-
"dataPath": "/"
618-
}
619-
],
620-
"definition": "https://schema.management.azure.com/schemas/2019-09-16/Microsoft.HealthcareApis.json#/resourceDefinitions/services",
621-
"json": {
622-
"name": "service1",
623-
"type": "Microsoft.HealthcareApis/services",
624-
"apiVersion": "2019-09-16",
625-
"location": "westus2",
626-
"kind": "fhir",
627-
"properties": {
628-
"accessPolicies": [
629-
{
630-
"objectId": "eefc55be-0653-472f-bad4-7c07820847a4"
631-
}
632-
],
633-
"cosmosDbConfiguration": {
634-
"offerThroughput": 1000
635-
},
636-
"corsConfiguration": {
637-
"origins": [
638-
"https://www.example.com"
639-
],
640-
"maxAge": 2,
641-
"methods": [
642-
"DELETE",
643-
"GET",
644-
"OPTIONS",
645-
"PATCH",
646-
"POST",
647-
"PUT"
648-
]
649-
}
650-
}
651-
}
652545
}
653546
]
654547
}

0 commit comments

Comments
 (0)