test: stabilize docker onboarding e2e
This commit is contained in:
@@ -37,7 +37,7 @@ TRASH
|
|||||||
local delay="${2:-0.4}"
|
local delay="${2:-0.4}"
|
||||||
# Let prompts render before sending keystrokes.
|
# Let prompts render before sending keystrokes.
|
||||||
sleep "$delay"
|
sleep "$delay"
|
||||||
printf "%b" "$payload" >&3
|
printf "%b" "$payload" >&3 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
start_gateway() {
|
start_gateway() {
|
||||||
@@ -134,6 +134,8 @@ TRASH
|
|||||||
send $'"'"'\e[B'"'"' 0.6
|
send $'"'"'\e[B'"'"' 0.6
|
||||||
send $'"'"'\e[B'"'"' 0.6
|
send $'"'"'\e[B'"'"' 0.6
|
||||||
send $'"'"'\e[B'"'"' 0.6
|
send $'"'"'\e[B'"'"' 0.6
|
||||||
|
send $'"'"'\e[B'"'"' 0.6
|
||||||
|
send $'"'"'\e[B'"'"' 0.6
|
||||||
send $'"'"'\r'"'"' 0.6
|
send $'"'"'\r'"'"' 0.6
|
||||||
send $'"'"'\r'"'"' 0.5
|
send $'"'"'\r'"'"' 0.5
|
||||||
send $'"'"'\r'"'"' 0.5
|
send $'"'"'\r'"'"' 0.5
|
||||||
@@ -170,7 +172,7 @@ TRASH
|
|||||||
# Configure providers now? (default Yes)
|
# Configure providers now? (default Yes)
|
||||||
send $'"'"'\r'"'"' 0.8
|
send $'"'"'\r'"'"' 0.8
|
||||||
send "" 0.8
|
send "" 0.8
|
||||||
# Select Telegram, Discord, Signal.
|
# Select Telegram, Discord, Slack.
|
||||||
send $'"'"'\e[B'"'"' 0.4
|
send $'"'"'\e[B'"'"' 0.4
|
||||||
send $'"'"' '"'"' 0.4
|
send $'"'"' '"'"' 0.4
|
||||||
send $'"'"'\e[B'"'"' 0.4
|
send $'"'"'\e[B'"'"' 0.4
|
||||||
@@ -178,11 +180,14 @@ TRASH
|
|||||||
send $'"'"'\e[B'"'"' 0.4
|
send $'"'"'\e[B'"'"' 0.4
|
||||||
send $'"'"' '"'"' 0.4
|
send $'"'"' '"'"' 0.4
|
||||||
send $'"'"'\r'"'"' 0.6
|
send $'"'"'\r'"'"' 0.6
|
||||||
send $'"'"'tg_token\r'"'"' 0.6
|
send $'"'"'tg_token\r'"'"' 0.8
|
||||||
send $'"'"'discord_token\r'"'"' 0.6
|
send $'"'"'discord_token\r'"'"' 0.8
|
||||||
send $'"'"'n\r'"'"' 0.6
|
send "" 0.6
|
||||||
send $'"'"'+15551234567\r'"'"' 0.6
|
send $'"'"'\r'"'"' 0.6
|
||||||
send $'"'"'n\r'"'"' 0.6
|
send "" 0.6
|
||||||
|
send $'"'"'slack_bot\r'"'"' 0.8
|
||||||
|
send "" 0.6
|
||||||
|
send $'"'"'slack_app\r'"'"' 0.8
|
||||||
}
|
}
|
||||||
|
|
||||||
send_skills_flow() {
|
send_skills_flow() {
|
||||||
@@ -393,11 +398,11 @@ if (cfg?.telegram?.botToken !== "tg_token") {
|
|||||||
if (cfg?.discord?.token !== "discord_token") {
|
if (cfg?.discord?.token !== "discord_token") {
|
||||||
errors.push(`discord.token mismatch (got ${cfg?.discord?.token ?? "unset"})`);
|
errors.push(`discord.token mismatch (got ${cfg?.discord?.token ?? "unset"})`);
|
||||||
}
|
}
|
||||||
if (cfg?.signal?.account !== "+15551234567") {
|
if (cfg?.slack?.botToken !== "slack_bot") {
|
||||||
errors.push(`signal.account mismatch (got ${cfg?.signal?.account ?? "unset"})`);
|
errors.push(`slack.botToken mismatch (got ${cfg?.slack?.botToken ?? "unset"})`);
|
||||||
}
|
}
|
||||||
if (cfg?.signal?.cliPath !== "signal-cli") {
|
if (cfg?.slack?.appToken !== "slack_app") {
|
||||||
errors.push(`signal.cliPath mismatch (got ${cfg?.signal?.cliPath ?? "unset"})`);
|
errors.push(`slack.appToken mismatch (got ${cfg?.slack?.appToken ?? "unset"})`);
|
||||||
}
|
}
|
||||||
if (cfg?.wizard?.lastRunMode !== "local") {
|
if (cfg?.wizard?.lastRunMode !== "local") {
|
||||||
errors.push(`wizard.lastRunMode mismatch (got ${cfg?.wizard?.lastRunMode ?? "unset"})`);
|
errors.push(`wizard.lastRunMode mismatch (got ${cfg?.wizard?.lastRunMode ?? "unset"})`);
|
||||||
|
|||||||
Reference in New Issue
Block a user