You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will need to pre-populate the AppDirectory with the following items:
App
Required Metadata
A
A’s AppD Record contains: aTestingIntent (with context type testContextX, testContextZ) and sharedTestingIntent1 (with context type testContextX)
B
B’s AppD Record contains bTestingIntent (with context type testContextY) and sharedTestingIntent1 (with context types testContextX and testContextY)
C
C’s AppD Record contains cTestingIntent (with context type testContextX)
Also we assume a fourth app D that is going to discover the intents in the other 3.
Find Intent From AppD
IntentAppD: Calls fdc3.findIntent(‘aTestingIntent’). Receives promise containing an appIntent with metadata containing aTestingIntent and only A app metadata.
IntentAppDRightContext: Calls fdc3.findIntent(‘aTestingIntent’, ‘fdc3.testContextX’). Receives promise containing an appIntent with metadata containing aTestingIntent and only A app metadata.
IntentAppDMultiple1: Calls fdc3.findIntent(‘sharedTestingIntent1’). Receives promise containing an appIntent with metadata containing sharedTestingIntent and only A and B app metadata.
IntentAppDMultiple2: Calls fdc3.findIntent(‘sharedTestingIntent1’, 'testContextX). Receives promise containing an appIntent with metadata containing sharedTestingIntent` and only A and B app metadata.
IntentAppDMultiple2: Calls fdc3.findIntent(‘sharedTestingIntent1’, 'testContextY). Receives promise containing an appIntent with metadata containing sharedTestingIntent` and only B app metadata.
Find Intents By Context
SingleContext: Call fdc3.findIntentsByContext(‘fdc3.testContextX’). Should return aTestingIntent (app A), sharedTestingIntent (A, B) and cTestingIntent (C) AND nothing else.
NoContext: Call fdc3.findIntentsByContext(). Throws error of some kind?
Raise Intent
App
Step
Details
D
Raise
fdc3.raiseIntent(‘sharedTestingIntent1’, {testContextY}) starts app B.
B
Gather Context
fdc.addIntentListener(‘sharedTestingIntent1’) Receives testContextY, matching that sent by D
SingleResolve1: Perform above test
TargetedResolve1: Use fdc3.raiseIntent(‘aTestingIntent’, {testContextX}, <A’s App Name>) to start app A, otherwise, as above
TargetedResolve2,3,4 Use the other ways of addressing apps (via ID, metadata) as described at the start of Open API Test Cases #18
FailedResolve1-4 As above, but use fdc3.raiseIntent(‘aTestingIntent’, {testContextY}, <A’s App Name>) and variations. You will receive No Apps Available Resolve Error
FailedResolve5-8 As above, but use fdc3.raiseIntent(‘aTestingIntent’, {testContextX}, <C’s App Name>) and variations. You will receive No Apps Available Resolve Error
The text was updated successfully, but these errors were encountered:
Setup
You will need to pre-populate the AppDirectory with the following items:
aTestingIntent
(with context typetestContextX
,testContextZ
) andsharedTestingIntent1
(with context typetestContextX
)bTestingIntent
(with context typetestContextY
) andsharedTestingIntent1
(with context typestestContextX
andtestContextY
)cTestingIntent
(with context typetestContextX
)Also we assume a fourth app D that is going to discover the intents in the other 3.
Find Intent From AppD
IntentAppD
: Callsfdc3.findIntent(‘aTestingIntent’)
. Receives promise containing an appIntent with metadata containingaTestingIntent
and only A app metadata.WrongIntentAppD
: Callsfdc3.findIntent(‘nonExistentIntent’)
. Rejects with no apps found error https://fdc3.finos.org/docs/api/ref/Errors#resolveerrorIntentAppDRightContext
: Callsfdc3.findIntent(‘aTestingIntent’, ‘fdc3.testContextX’)
. Receives promise containing an appIntent with metadata containingaTestingIntent
and only A app metadata.IntentAppDWrongContext
: Callsfdc3.findIntent(‘aTestingIntent’, ‘fdc3.testContextY’)
. Rejects with no apps found error https://fdc3.finos.org/docs/api/ref/Errors#resolveerrorIntentAppDMultiple1
: Callsfdc3.findIntent(‘sharedTestingIntent1’)
. Receives promise containing an appIntent with metadata containingsharedTestingIntent
and only A and B app metadata.IntentAppDMultiple2
: Callsfdc3.findIntent(‘sharedTestingIntent1’, 'testContextX
). Receives promise containing an appIntent with metadata containing
sharedTestingIntent` and only A and B app metadata.IntentAppDMultiple2
: Callsfdc3.findIntent(‘sharedTestingIntent1’, 'testContextY
). Receives promise containing an appIntent with metadata containing
sharedTestingIntent` and only B app metadata.Find Intents By Context
SingleContext
: Callfdc3.findIntentsByContext(‘fdc3.testContextX’)
. Should returnaTestingIntent
(app A),sharedTestingIntent
(A, B) andcTestingIntent
(C) AND nothing else.NoContext
: Callfdc3.findIntentsByContext()
. Throws error of some kind?Raise Intent
fdc3.raiseIntent(‘sharedTestingIntent1’, {testContextY})
starts app B.
fdc.addIntentListener(‘sharedTestingIntent1’)
Receives testContextY, matching that sent by D
SingleResolve1
: Perform above testTargetedResolve1
: Usefdc3.raiseIntent(‘aTestingIntent’, {testContextX}, <A’s App Name>)
to start app A, otherwise, as aboveTargetedResolve2,3,4
Use the other ways of addressing apps (via ID, metadata) as described at the start of Open API Test Cases #18FailedResolve1-4
As above, but usefdc3.raiseIntent(‘aTestingIntent’, {testContextY}, <A’s App Name>)
and variations. You will receive No Apps Available Resolve ErrorFailedResolve5-8
As above, but usefdc3.raiseIntent(‘aTestingIntent’, {testContextX}, <C’s App Name>)
and variations. You will receive No Apps Available Resolve ErrorThe text was updated successfully, but these errors were encountered: