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
refactor(sse-test-client): remove test environment dependency from ForceLogoutTest
- Remove unused test_env parameter from test_force_logout function
- Skip test environment setup for ForceLogoutTest scenario
- Fix force_logout cookie header to use 'id' instead of 'session_id'
- Update README with new connection-test scenario documentation
- Clarify permission requirements for each test scenario
- Add example output for connection test
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
-`force-logout-test` - Tests SSE events for force logout (requires admin permissions, NOT YET IMPLEMENTED)
90
+
-`all` - Runs all test scenarios sequentially (requires admin permissions for action tests)
82
91
83
92
## Command-Line Arguments
84
93
@@ -94,16 +103,15 @@ cargo run -p sse-test-client -- \
94
103
95
104
### Setup Phase
96
105
1. Authenticates both users and obtains session cookies
97
-
2. Creates a coaching relationship between the two users
98
-
3.Creates a coaching session within that relationship
106
+
2.For action tests: Creates a coaching relationship and session between the users
107
+
3.For connection test: Skips coaching data setup
99
108
4. Establishes SSE connections for both users
100
109
101
110
### Test Phase
102
111
For each scenario:
103
-
1. User 1 triggers an action (e.g., creates an action)
104
-
2. The tool waits for User 2 to receive the corresponding SSE event
105
-
3. Validates that the event data matches expectations
106
-
4. Records the test result (pass/fail) and duration
112
+
1.**Connection Test**: Verifies SSE connections are established and remain stable
113
+
2.**Action Tests**: User 1 triggers an action (e.g., creates an action), the tool waits for User 2 to receive the corresponding SSE event, and validates event data
114
+
3. Records the test result (pass/fail) and duration
107
115
108
116
### Results Phase
109
117
- Displays a summary of all test results
@@ -112,6 +120,40 @@ For each scenario:
112
120
113
121
## Example Output
114
122
123
+
### Connection Test (No Admin Required)
124
+
```
125
+
=== SETUP PHASE ===
126
+
→ Authenticating users...
127
+
✓ User 1 authenticated (ID: 123e4567-e89b-12d3-a456-426614174000)
128
+
✓ User 2 authenticated (ID: 234e5678-e89b-12d3-a456-426614174001)
129
+
130
+
→ Skipping test environment setup (not needed for this test)
131
+
132
+
→ Establishing SSE connections...
133
+
✓ User 1 SSE connection established
134
+
✓ User 2 SSE connection established
135
+
136
+
=== TEST PHASE ===
137
+
138
+
=== TEST: Connection Test ===
139
+
Testing basic SSE connectivity without creating any data
140
+
✓ User 1 (123e4567-e89b-12d3-a456-426614174000) SSE connection: established
141
+
✓ User 2 (234e5678-e89b-12d3-a456-426614174001) SSE connection: established
142
+
→ Waiting 2 seconds to verify connections stay alive...
143
+
✓ Connections remain stable
144
+
✓ SSE infrastructure is working correctly
145
+
146
+
=== RESULTS ===
147
+
=== TEST SUMMARY ===
148
+
[PASS] connection_test (2.002086s)
149
+
SSE connections established and maintained successfully
0 commit comments