-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtest_compatibility.sh
More file actions
36 lines (28 loc) · 1.02 KB
/
test_compatibility.sh
File metadata and controls
36 lines (28 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# SDK 버전별 호환성 테스트 스크립트
echo "=== OpenStack SDK 호환성 테스트 ==="
# 각 릴리즈별 이미지로 기본 기능 테스트
RELEASES=("yoga" "zed" "antelope" "bobcat" "caracal" "dalmatian" "epoxy" "flamingo")
for release in "${RELEASES[@]}"; do
echo
echo "--- Testing $release release ---"
# 해당 릴리즈 이미지로 간단한 연결 테스트
docker run --rm \
--env-file .env \
"call518/mcp-server-openstack-ops:${release}" \
python -c "
import sys
sys.path.insert(0, '/app/src')
try:
from mcp_openstack_ops.functions import get_openstack_connection
conn = get_openstack_connection()
print(f'✅ {release}: Connection successful')
# 기본 API 테스트
list(conn.compute.servers(limit=1))
print(f'✅ {release}: Compute API working')
except Exception as e:
print(f'❌ {release}: Error - {e}')
" || echo "❌ $release: Failed to start container"
done
echo
echo "=== 호환성 테스트 완료 ==="