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
echo"Failed to update session with session-idle-timeout-in-seconds"
44
+
exit 1
45
+
fi
46
+
echo"Update session result: $updateResult2"
47
+
48
+
# Test list sessions
49
+
echo"Testing list sessions..."
50
+
listResult=$(s cli fc3 session list -a quanxi --region cn-hangzhou --function-name fc3-session-${fc_component_function_name:-test} -o json)
51
+
if [ -z"$listResult" ];then
52
+
echo"Failed to list sessions"
53
+
exit 1
54
+
fi
55
+
echo"List sessions result: $listResult"
56
+
57
+
# Test list sessions with filters
58
+
echo"Testing list sessions with filters..."
59
+
listFilteredResult=$(s cli fc3 session list -a quanxi --region cn-hangzhou --function-name fc3-session-${fc_component_function_name:-test} --session-id $sessionId --qualifier LATEST -o json)
60
+
if [ -z"$listFilteredResult" ];then
61
+
echo"Failed to list sessions with filters"
62
+
exit 1
63
+
fi
64
+
echo"List sessions with filters result: $listFilteredResult"
65
+
66
+
# Test list sessions with session-status filter
67
+
echo"Testing list sessions with session-status filter..."
68
+
listStatusResult=$(s cli fc3 session list -a quanxi --region cn-hangzhou --function-name fc3-session-${fc_component_function_name:-test} --session-status Active -o json)
69
+
if [ -z"$listStatusResult" ];then
70
+
echo"Failed to list sessions with session-status filter"
71
+
exit 1
72
+
fi
73
+
echo"List sessions with session-status filter result: $listStatusResult"
74
+
75
+
# Test list sessions with limit parameter
76
+
echo"Testing list sessions with limit parameter..."
77
+
listLimitResult=$(s cli fc3 session list -a quanxi --region cn-hangzhou --function-name fc3-session-${fc_component_function_name:-test} --limit 5 -o json)
78
+
if [ -z"$listLimitResult" ];then
79
+
echo"Failed to list sessions with limit parameter"
80
+
exit 1
81
+
fi
82
+
echo"List sessions with limit parameter result: $listLimitResult"
$listResult= s cli fc3 session list -a quanxi --region cn-hangzhou --function-name "fc3-session-$($env:fc_component_function_name)"-o json |ConvertFrom-Json
0 commit comments