Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions smoke_test_scripts/run_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ cat "$(pwd)/smoke_test_scripts/assets/example_config.yaml" > "$DATAROBOT_CLI_CON
# Set API token in our ephemeral config file
yq -i ".token = \"$DR_API_TOKEN\"" "$DATAROBOT_CLI_CONFIG"

# Check that the datarobot alias exists and works
if command -v datarobot >/dev/null 2>&1 || [ -x "$HOME/.local/bin/datarobot" ]; then
echo "✅ 'datarobot' alias is available."
else
echo "❌ 'datarobot' alias not found - expected symlink at $HOME/.local/bin/datarobot"
exit 1
fi

# Check we have expected help output (checking for header content)
header_copy="Build AI Applications Faster"
has_header=$(dr help | grep "${header_copy}")
Expand All @@ -41,6 +49,15 @@ else
exit 1
fi

# Check that datarobot alias produces identical output to dr
has_header_alias=$(datarobot help | grep "${header_copy}" 2>/dev/null || "$HOME/.local/bin/datarobot" help | grep "${header_copy}")
if [[ -n "$has_header_alias" ]]; then
echo "✅ 'datarobot' alias returned expected content."
else
echo "❌ 'datarobot' alias did not return expected content."
exit 1
fi

# Check that JSON output of version command has expected `version` key
has_version_key=$(dr self version --format=json | yq eval 'has("version")')
if [[ "$has_version_key" == "true" ]]; then
Expand Down
Loading