-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
197 additions
and
40 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@kite9/da-proxy", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"files": [ | ||
"dist" | ||
], | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@kite9/da-server", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"files": [ | ||
"dist" | ||
], | ||
|
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 |
---|---|---|
@@ -1,24 +1,39 @@ | ||
Feature: Relaying Private Channel Broadcast messages | ||
|
||
Background: | ||
Background: | ||
Given A newly instantiated FDC3 Server | ||
# Scenario: Broadcast message to no-one | ||
# When "App1/a1" broadcasts "fdc3.instrument" on private channel "channel1" | ||
# Then messaging will have outgoing posts | ||
# | msg.source.AppId | | ||
# And messaging will have 0 posts | ||
# Scenario: Broadcast message sent to one listener | ||
# When "App2/a2" adds a context listener on private channel "channel1" with type "fdc3.instrument" | ||
# And "App1/a1" broadcasts "fdc3.instrument" on private channel "channel1" | ||
# Then messaging will have outgoing posts | ||
# | msg.meta.source.appId | msg.meta.source.instanceId | msg.payload.context.type | msg.meta.destination.appId | msg.meta.destination.instanceId | | ||
# | App1 | a1 | fdc3.instrument | App2 | a2 | | ||
# Scenario: Broadcast message sent but listener has unsubscribed | ||
# When "App2/a2" adds a context listener on private channel "channel1" with type "fdc3.instrument" | ||
# And "App2/a2" removes a context listener on private channel "channel1" with type "fdc3.instrument" | ||
# And "App1/a1" broadcasts "fdc3.instrument" on private channel "channel1" | ||
# Then messaging will have outgoing posts | ||
# | msg.source.AppId | msg.source.instanceId | msg.payload.context.type | | ||
|
||
Scenario: Broadcast message to no-one | ||
When "App1/a1" broadcasts "fdc3.instrument" on private channel "channel1" | ||
Scenario: Event Listener created for addContextListener | ||
When "App2/a2" adds an AddContextListener on private channel "channel1" | ||
And "App2/a2" adds an onUnsubscribeListener on private channel "channel1" | ||
And "App2/a1" adds a context listener on private channel "channel1" with type "fdc3.instrument" | ||
Then messaging will have outgoing posts | ||
| msg.source.AppId | | ||
And messaging will have 0 posts | ||
|
||
Scenario: Broadcast message sent to one listener | ||
When "App2/a2" adds a context listener on private channel "channel1" with type "fdc3.instrument" | ||
And "App1/a1" broadcasts "fdc3.instrument" on private channel "channel1" | ||
Then messaging will have outgoing posts | ||
| msg.meta.source.appId | msg.meta.source.instanceId | msg.payload.context.type | msg.meta.destination.appId | msg.meta.destination.instanceId | | ||
| App1 | a1 | fdc3.instrument | App2 | a2 | | ||
|
||
Scenario: Broadcast message sent but listener has unsubscribed | ||
When "App2/a2" adds a context listener on private channel "channel1" with type "fdc3.instrument" | ||
And "App2/a2" removes context listener on private channel "channel1" with type "fdc3.instrument" | ||
And "App1/a1" broadcasts "fdc3.instrument" on private channel "channel1" | ||
| msg.source.AppId | msg.source.instanceId | msg.payload.context.type | | ||
| blah | bob | squirtle | | ||
And "App2/a1" removes a context listener on private channel "channel1" with type "fdc3.instrument" | ||
Then messaging will have outgoing posts | ||
| msg.source.AppId | msg.source.instanceId | msg.payload.context.type | | ||
| blah | bob | squirtle | | ||
# Scenario: Event Listener removed for addContextListener | ||
# When "App2/a2" adds an AddContextListener on private channel "channel1" | ||
# And "App2/a2" removes an AddContextListener on private channel "channel1" | ||
# And "App2/a1" adds a context listener on private channel "channel1" with type "fdc3.instrument" | ||
# Then messaging will have outgoing posts | ||
# | msg.source.AppId | msg.source.instanceId | msg.payload.context.type | |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@kite9/fdc3-common", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"files": [ | ||
"dist" | ||
], | ||
|
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