From e4b48c5b79833d85f1e7237d14c194a92c5f71c2 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sat, 29 Oct 2022 02:36:24 -0400 Subject: [PATCH] Try post requests --- .github/workflows/dusk.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dusk.yml b/.github/workflows/dusk.yml index 7bd6a29d9..1f11f1e37 100644 --- a/.github/workflows/dusk.yml +++ b/.github/workflows/dusk.yml @@ -60,16 +60,16 @@ jobs: run: ./vendor/laravel/dusk/bin/chromedriver-linux --whitelisted-ips="" & - name: Curl Test 127.0.0.1 - run: curl 127.0.0.1:8000/api/system + run: curl -X POST 127.0.0.1:8000/api/servers - name: Curl Test Localhost - run: curl localhost:8000/api/system + run: curl -X POST localhost:8000/api/servers - name: PHP Curl Test 127.0.0.1 - run: "php -r 'echo curl_exec(curl_init(\"127.0.0.1:8000/api/system\")) ?: \"failed\";'" + run: "php -r '$ch = curl_init(\"127.0.0.1:8000/api/servers\"); curl_setopt($ch, CURLOPT_POST, 1); echo curl_exec($ch) ?: \"failed\";'" - name: PHP Curl Test Localhost - run: "php -r 'echo curl_exec(curl_init(\"localhost:8000/api/system\")) ?: \"failed\";'" + run: "php -r '$ch = curl_init(\"localhost:8000/api/servers\"); curl_setopt($ch, CURLOPT_POST, 1); echo curl_exec($ch) ?: \"failed\";'" - name: Run Dusk Tests run: php artisan dusk