-
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
13 changed files
with
452 additions
and
326 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
], | ||
"references": [ | ||
{ | ||
"path": "../da" | ||
"path": "../da-proxy" | ||
}, | ||
{ | ||
"path": "../fdc3-common" | ||
|
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,13 @@ | ||
default: | ||
format: | ||
- html:dist/cucumber-report.html | ||
- "@cucumber/pretty-formatter" | ||
paths: | ||
- test/features/*.feature | ||
require: | ||
- test/step-definitions/*.steps.ts | ||
- test/support/*.ts | ||
- test/world/index.ts | ||
requireModule: | ||
- ts-node/register | ||
|
5 changes: 2 additions & 3 deletions
5
packages/server/package.json → packages/da-server/package.json
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,23 @@ | ||
import { AppIdentifier } from "@finos/fdc3"; | ||
|
||
export interface Messaging { | ||
|
||
/** | ||
* UUID for outgoing message | ||
*/ | ||
createUUID(): string; | ||
|
||
/** | ||
* Post an outgoing message | ||
*/ | ||
post(message: object) : Promise<void> | ||
|
||
/** | ||
* Receive an incoming message | ||
*/ | ||
receive(message: RequestMe) | ||
|
||
|
||
|
||
createMeta() : object | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
|
||
|
||
function createServer(messaging: Messaging) : (m: Agent) |
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,29 @@ | ||
Feature: Relaying Broadcast messages | ||
|
||
Background: Desktop Agent Server | ||
|
||
Given A Desktop Agent Server in "server" | ||
|
||
Scenario: Broadcast message to no-one | ||
|
||
When "App1/a1" broadcasts "fdc3.instrument" on "channel1" | ||
Then messaging will have outgoing posts | ||
| source.AppId | | ||
|
||
Scenario: Broadcast message sent to one listener | ||
|
||
When "App2/a2" adds a context listener on "channel1" with id "abc123" | ||
And "App1/a1" broadcasts "fdc3.instrument" on "channel1" | ||
|
||
Then messaging will have outgoing posts | ||
| source.AppId | source.instanceId | payload.context.type | | ||
| App1 | a1 | fdc3.instrument | | ||
|
||
Scenario: Broadcast message sent but listener has unsubscribed | ||
|
||
When "App2/a2" adds a context listener on "channel1" with id "abc123" | ||
And "App2/a2" removes context listener with id "abc123" | ||
And "App1/a1" broadcasts "fdc3.instrument" on "channel1" | ||
|
||
Then messaging will have outgoing posts | ||
| source.AppId | source.instanceId | payload.context.type | |
5 changes: 1 addition & 4 deletions
5
packages/server/tsconfig.json → packages/da-server/tsconfig.json
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.