Skip to content

Commit

Permalink
Minor wrk script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Serious-senpai committed Oct 25, 2024
1 parent 19f0740 commit 10660ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions scripts/wrk/api/v1/admin/login.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local pre_request

function init(args)
-- Pre-generate the request
payload = "grant_type=password&username=admin&password=NgaiLongGey"
payload = "grant_type=password&username=incorrect&password=incorrect"
pre_request = "POST /api/v1/admin/login HTTP/1.1\r\n" ..
"Accept: application/json\r\n" ..
"Connection: keep-alive\r\n" ..
Expand All @@ -16,8 +16,6 @@ function init(args)
"\r\n" ..
payload

print(string.format("Sending requests:\n%s\n", pre_request))

response = nil
end

Expand Down
2 changes: 0 additions & 2 deletions scripts/wrk/root.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ function init(args)
string.format("User-Agent: %s\r\n", utils.random_user_agent()) ..
"\r\n"

print(string.format("Sending requests:\n%s\n", pre_request))

response = nil
end

Expand Down

0 comments on commit 10660ed

Please sign in to comment.