-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvalidate_issues.sh
More file actions
executable file
·60 lines (51 loc) · 1.51 KB
/
validate_issues.sh
File metadata and controls
executable file
·60 lines (51 loc) · 1.51 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Validation script for all 10 issues
echo "=========================================="
echo "AWS Network Shell Issues Validation"
echo "=========================================="
echo ""
echo "Setting up test environment..."
export PYTHONPATH="${PWD}/src:${PYTHONPATH}"
echo ""
echo "Issue #1: RIB Info KeyError"
echo "-----------------------------"
python3 -c "
from tests.test_cloudwan_issues import *
from moto import mock_aws
import pytest
# Try to reproduce issue #1
with mock_aws():
try:
test_core_network_rib_info()
print('✓ Issue #1: test_core_network_rib_info passed')
except Exception as e:
print(f'✗ Issue #1 still exists: {e}')
"
echo ""
echo "Issue #2: Core Network Detail KeyError"
echo "----------------------------------------"
python3 -c "
from tests.test_cloudwan_issues import *
from moto import mock_aws
with mock_aws():
try:
test_core_network_detail_info()
print('✓ Issue #2: test_core_network_detail_info passed')
except Exception as e:
print(f'✗ Issue #2 still exists: {e}')
"
echo ""
echo "Issue #3: CloudWAN No Data"
echo "----------------------------"
python3 -c "
from tests.test_cloudwan_issues import *
from moto import mock_aws
with mock_aws():
try:
test_core_network_no_policy_data()
print('✓ Issue #3: test_core_network_no_policy_data passed')
except Exception as e:
print(f'✗ Issue #3 still exists: {e}')
"
echo ""
echo "Summary: Issues that still need fixing are marked with ✗"