Skip to content

Commit 4726587

Browse files
Merge pull request #1776 from atlassian/add-websudo-locust-jsm
Add websudo locust JSM
2 parents 839f89a + b1ee4fc commit 4726587

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/extension/jsm/extension_locust_agents.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66

77
@jsm_agent_measure('locust_agent_app_specific_action')
8-
# @run_as_specific_user(username='admin', password='admin') # run as specific user
8+
# WebSudo is a feature that enhances security by requiring administrators to re-authenticate before
9+
# accessing administrative functions within Atlassian applications.
10+
# do_websudo=True requires user administrative rights, otherwise requests fail.
11+
# @run_as_specific_user(username='admin', password='admin', do_websudo=False) # run as specific user
912
def app_specific_action(locust):
1013
r = locust.get('/app/get_endpoint', catch_response=True) # call app-specific GET endpoint
1114
content = r.content.decode('utf-8') # decode response content

app/extension/jsm/extension_locust_customers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55

66

77
@jsm_customer_measure('locust_customer_app_specific_action')
8-
# @run_as_specific_user(username='admin', password='admin') # run as specific user
8+
# WebSudo is a feature that enhances security by requiring administrators to re-authenticate before
9+
# accessing administrative functions within Atlassian applications.
10+
# do_websudo=True requires user administrative rights, otherwise requests fail.
11+
# @run_as_specific_user(username='admin', password='admin', do_websudo=False) # run as specific user
912
def app_specific_action(locust):
1013
r = locust.get('/app/get_endpoint', catch_response=True) # call app-specific GET endpoint
1114
content = r.content.decode('utf-8') # decode response content

0 commit comments

Comments
 (0)