Skip to content

Commit 943a30d

Browse files
fix: retrieve_agent_sop test (#197)
1 parent f150139 commit 943a30d

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

tests/integ/test_aws_mcp_server_happy_path.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -123,28 +123,7 @@ async def test_aws_mcp_tools(aws_mcp_client: fastmcp.Client, tool_name: str, par
123123
@pytest.mark.asyncio(loop_scope='module')
124124
async def test_aws_mcp_tools_retrieve_agent_sop(aws_mcp_client: fastmcp.Client):
125125
"""Test aws___retrieve_agent_sop by retrieving the list of available SOPs."""
126-
# Step 1: Call retrieve_agent_sop with empty params to get list of available SOPs
127-
list_sops_response = await aws_mcp_client.call_tool('aws___retrieve_agent_sop')
128-
129-
list_sops_response_text = verify_response_content(list_sops_response)
130-
131-
# Parse SOP names from text (format: "* sop_name : description")
132-
sop_names = []
133-
for line in list_sops_response_text.split('\n'):
134-
line = line.strip()
135-
if line.startswith('*') and ':' in line:
136-
# Extract the SOP name between '*' and ':'
137-
sop_name = line.split('*', 1)[1].split(':', 1)[0].strip()
138-
if sop_name:
139-
sop_names.append(sop_name)
140-
141-
assert len(sop_names) > 0, (
142-
f'No SOPs found in response. Response: {list_sops_response_text[:200]}...'
143-
)
144-
logger.info('Found %d SOPs: %s', len(sop_names), sop_names)
145-
146-
# Step 2: Test retrieving the first SOP
147-
test_script = sop_names[0]
126+
test_script = 'create_production_vpc_multi_az'
148127
logger.info('Testing with SOP: %s', test_script)
149128

150129
response = await aws_mcp_client.call_tool(

0 commit comments

Comments
 (0)