Skip to content

Commit

Permalink
Fixing smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
ash0ne committed Apr 7, 2024
1 parent d6c6ba7 commit 796b6b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smoke_test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Send a request without authentication
response_unauthorized=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:3040)
response_unauthorized=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:5000)

# Check if response status code is 401 Unauthorized
if [[ "$response_unauthorized" == "401" ]]; then
Expand All @@ -12,7 +12,7 @@ else
fi

# Send a request with basic authentication
response_authorized=$(curl -s -o /dev/null -w "%{http_code}" -u user:test-password http://localhost:3040)
response_authorized=$(curl -s -o /dev/null -w "%{http_code}" -u user:test-password http://localhost:5000)

# Check if response status code is 200 OK
if [[ "$response_authorized" == "200" ]]; then
Expand Down

0 comments on commit 796b6b9

Please sign in to comment.