Skip to content

Commit 8e25775

Browse files
committed
fixing round-trip test
1 parent 661947d commit 8e25775

1 file changed

Lines changed: 29 additions & 11 deletions

File tree

tests/integration/all-resource-types/expected-structure.json

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -553,34 +553,29 @@
553553
},
554554
{
555555
"name": "src-mcp-from-api",
556-
"files": ["apiInformation.json", "mcpServerInformation.json"],
556+
"files": ["apiInformation.json"],
557557
"spotChecks": {
558558
"apiInformation.json": {
559559
"properties.displayName": "KS MCP from Existing API",
560560
"properties.path": "ks/mcp-from-api",
561561
"properties.type": "mcp",
562-
"properties.subscriptionRequired": false
563-
},
564-
"mcpServerInformation.json": {
562+
"properties.subscriptionRequired": false,
565563
"properties.mcpTools": "exists"
566564
}
567565
},
568566
"notes": "MCP API exposing operations of an existing REST API as MCP tools via mcpTools (each tool's operationId references the backing REST API; this MCP API has no operations of its own)"
569567
},
570568
{
571569
"name": "src-mcp-existing-server",
572-
"files": ["apiInformation.json", "mcpServerInformation.json", "policy.xml"],
570+
"files": ["apiInformation.json", "policy.xml"],
573571
"spotChecks": {
574572
"apiInformation.json": {
575573
"properties.displayName": "KS MCP Existing Server Demo",
576574
"properties.path": "ks/mcp-existing",
577575
"properties.type": "mcp",
578576
"properties.subscriptionRequired": false,
579-
"properties.backendId": "src-backend-mcp-learn"
580-
},
581-
"mcpServerInformation.json": {
582-
"properties.mcpProperties.endpoints.mcp.uriTemplate": "/mcp",
583-
"properties.backendId": "src-backend-mcp-learn"
577+
"properties.backendId": "src-backend-mcp-learn",
578+
"properties.mcpProperties.endpoints.mcp.uriTemplate": "/mcp"
584579
}
585580
},
586581
"notes": "Working existing-server MCP demo. APIM exposes a public Microsoft Learn MCP server through a policy-based MCP proxy so the API is extractable and demoable end to end."
@@ -671,6 +666,21 @@
671666
}
672667
]
673668
},
669+
"groups": {
670+
"minCount": 1,
671+
"expected": [
672+
{
673+
"name": "src-ws-group-internal",
674+
"files": ["groupInformation.json"],
675+
"spotChecks": {
676+
"groupInformation.json": {
677+
"properties.displayName": "Kitchen Sink Workspace Group",
678+
"properties.type": "custom"
679+
}
680+
}
681+
}
682+
]
683+
},
674684
"backends": {
675685
"minCount": 1,
676686
"expected": [
@@ -691,12 +701,20 @@
691701
"expected": [
692702
{
693703
"name": "src-ws-product",
694-
"files": ["productInformation.json", "apis.json", "tags.json"],
704+
"files": ["productInformation.json", "apis.json", "tags.json", "groups.json"],
695705
"spotChecks": {
696706
"productInformation.json": {
697707
"properties.displayName": "Workspace Product",
698708
"properties.subscriptionRequired": false,
699709
"properties.state": "published"
710+
},
711+
"groups.json": {
712+
"minLength": 2,
713+
"contains": ["administrators", "src-ws-group-internal"],
714+
"containsEntry": [
715+
{ "name": "administrators", "scope": "service" },
716+
{ "name": "src-ws-group-internal", "scope": "workspace" }
717+
]
700718
}
701719
}
702720
}

0 commit comments

Comments
 (0)