summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2690233)
In order to have a little independence between test sections, let's
move to having independent cookie files for each.
node_modules
game.html
lmno-config.json
node_modules
game.html
lmno-config.json
tictactoe_game_path=tictactoe/$tictactoe_game_id
tictactoe_game_path=tictactoe/$tictactoe_game_id
- curl_post $tictactoe_game_path/move "{ \"move\": $1 }" "-b .test-cookie"
+ curl_put /profile "{ \"nickname\": \"$1\" }" "-c .cookie-tictactoe"
- curl_put /profile "{ \"nickname\": \"$1\" }" "-c .test-cookie"
+ curl_post $tictactoe_game_path/move "{ \"move\": $1 }" "-b .cookie-tictactoe"
}
tictactoe_player_info()
{
}
tictactoe_player_info()
{
- curl_get $tictactoe_game_path/events "-m 0.1 -b .test-cookie" 2>&1 \
+ curl_get $tictactoe_game_path/events "-m 0.1 -b .cookie-tictactoe" 2>&1 \
| grep player-info -A 1 \
| grep ^data
}
tictactoe_player_name()
{
| grep player-info -A 1 \
| grep ^data
}
tictactoe_player_name()
{
- curl_put $tictactoe_game_path/player "{ \"name\": \"$1\" }" "-b .test-cookie"
+ curl_put $tictactoe_game_path/player "{ \"name\": \"$1\" }" "-b .cookie-tictactoe"
}
tictactoe_player_team()
{
}
tictactoe_player_team()
{
- curl_put $tictactoe_game_path/player "{ \"team\": \"$1\" }" "-b .test-cookie"
+ curl_put $tictactoe_game_path/player "{ \"team\": \"$1\" }" "-b .cookie-tictactoe"
}
TEST_SUBSECTION "Tic Tac Toe player-info"
TEST "Hit LMNO /profile to set name to 'curl'"
}
TEST_SUBSECTION "Tic Tac Toe player-info"
TEST "Hit LMNO /profile to set name to 'curl'"
TEST_END
TEST "Verify player-info event reports 'curl' name"
TEST_END
TEST "Verify player-info event reports 'curl' name"