Add sandbox credentials to .env.test and .env.local (sandbox URLs). Pass EBAY_* vars through bin/test-integration. EbayTaxonomyIntegrationTest: 6 tests against sandbox Taxonomy API using app token (client_credentials) — verifies OAuth, aspects for notebooks (cat 177) and RAM (cat 170083), required flags, value lists, caching. EbayAdapterIntegrationTest: listing publish/update/deactivate tests skip gracefully when EBAY_USER_TOKEN not set (Inventory API requires Authorization Code user token). Noop-deactivate test always runs. All 6 taxonomy tests pass against live sandbox. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
835 B
Bash
Executable file
22 lines
835 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Load .env.local secrets and run integration tests inside the app container.
|
|
if [ -f "$(dirname "$0")/../.env.local" ]; then
|
|
set -a
|
|
# shellcheck disable=SC1091
|
|
source "$(dirname "$0")/../.env.local"
|
|
set +a
|
|
fi
|
|
|
|
docker compose exec \
|
|
-e FRAPPE_ERP_BASE_URL="${FRAPPE_ERP_BASE_URL:-}" \
|
|
-e FRAPPE_ERP_API_KEY="${FRAPPE_ERP_API_KEY:-}" \
|
|
-e FRAPPE_ERP_API_SECRET="${FRAPPE_ERP_API_SECRET:-}" \
|
|
-e FRAPPE_GENERIC_ITEM_CODE="${FRAPPE_GENERIC_ITEM_CODE:-}" \
|
|
-e EBAY_CLIENT_ID="${EBAY_CLIENT_ID:-}" \
|
|
-e EBAY_CLIENT_SECRET="${EBAY_CLIENT_SECRET:-}" \
|
|
-e EBAY_API_BASE_URL="${EBAY_API_BASE_URL:-}" \
|
|
-e EBAY_OAUTH_BASE_URL="${EBAY_OAUTH_BASE_URL:-}" \
|
|
-e EBAY_MARKETPLACE_ID="${EBAY_MARKETPLACE_ID:-EBAY_DE}" \
|
|
app php vendor/bin/phpunit --testdox "${@:-tests/Integration/}"
|