Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRW- 8409 Added tests #21

Open
wants to merge 23 commits into
base: feature/dex-load-tests-adjustments
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
670b2a7
Added company users tests
olhalivitchuk Jun 7, 2024
8d2fa77
Added missing file
olhalivitchuk Jun 10, 2024
d3d5901
FRW-8409 Added dex load tests
geega Jun 26, 2024
9e2ef03
FRW-8409 Fixed voucher name
geega Jun 26, 2024
969a51e
FRW-8409 Created DEA configuration for orders tree.
asmarovydlo Jun 27, 2024
1932f65
FRW-8409 Added order and order history
geega Jul 10, 2024
4413d42
FRW-8409 Fixed ci
geega Jul 10, 2024
f8ecc07
FRW-8409 Refactored after review
geega Jul 16, 2024
df203cb
FRW-8409 Fixed spaces
geega Jul 16, 2024
f6af821
FRW-8409 Fixed spaces
geega Jul 16, 2024
277d682
FRW-8409 Fixed sales order logic fro pre create oms statuses and payment
geega Jul 16, 2024
af45901
FRW-8409 Fixed configuration
geega Jul 16, 2024
652f511
FRW-8409 Adjusted tests and configuration
geega Jul 17, 2024
0342371
FRW-8409 Added readme file
geega Jul 18, 2024
14af5af
FRW-8409 Added more details
geega Jul 18, 2024
aebd295
FRW-8409 Adjusted README and updated get salesOrderWithIncludes.js
geega Jul 18, 2024
ac7709b
- Increased limits for post operations from 200ms to 500ms.
eduard-melnytskyi Jul 18, 2024
0d91c9f
Fixed path to dex.json
eduard-melnytskyi Jul 18, 2024
320460e
Removed debug information.
eduard-melnytskyi Jul 18, 2024
9ee39f2
Fix entity test.
eduard-melnytskyi Jul 18, 2024
14fe364
Fix and adjust tests.
eduard-melnytskyi Jul 19, 2024
514626c
FRW-8409 Fixed some failed issues
geega Jul 21, 2024
8d1d72f
Merge pull request #22 from spryker/feature/frw-8409/dex-adjust-loadt…
eduard-melnytskyi Aug 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion environments/DEX.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"local": {
"storefrontUrl": "https://yves.%store%.spryker.local",
"storefrontApiUrl": "http://glue.%store%.spryker.local",
"backendApiUrl": "https://glue-backend.%store%.spryker.local",
"backendApiUrl": "http://glue-backend.%store%.spryker.local",
"backofficeUrl": "http://backoffice.%store%.spryker.local",
"backofficeApiUrl": "http://backend-api.%store%.spryker.local",
"stores": ["de", "us", "at"]
Expand Down
4 changes: 2 additions & 2 deletions environments/DMS.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"local": {
"storefrontUrl": "https://yves.%store%.spryker.local",
"storefrontUrl": "http://yves.%store%.spryker.local",
"storefrontApiUrl": "http://glue.%store%.spryker.local",
"backendApiUrl": "https://glue-backend.%store%.spryker.local",
"backendApiUrl": "http://glue-backend.%store%.spryker.local",
"backofficeUrl": "http://backoffice.%store%.spryker.local",
"backofficeApiUrl": "http://backend-api.%store%.spryker.local",
"stores": ["de", "us", "at"]
Expand Down
6 changes: 4 additions & 2 deletions helpers/dynamicEntity/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ export default class Handler {

getDataFromTable(tableAlias) {
try {
this.lastResponse = this.http.sendGetRequest(this.http.url`${this.urlHelper.getBackendApiBaseUrl()}/dynamic-entity/${tableAlias}`, this.getRequestParams(), false);

const url = `${this.urlHelper.getBackendApiBaseUrl()}/dynamic-entity/${tableAlias}`;
const response = this.http.sendGetRequest(url, this.getRequestParams(), false);
this.lastResponse = response;

this.assertionHelper.assertResponseStatus(this.lastResponse, 200, this.lastResponse.url)

return JSON.parse(this.lastResponse.body)
Expand Down
6 changes: 5 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Rate } from 'k6/metrics';
import { fail } from 'k6';
import { uuidv4 } from 'https://jslib.k6.io/k6-utils/1.4.0/index.js';
import { uuidv4, randomString as k6RandomString } from 'https://jslib.k6.io/k6-utils/1.4.0/index.js';

export let errorRate = new Rate('errors');

Expand Down Expand Up @@ -66,6 +66,10 @@ export function uuid() {
return uuidv4();
}

export function randomString(length = 8) {
return k6RandomString(length);
}

export function debug(...data) {
if (parseInt(__ENV.DATA_EXCHANGE_DEBUG) === 1) {
console.log(data)
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading