add functional tests for 7 major SDKs (Python, Go, JS, Ruby, PHP, Java, Rust)

Each test file covers 10 real API tests matching the C SDK reference:
health_check, validate_keys, get_languages, execute, execute_error,
session_list, session_lifecycle, service_list, snapshot_list, image_list.

All tests skip cleanly without credentials. No soft passes.
Updated all 7 Makefiles to run dedicated functional test files.
This commit is contained in:
russell@unturf.com 2026-02-26 22:04:21 -05:00
parent 8fae03d9fd
commit de8c816b27
14 changed files with 1046 additions and 11 deletions

View file

@ -196,7 +196,12 @@ test-functional:
echo " $(YELLOW)⊘$(NC) Skipping (no API credentials)"; \
else \
echo " Running functional tests..."; \
echo " $(YELLOW)⊘$(NC) Functional: SDK not yet implemented"; \
if [ -f "$(SYNC_DIR)/tests/TestFunctional.java" ] && [ -f "$(SYNC_DIR)/src/Un.java" ]; then \
$(JAVAC) -cp $(SYNC_DIR)/src $(SYNC_DIR)/tests/TestFunctional.java -d /tmp/un-java-test 2>&1 && \
$(JAVA) -cp /tmp/un-java-test:$(SYNC_DIR)/src TestFunctional 2>&1 && \
echo " $(GREEN)✓$(NC) Functional: All tests passed" || echo " $(RED)✗$(NC) Functional: Tests failed"; \
rm -rf /tmp/un-java-test; \
fi; \
fi
# ============================================================================