-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathquick_test.sh
More file actions
executable file
·53 lines (45 loc) · 1.03 KB
/
quick_test.sh
File metadata and controls
executable file
·53 lines (45 loc) · 1.03 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
#!/bin/bash
# Quick test showing outputs without spawn messages
set -e
cd /Users/taylaand/code/personal/aws_net_shell
PROFILE="taylaand+net-dev-Admin"
echo "AWS Network Shell - Quick Command Test"
echo "Profile: $PROFILE"
echo "========================================"
# Test 1: show version
echo -e "\n1. Testing: show version"
expect << EOF
set timeout 30
set env(NO_SPINNER) 1
spawn uv run aws-net-shell -p $PROFILE
expect "aws-net>"
send "show version\r"
expect "aws-net>"
send "exit\r"
expect eof
EOF
echo -e "\n2. Testing: show vpcs"
expect << EOF
set timeout 30
set env(NO_SPINNER) 1
spawn uv run aws-net-shell -p $PROFILE
expect "aws-net>"
send "show vpcs\r"
expect "aws-net>"
send "exit\r"
expect eof
EOF
echo -e "\n3. Testing: show global-networks"
expect << EOF
set timeout 30
set env(NO_SPINNER) 1
spawn uv run aws-net-shell -p $PROFILE
expect "aws-net>"
send "show global-networks\r"
expect "aws-net>"
send "exit\r"
expect eof
EOF
echo "\n✅ All tests completed"
EOF
chmod +x /Users/taylaand/code/personal/aws_net_shell/quick_test.sh