Skip to content

Commit f55f20a

Browse files
Merge pull request #1765 from atlassian/fix-locust-app-specific-test-confluence-login-as-app-specific-user
added token update to jmeter app specific action confluence
2 parents e924947 + e3e5508 commit f55f20a

File tree

1 file changed

+174
-1
lines changed

1 file changed

+174
-1
lines changed

app/jmeter/confluence.jmx

Lines changed: 174 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5704,13 +5704,99 @@ if (response_data.username != vars.get("app_specific_username")) {
57045704
</JSR223PostProcessor>
57055705
<hashTree/>
57065706
</hashTree>
5707+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="update_tokens_as_app_specific_user" enabled="true">
5708+
<stringProp name="HTTPSampler.path">${application.postfix}/</stringProp>
5709+
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
5710+
<stringProp name="HTTPSampler.method">GET</stringProp>
5711+
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
5712+
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
5713+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
5714+
<collectionProp name="Arguments.arguments"/>
5715+
</elementProp>
5716+
</HTTPSamplerProxy>
5717+
<hashTree>
5718+
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
5719+
<collectionProp name="HeaderManager.headers">
5720+
<elementProp name="Accept-Language" elementType="Header">
5721+
<stringProp name="Header.name">Accept-Language</stringProp>
5722+
<stringProp name="Header.value">en-US,en;q=0.5</stringProp>
5723+
</elementProp>
5724+
<elementProp name="Upgrade-Insecure-Requests" elementType="Header">
5725+
<stringProp name="Header.name">Upgrade-Insecure-Requests</stringProp>
5726+
<stringProp name="Header.value">1</stringProp>
5727+
</elementProp>
5728+
<elementProp name="Accept-Encoding" elementType="Header">
5729+
<stringProp name="Header.name">Accept-Encoding</stringProp>
5730+
<stringProp name="Header.value">gzip, deflate</stringProp>
5731+
</elementProp>
5732+
<elementProp name="Accept" elementType="Header">
5733+
<stringProp name="Header.name">Accept</stringProp>
5734+
<stringProp name="Header.value">text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</stringProp>
5735+
</elementProp>
5736+
</collectionProp>
5737+
</HeaderManager>
5738+
<hashTree/>
5739+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="ajs-build-number" enabled="true">
5740+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
5741+
<stringProp name="RegexExtractor.refname">ajs-build-number</stringProp>
5742+
<stringProp name="RegexExtractor.regex">meta name=\&quot;ajs-build-number\&quot; content=\&quot;(.*?)\&quot;&gt;</stringProp>
5743+
<stringProp name="RegexExtractor.template">$1$</stringProp>
5744+
<stringProp name="RegexExtractor.default">NOT FOUND</stringProp>
5745+
<stringProp name="RegexExtractor.match_number">1</stringProp>
5746+
<stringProp name="Sample.scope">all</stringProp>
5747+
<stringProp name="Scope.variable"></stringProp>
5748+
<boolProp name="RegexExtractor.default_empty_value">false</boolProp>
5749+
</RegexExtractor>
5750+
<hashTree/>
5751+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="ajs-remote-user-key" enabled="true">
5752+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
5753+
<stringProp name="RegexExtractor.refname">ajs-remote-user-key</stringProp>
5754+
<stringProp name="RegexExtractor.regex">meta name=\&quot;ajs-remote-user-key\&quot; content=\&quot;(.*?)\&quot;&gt;</stringProp>
5755+
<stringProp name="RegexExtractor.template">$1$</stringProp>
5756+
<stringProp name="RegexExtractor.default"></stringProp>
5757+
<stringProp name="RegexExtractor.match_number">1</stringProp>
5758+
<stringProp name="Sample.scope">all</stringProp>
5759+
<boolProp name="RegexExtractor.default_empty_value">false</boolProp>
5760+
</RegexExtractor>
5761+
<hashTree/>
5762+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="ajs-atl-token" enabled="true">
5763+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
5764+
<stringProp name="RegexExtractor.refname">atlassian-token</stringProp>
5765+
<stringProp name="RegexExtractor.regex">meta name=\&quot;ajs-atl-token\&quot; content=\&quot;(.*?)\&quot;&gt;</stringProp>
5766+
<stringProp name="RegexExtractor.template">$1$</stringProp>
5767+
<stringProp name="RegexExtractor.default"></stringProp>
5768+
<stringProp name="RegexExtractor.match_number">1</stringProp>
5769+
<stringProp name="Sample.scope">all</stringProp>
5770+
<boolProp name="RegexExtractor.default_empty_value">true</boolProp>
5771+
</RegexExtractor>
5772+
<hashTree/>
5773+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="confluence-version" enabled="true">
5774+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
5775+
<stringProp name="RegexExtractor.refname">confluence-version</stringProp>
5776+
<stringProp name="RegexExtractor.regex">meta name=\&quot;ajs-version-number\&quot; content=\&quot;(.*?)\&quot;&gt;</stringProp>
5777+
<stringProp name="RegexExtractor.template">$1$</stringProp>
5778+
<stringProp name="RegexExtractor.default"></stringProp>
5779+
<stringProp name="RegexExtractor.match_number">1</stringProp>
5780+
<stringProp name="Sample.scope">all</stringProp>
5781+
<boolProp name="RegexExtractor.default_empty_value">true</boolProp>
5782+
</RegexExtractor>
5783+
<hashTree/>
5784+
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="Logger" enabled="true">
5785+
<stringProp name="scriptLanguage">groovy</stringProp>
5786+
<stringProp name="parameters"></stringProp>
5787+
<stringProp name="filename"></stringProp>
5788+
<stringProp name="cacheKey">true</stringProp>
5789+
<stringProp name="script">prev.setIgnore()</stringProp>
5790+
</JSR223PostProcessor>
5791+
<hashTree/>
5792+
</hashTree>
57075793
</hashTree>
57085794
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="jmeter_app_specific_action" enabled="true">
57095795
<boolProp name="TransactionController.parent">true</boolProp>
57105796
<boolProp name="TransactionController.includeTimers">false</boolProp>
57115797
</TransactionController>
57125798
<hashTree>
5713-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET /app/get_endpoing" enabled="true">
5799+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET /app/get_endpoint" enabled="true">
57145800
<stringProp name="HTTPSampler.path">${application.postfix}/app/get_endpoint</stringProp>
57155801
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
57165802
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -5995,6 +6081,93 @@ if (response_data.username != vars.get(&quot;username&quot;)) {
59956081
} else {
59966082
prev.setIgnore()
59976083
}
6084+
</stringProp>
6085+
</JSR223PostProcessor>
6086+
<hashTree/>
6087+
</hashTree>
6088+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="update_tokens_as_app_session_user" enabled="true">
6089+
<stringProp name="HTTPSampler.path">${application.postfix}/</stringProp>
6090+
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
6091+
<stringProp name="HTTPSampler.method">GET</stringProp>
6092+
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
6093+
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
6094+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
6095+
<collectionProp name="Arguments.arguments"/>
6096+
</elementProp>
6097+
</HTTPSamplerProxy>
6098+
<hashTree>
6099+
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header Manager" enabled="true">
6100+
<collectionProp name="HeaderManager.headers">
6101+
<elementProp name="Accept-Language" elementType="Header">
6102+
<stringProp name="Header.name">Accept-Language</stringProp>
6103+
<stringProp name="Header.value">en-US,en;q=0.5</stringProp>
6104+
</elementProp>
6105+
<elementProp name="Upgrade-Insecure-Requests" elementType="Header">
6106+
<stringProp name="Header.name">Upgrade-Insecure-Requests</stringProp>
6107+
<stringProp name="Header.value">1</stringProp>
6108+
</elementProp>
6109+
<elementProp name="Accept-Encoding" elementType="Header">
6110+
<stringProp name="Header.name">Accept-Encoding</stringProp>
6111+
<stringProp name="Header.value">gzip, deflate</stringProp>
6112+
</elementProp>
6113+
<elementProp name="Accept" elementType="Header">
6114+
<stringProp name="Header.name">Accept</stringProp>
6115+
<stringProp name="Header.value">text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8</stringProp>
6116+
</elementProp>
6117+
</collectionProp>
6118+
</HeaderManager>
6119+
<hashTree/>
6120+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="ajs-build-number" enabled="true">
6121+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
6122+
<stringProp name="RegexExtractor.refname">ajs-build-number</stringProp>
6123+
<stringProp name="RegexExtractor.regex">meta name=\&quot;ajs-build-number\&quot; content=\&quot;(.*?)\&quot;&gt;</stringProp>
6124+
<stringProp name="RegexExtractor.template">$1$</stringProp>
6125+
<stringProp name="RegexExtractor.default">NOT FOUND</stringProp>
6126+
<stringProp name="RegexExtractor.match_number">1</stringProp>
6127+
<stringProp name="Sample.scope">all</stringProp>
6128+
<stringProp name="Scope.variable"></stringProp>
6129+
<boolProp name="RegexExtractor.default_empty_value">false</boolProp>
6130+
</RegexExtractor>
6131+
<hashTree/>
6132+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="ajs-remote-user-key" enabled="true">
6133+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
6134+
<stringProp name="RegexExtractor.refname">ajs-remote-user-key</stringProp>
6135+
<stringProp name="RegexExtractor.regex">meta name=\&quot;ajs-remote-user-key\&quot; content=\&quot;(.*?)\&quot;&gt;</stringProp>
6136+
<stringProp name="RegexExtractor.template">$1$</stringProp>
6137+
<stringProp name="RegexExtractor.default"></stringProp>
6138+
<stringProp name="RegexExtractor.match_number">1</stringProp>
6139+
<stringProp name="Sample.scope">all</stringProp>
6140+
<boolProp name="RegexExtractor.default_empty_value">false</boolProp>
6141+
</RegexExtractor>
6142+
<hashTree/>
6143+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="ajs-atl-token" enabled="true">
6144+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
6145+
<stringProp name="RegexExtractor.refname">atlassian-token</stringProp>
6146+
<stringProp name="RegexExtractor.regex">meta name=\&quot;ajs-atl-token\&quot; content=\&quot;(.*?)\&quot;&gt;</stringProp>
6147+
<stringProp name="RegexExtractor.template">$1$</stringProp>
6148+
<stringProp name="RegexExtractor.default"></stringProp>
6149+
<stringProp name="RegexExtractor.match_number">1</stringProp>
6150+
<stringProp name="Sample.scope">all</stringProp>
6151+
<boolProp name="RegexExtractor.default_empty_value">true</boolProp>
6152+
</RegexExtractor>
6153+
<hashTree/>
6154+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="confluence-version" enabled="true">
6155+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
6156+
<stringProp name="RegexExtractor.refname">confluence-version</stringProp>
6157+
<stringProp name="RegexExtractor.regex">meta name=\&quot;ajs-version-number\&quot; content=\&quot;(.*?)\&quot;&gt;</stringProp>
6158+
<stringProp name="RegexExtractor.template">$1$</stringProp>
6159+
<stringProp name="RegexExtractor.default"></stringProp>
6160+
<stringProp name="RegexExtractor.match_number">1</stringProp>
6161+
<stringProp name="Sample.scope">all</stringProp>
6162+
<boolProp name="RegexExtractor.default_empty_value">true</boolProp>
6163+
</RegexExtractor>
6164+
<hashTree/>
6165+
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="Logger" enabled="true">
6166+
<stringProp name="scriptLanguage">groovy</stringProp>
6167+
<stringProp name="parameters"></stringProp>
6168+
<stringProp name="filename"></stringProp>
6169+
<stringProp name="cacheKey">true</stringProp>
6170+
<stringProp name="script">prev.setIgnore()
59986171
</stringProp>
59996172
</JSR223PostProcessor>
60006173
<hashTree/>

0 commit comments

Comments
 (0)