-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from atlassian/release/3.0.0
Release 3.0.0
- Loading branch information
Showing
78 changed files
with
5,150 additions
and
1,738 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Default code owners for master branch - Atlassian Data Center App Performance Toolkit | ||
* @benmagro @ometelytsia @jkim2-atlassian @SergeyMoroz0703 @astashys @mmizin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# name: atlassain/dcapt | ||
# working dir: dc-app-performance-toolkit | ||
# build: docker build -t atlassain/dcapt . | ||
# bzt run: docker run --shm-size=4g -v "$PWD:/dc-app-performance-toolkit" atlassian/dcapt jira.yml | ||
# interactive run: docker run -it --entrypoint="/bin/bash" -v "$PWD:/dc-app-performance-toolkit" atlassian/dcapt | ||
|
||
FROM blazemeter/taurus | ||
|
||
ENV APT_INSTALL="apt-get -y install --no-install-recommends" | ||
|
||
RUN apt-get -y update \ | ||
&& $APT_INSTALL vim git openssh-server python3.8-dev python3-pip google-chrome-stable \ | ||
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1 \ | ||
&& python -m pip install --upgrade pip \ | ||
&& python -m pip install --upgrade setuptools \ | ||
&& apt-get clean | ||
|
||
COPY requirements.txt /tmp/requirements.txt | ||
RUN pip install -r /tmp/requirements.txt | ||
|
||
RUN rm -rf /root/.bzt/jmeter-taurus/ | ||
|
||
WORKDIR /dc-app-performance-toolkit/app | ||
|
||
ENTRYPOINT ["bzt", "-o", "modules.console.disable=true"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ABC,10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import re | ||
from locustio.common_utils import init_logger, confluence_measure | ||
|
||
logger = init_logger(app_type='confluence') | ||
|
||
|
||
@confluence_measure | ||
def app_specific_action(locust): | ||
|
||
r = locust.client.get('/plugin/report') # navigate to page | ||
|
||
content = r.content.decode('utf-8') # parse page content | ||
token_pattern_example = '"token":"(.+?)"' | ||
id_pattern_example = '"id":"(.+?)"' | ||
token = re.findall(token_pattern_example, content) # parse variables from response using regexp | ||
id = re.findall(id_pattern_example, content) | ||
logger.locust_info(f'token: {token}, id: {id}') # logger for debug when verbose is true in confluence.yml file | ||
if 'assertion string' not in content: | ||
logger.error(f"'assertion string' was not found in {content}") | ||
assert 'assertion string' in content # assertion after GET request | ||
|
||
body = {"id": id, "token": token} # include parsed variables to POST body | ||
headers = {'content-type': 'application/json'} | ||
r = locust.client.post('/plugin/post/endpoint', body, headers) # send some POST request | ||
content = r.content.decode('utf-8') | ||
if 'assertion string after successful post request' not in content: | ||
logger.error(f"'assertion string after successful post request' was not found in {content}") | ||
assert 'assertion string after successful post request' in content # assertion after POST request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import re | ||
from locustio.common_utils import init_logger, jira_measure | ||
|
||
logger = init_logger(app_type='jira') | ||
|
||
|
||
@jira_measure | ||
def app_specific_action(locust): | ||
r = locust.client.get('/plugin/report') # navigate to page | ||
|
||
content = r.content.decode('utf-8') # parse page content | ||
token_pattern_example = '"token":"(.+?)"' | ||
id_pattern_example = '"id":"(.+?)"' | ||
token = re.findall(token_pattern_example, content) # parse variables from response using regexp | ||
id = re.findall(id_pattern_example, content) | ||
logger.locust_info(f'token: {token}, id: {id}') # logger for debug when verbose is true in jira.yml file | ||
if 'assertion string' not in content: | ||
logger.error(f"'assertion string' was not found in {content}") | ||
assert 'assertion string' in content # assertion after GET request | ||
|
||
body = {"id": id, "token": token} # include parsed variables to POST body | ||
headers = {'content-type': 'application/json'} | ||
r = locust.client.post('/plugin/post/endpoint', body, headers) # send some POST request | ||
content = r.content.decode('utf-8') | ||
if 'assertion string after successful post request' not in content: | ||
logger.error(f"'assertion string after successful post request' was not found in {content}") | ||
assert 'assertion string after successful post request' in content # assertion after POST request |
Oops, something went wrong.