You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comprehensive integration tests that validate MCP Atlassian functionality using real API calls. These tests validate the complete user workflow from a business perspective.
43
-
44
-
**Test Coverage**: 19 comprehensive integration tests covering all major functionality
45
-
**Environments**: Both Cloud and Server/Data Center deployments
46
-
**Execution**: Requires `--integration` flag and proper environment configuration
47
-
48
-
#### Running Integration Tests
49
-
50
-
```bash
51
-
# Run all integration tests (Server/DC)
52
-
uv run --env-file .env.test pytest tests/integration/test_mcp_application.py --integration -v
53
-
54
-
# Run all integration tests (Cloud)
55
-
uv run --env-file .env.realcloud pytest tests/integration/test_mcp_application.py --integration -v
56
-
57
-
# Run specific test
58
-
uv run --env-file .env.test pytest tests/integration/test_mcp_application.py::TestMCPApplication::test_search_functionality --integration -v
59
-
```
60
-
61
-
### Real API Client Tests (`test_real_api.py`)
62
-
63
-
Direct API client integration tests that validate core API functionality with real Atlassian instances. These tests focus on API client behavior, lifecycle operations, and data handling.
64
-
65
-
**Test Coverage**: Direct API client testing (create, read, update, delete operations)
66
-
**Environments**: Both Cloud and Server/Data Center deployments
67
-
**Execution**: Requires `--integration` flag and proper environment configuration
68
-
69
-
#### Running Real API Client Tests
70
-
71
-
```bash
72
-
# Run all real API client tests (Server/DC)
73
-
uv run --env-file .env.test pytest tests/integration/test_real_api.py --integration -v
74
-
75
-
# Run all real API client tests (Cloud)
76
-
uv run --env-file .env.realcloud pytest tests/integration/test_real_api.py --integration -v
77
-
78
-
# Run specific test
79
-
uv run --env-file .env.test pytest tests/integration/test_real_api.py::TestRealJiraAPI::test_complete_issue_lifecycle --integration -v
FastMCP tool validation tests that verify MCP tool functionality with real API data. These tests focus on the MCP tool layer and validate that tools return proper data structures.
**Note**: Some tests fail on Server/DC due to Epic functionality differences, but pass on Cloud. The errors are due to fixture scope mismatches and can be ignored.
Comprehensive integration tests that validate MCP Atlassian functionality using real API calls. These tests validate the complete user workflow from a business perspective.
10
+
11
+
**Test Coverage**: 19 comprehensive integration tests covering all major functionality
12
+
**Environments**: Both Cloud and Server/Data Center deployments
13
+
**Execution**: Requires `--integration` flag and proper environment configuration
14
+
15
+
#### Key Test Scenarios
16
+
17
+
-**Core Search & Retrieval**: Validates JQL search and issue retrieval
18
+
-**Comment Functionality**: Tests comment addition and verification with exact content matching
19
+
-**Epic Management**: Validates agile Epic functionality and linking
20
+
-**Content Processing**: Tests ADF parsing for Cloud environments
21
+
-**Environment Consistency**: Ensures consistent behavior across Cloud and Server/DC
22
+
-**Project Management**: Validates project discovery and access
23
+
-**Field Operations**: Tests custom field discovery and usage
24
+
-**Agile Operations**: Validates board and sprint functionality
25
+
-**Batch Operations**: Tests bulk issue creation and changelog retrieval
26
+
-**Error Handling**: Validates robust error handling across environments
27
+
28
+
#### Running MCP Application Tests
29
+
30
+
```bash
31
+
# Run all MCP application tests (Server/DC)
32
+
uv run --env-file .env.test pytest tests/integration/test_mcp_application.py --integration -v
33
+
34
+
# Run all MCP application tests (Cloud)
35
+
uv run --env-file .env.realcloud pytest tests/integration/test_mcp_application.py --integration -v
36
+
37
+
# Run specific test
38
+
uv run --env-file .env.test pytest tests/integration/test_mcp_application.py::TestMCPApplication::test_search_functionality --integration -v
39
+
```
40
+
41
+
### 2. Real API Client Tests (`test_real_api.py`)
42
+
43
+
Direct API client integration tests that validate core API functionality with real Atlassian instances. These tests focus on API client behavior, lifecycle operations, and data handling.
44
+
45
+
**Test Coverage**: Direct API client testing (create, read, update, delete operations)
46
+
**Environments**: Both Cloud and Server/Data Center deployments
47
+
**Execution**: Requires `--integration` flag and proper environment configuration
FastMCP tool validation tests that verify MCP tool functionality with real API data. These tests focus on the MCP tool layer and validate that tools return proper data structures.
**Note**: Some tests fail on Server/DC due to Epic functionality differences, but pass on Cloud. The errors are due to fixture scope mismatches and can be ignored.
0 commit comments