@@ -76,15 +76,7 @@ describe('TADProc Service', () => {
7676
7777 const getMockNetworkMap = ( ) => {
7878 const jNetworkMap = JSON . parse (
79- '{"_key":"26345403","_id":"networkConfiguration/26345403","_rev":"_cxc-1vO---","messages":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0","txTp":"pacs.002.001.12","channels":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0","typologies":[{"id":"[email protected] ","host":"https://frmfaas.sybrin.com/function/off-typology-processor","cfg":"1.0","rules":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"},{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"}]}]}]}]}' , 80- ) ;
81- const networkMap : NetworkMap = Object . assign ( new NetworkMap ( ) , jNetworkMap ) ;
82- return networkMap ;
83- } ;
84-
85- const getMockNetworkMapWithMultipleChannels = ( ) => {
86- const jNetworkMap = JSON . parse (
87- '{"_key":"26345403","_id":"networkConfiguration/26345403","_rev":"_cxc-1vO---","messages":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0","txTp":"pacs.002.001.12","channels":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0","typologies":[{"id":"[email protected] ","host":"https://frmfaas.sybrin.com/function/off-typology-processor","cfg":"1.0","rules":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"},{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"}]},{"id":"[email protected] ","host":"https://frmfaas.sybrin.com/function/off-typology-processor","cfg":"[email protected] ","rules":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"},{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"}]}]},{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0","typologies":[{"id":"[email protected] ","host":"https://frmfaas.sybrin.com/function/off-typology-processor","cfg":"1.0","rules":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"},{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"}]},{"id":"[email protected] ","host":"https://frmfaas.sybrin.com/function/off-typology-processor","cfg":"[email protected] ","rules":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"},{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"}]}]}]}]}' , 79+ '{"_key":"26345403","_id":"networkConfiguration/26345403","_rev":"_cxc-1vO---","messages":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0","txTp":"pacs.002.001.12","typologies":[{"id":"[email protected] ","host":"https://frmfaas.sybrin.com/function/off-typology-processor","cfg":"1.0","rules":[{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"},{"id":"[email protected] ","host":"http://openfaas:8080","cfg":"1.0"}]}]}]}' , 8880 ) ;
8981 const networkMap : NetworkMap = Object . assign ( new NetworkMap ( ) , jNetworkMap ) ;
9082 return networkMap ;
@@ -96,7 +88,7 @@ describe('TADProc Service', () => {
9688
9789 const ruleResults : RuleResult [ ] = [ { id : '' , cfg : '' , subRuleRef : '' , reason : '' } ] ;
9890
99- const networkMap = getMockNetworkMapWithMultipleChannels ( ) ;
91+ const networkMap = getMockNetworkMap ( ) ;
10092 const typologyResult : TypologyResult = {
10193 result : 50 ,
10294
0 commit comments