Skip to content

Commit 80f0ce1

Browse files
committed
Remove requirements.txt file, update GH workflow file
1 parent 9d08394 commit 80f0ce1

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
id: install-collection
9292
uses: ansible-network/github_actions/.github/actions/build_install_collection@main
9393
with:
94-
install_python_dependencies: true
94+
install_python_dependencies: false
9595
source_path: .
9696

9797
- name: Set up git
@@ -106,6 +106,7 @@ jobs:
106106
collection_path: ${{ steps.install-collection.outputs.collection_path }}
107107
python_version: ${{ env.python_version }}
108108
ansible_version: ${{ env.ansible_version }}
109+
ansible_test_requirement_files: 'test-requirements.txt'
109110
env:
110111
ANSIBLE_TEST_GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
111112
all_green:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"github-server": {
3+
"type": "stdio",
4+
"command": "npx",
5+
"args": ["-y", "@modelcontextprotocol/server-github"],
6+
"description": "GitHub MCP Server - Access GitHub repositories, issues, and pull requests"
7+
},
8+
"aws-iam-mcp-server": {
9+
"type": "stdio",
10+
"command": "uvx",
11+
"args": ["awslabs.iam-mcp-server"],
12+
"description": "AWS IAM MCP Server - Manage AWS IAM resources through MCP protocol"
13+
}
14+
}
15+

tests/integration/targets/server_info/runme.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
88
GITHUB_PAT_VALUE="${ANSIBLE_TEST_GITHUB_PAT:-${GITHUB_PAT:-${GITHUB_TOKEN:-${GITHUB_PERSONAL_ACCESS_TOKEN:-}}}}"
99

1010
INVENTORY="${SCRIPT_DIR}/inventory.yml"
11+
MANIFEST_PATH="${SCRIPT_DIR}/mcpservers.json"
1112

1213
if [ -n "${GITHUB_PAT_VALUE:-}" ]; then
13-
ansible-playbook -i "${INVENTORY}" tasks/main.yml -e "github_pat=${GITHUB_PAT_VALUE}" "$@"
14+
ansible-playbook -i "${INVENTORY}" tasks/main.yml -e "ansible_mcp_manifest_path=${MANIFEST_PATH}" -e "github_pat=${GITHUB_PAT_VALUE}" "$@"
1415
else
15-
ansible-playbook -i "${INVENTORY}" tasks/main.yml "$@"
16+
ansible-playbook -i "${INVENTORY}" tasks/main.yml -e "ansible_mcp_manifest_path=${MANIFEST_PATH}" "$@"
1617
fi

tests/integration/targets/server_info/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
- name: Test server_info with GitHub MCP server
33
hosts: github_server
44
gather_facts: false
5+
vars:
6+
ansible_mcp_manifest_path: "{{ ansible_mcp_manifest_path | default(playbook_dir | dirname + '/mcpservers.json') }}"
57
tasks:
68
- name: Retrieve server info from GitHub MCP server
79
ansible.mcp.server_info:
@@ -22,6 +24,8 @@
2224
- name: Test server_info with AWS IAM MCP server
2325
hosts: aws_iam_server
2426
gather_facts: false
27+
vars:
28+
ansible_mcp_manifest_path: "{{ ansible_mcp_manifest_path | default(playbook_dir | dirname + '/mcpservers.json') }}"
2529
tasks:
2630
- name: Retrieve server info from AWS IAM MCP server
2731
ansible.mcp.server_info:

0 commit comments

Comments
 (0)