Skip to content

Commit

Permalink
fix config resovling
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoyangnz committed Jun 8, 2023
1 parent 17c57ce commit 4295891
Show file tree
Hide file tree
Showing 10 changed files with 15,601 additions and 1,239 deletions.
Empty file.
82 changes: 82 additions & 0 deletions examples/scenarios/siteminder-pay-charge-flow.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import {
get,
log,
post,
think,
scenario,
put,
loop,
before,
Context,
} from '../../src';
import { getCookie } from './auth';
import { createStoryPayload, updateStoryPayload } from './fixtures/story';

scenario(
{
name: 'Story flow',
weight: 1,
},
before(async (context: Context) => {
context.cookie('M_J_R_S', await getCookie(context));
}),
get({
url: '',
}),
log('Logged in the landing page'),
think(2000),
get({
url: 'api/stories?sort=-lastUpdated&pageSize=10&pageIndex=1',
capture: [
{
json: 'pageContent[*].thumbnailImage.{id:id,href:href}',
as: 'thumbnails',
},
],
}),
log('List top 10 story assets'),
loop({ over: 'thumbnails', parallel: false }, [
get({
url: 'api/images/{{ $loopElement.id }}/blob?href={{ $loopElement.href }}',
}),
]),
think(2000),
post({
url: 'api/stories',
json: createStoryPayload(),
capture: [
{
json: '$',
as: 'story',
},
],
}),
log('Created a new story'),
think(1000),
put({
url: 'api/stories/{{ story.id }}',
json: updateStoryPayload,
}),
log('Updated a story'),
get({
url: '/workflow/assets/{{ story.id }}/transitions/story',
}),
log('Get the transitions of a story'),
think(500),
post({
url: 'api/stories/{{ story.id }}/versions/REVIEW',
}),
log('Transition to REVIEW status of a story'),
think(500),
post({
url: 'api/stories/{{ story.id }}/versions/PUBLISHED',
}),
log('Transition to PUBLISHED status of a story'),
think(1000),
get({
url:
'api/stories?q=(_search=in=%22loadinflux%22%20and%20lastUpdated%3E%3D2019-09-29T22:39:10Z)&sort=-lastUpdated&pageSize=10&pageIndex=0',
}),
log('Search a list of stories'),
think(2000),
);
Empty file added examples/utils.ts
Empty file.
3 changes: 2 additions & 1 deletion ops/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ version: "3.9"
services:
timescaledb:
container_name: timescaledb
image: timescale/pg_prometheus:latest-pg11
image: timescale/timescaledb:latest-pg12
privileged: true
ports:
- "5432:5432"
environment:
Expand Down
Loading

0 comments on commit 4295891

Please sign in to comment.