Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (69 sloc) 2.22 KB
timeout: 3000
onInit:
store:
sequence: `requisition::onInit`
assertions:
- name: Requisitions exists onInit
expectToBeDefined: requisition.name
- expect: this.name
toBeEqualTo: requisition.name
publishers:
- type: tcp
timeout: 2000
serverAddress: localhost
port: 23080
payload: it
onInit:
script: publisher.name = 'changed';
store:
sequence: store.sequence + `-> publisher::onInit`
assertions:
- name: Publisher exists onInit
expectToBeDefined: publisher
- name: Publisher name
expectToBeDefined: publisher.name
- expectToBeDefined: publisher
- expectToBeDefined: this.name
- expect: this.name
toBeEqualTo: publisher.name
onMessageReceived:
store:
sequence: store.sequence + `-> publisher::onMessageReceived`
assertions:
- name: Publisher exists onMessageReceived
expectToBeDefined: publisher
- name: Requisition onInit
expect: store.sequence
toContain: `requisition::onInit`
- name: Publisher name changed
expect: publisher.name
toBeEqualTo: `changed`
- name: Publisher onInit executed
expect: store.sequence
toContain: `publisher::onInit`
subscriptions:
- type: tcp
port: 23080
response: hook response
onInit:
script: subscription.name = 'changed';
store:
sequence: store.sequence + `-> subscription::onInit`
assertions:
- name: Subscription exists onInit
expectToBeDefined: subscription
- expect: this.name
toBeEqualTo: subscription.name
- name: Subscription name
expect: subscription.name
toBeEqualTo: `changed`
onMessageReceived:
assertions:
- name: Subscription exists onMessageReceived
expectToBeDefined: subscription
- name: Subscription name changed
expect: subscription.name
toBeEqualTo: `changed`
- name: Subscription onInit executed
expect: store.sequence
toContain: `subscription::onInit`
You can’t perform that action at this time.