diff --git a/init.sh b/init.sh index 79da883..5677ae3 100644 --- a/init.sh +++ b/init.sh @@ -102,7 +102,18 @@ SIEOF sed -i "/'site_url' =>/a\\ 'adminwizard' => array('completed' => true)," "$CONFIG_PHP" 2>/dev/null || true fi - echo "Admin Wizard disabled" + echo "Admin Wizard disabled (config)" + + # Also insert adminwizard into DB (critical for API access!) + php -r " + \$c = @mysql_connect('$DB_HOST_NAME:$DB_TCP_PORT', '$DB_USER_NAME', '$DB_PASSWORD'); + if (\$c) { + mysql_select_db('$DATABASE_NAME', \$c); + mysql_query(\"INSERT INTO config (category, name, value) VALUES ('system', 'adminwizard', '{\\\"completed\\\":true}')\", \$c); + mysql_close(\$c); + } + " 2>/dev/null || true + echo "Admin Wizard disabled (DB)" else echo "FAILED: config.php empty after silent install!" cat /tmp/install_output.html 2>/dev/null | head -20 diff --git a/test_api_extended.py b/test_api_extended.py index 3ea760c..aa537b0 100755 --- a/test_api_extended.py +++ b/test_api_extended.py @@ -249,6 +249,18 @@ def main(): return True return False + test("Globale Suche nach 'API'", search_accounts) + "search_string": "API", + "modules": ["Accounts"], + "offset": 0, + "max_results": 10, + }) + if result and "entry_list" in result: + count = result.get("entry_list", []) + print(f" Suche 'API': {len(count)} Treffer in Accounts") + return True + return False + test("Globale Suche nach 'API'", search_by_module) # === RELATIONSHIPS ===