@gravitee/ui-policy-studio-angular 15.13.0-angular-20-4a9d88b → 15.13.0-fix-cron-e0271bb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/gravitee-ui-policy-studio-angular.mjs +5 -0
- package/esm2022/lib/components/filter-pipe/gio-flter-connectors-by-mode.pipe.mjs +43 -0
- package/esm2022/lib/components/flow-details/gio-ps-flow-details.component.mjs +184 -0
- package/esm2022/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.component.mjs +115 -0
- package/esm2022/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.mjs +179 -0
- package/esm2022/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.mjs +162 -0
- package/esm2022/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.mjs +81 -0
- package/esm2022/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.component.mjs +109 -0
- package/esm2022/lib/components/flow-form-dialog/flow-native-form-dialog/gio-ps-flow-native-form-dialog.component.mjs +89 -0
- package/esm2022/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.component.mjs +135 -0
- package/esm2022/lib/components/flow-form-dialog/gio-ps-flow-form-dialog-result.model.mjs +2 -0
- package/esm2022/lib/components/flows-menu/gio-ps-flows-menu.component.mjs +432 -0
- package/esm2022/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.mjs +165 -0
- package/esm2022/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.component.mjs +53 -0
- package/esm2022/lib/components/step-form/gio-ps-step-form.component.mjs +158 -0
- package/esm2022/lib/models/ApiProtocolType.mjs +17 -0
- package/esm2022/lib/models/ApiType.mjs +17 -0
- package/esm2022/lib/models/ConnectorsInfo.mjs +2 -0
- package/esm2022/lib/models/PolicySchemaFetcher.mjs +2 -0
- package/esm2022/lib/models/SaveOutput.mjs +2 -0
- package/esm2022/lib/models/flow/Flow.mjs +2 -0
- package/esm2022/lib/models/flow/FlowExecution.mjs +17 -0
- package/esm2022/lib/models/flow/HttpMethod.mjs +43 -0
- package/esm2022/lib/models/flow/Selector.mjs +2 -0
- package/esm2022/lib/models/flow/Step.mjs +2 -0
- package/esm2022/lib/models/flow/index.mjs +21 -0
- package/esm2022/lib/models/index.mjs +24 -0
- package/esm2022/lib/models/plan/Plan.mjs +17 -0
- package/esm2022/lib/models/plan/index.mjs +17 -0
- package/esm2022/lib/models/policy/GenericPolicy.mjs +24 -0
- package/esm2022/lib/models/policy/Policy.mjs +44 -0
- package/esm2022/lib/models/policy/SharedPolicyGroupPolicy.mjs +17 -0
- package/esm2022/lib/models/policy/index.mjs +19 -0
- package/esm2022/lib/policy-group-studio/gio-policy-group-studio.component.mjs +228 -0
- package/esm2022/lib/policy-studio/gio-policy-studio.component.mjs +304 -0
- package/esm2022/lib/policy-studio/gio-policy-studio.model.mjs +17 -0
- package/esm2022/lib/policy-studio/gio-policy-studio.service.mjs +74 -0
- package/esm2022/public-api.mjs +22 -0
- package/esm2022/testing/gravitee-ui-policy-studio-angular-testing.mjs +5 -0
- package/esm2022/testing/lib/components/flow-details/gio-ps-flow-details.harness.mjs +56 -0
- package/esm2022/testing/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.harness.mjs +35 -0
- package/esm2022/testing/lib/components/flow-details-phase/gio-ps-flow-details-phase.harness.mjs +155 -0
- package/esm2022/testing/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.harness.mjs +69 -0
- package/esm2022/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.mjs +60 -0
- package/esm2022/testing/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.harness.mjs +128 -0
- package/esm2022/testing/lib/components/flow-form-dialog/flow-native-form-dialog/gio-ps-flow-native-form-dialog.harness.mjs +50 -0
- package/esm2022/testing/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.harness.mjs +98 -0
- package/esm2022/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.mjs +91 -0
- package/esm2022/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.mjs +87 -0
- package/esm2022/testing/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.harness.mjs +30 -0
- package/esm2022/testing/lib/components/step-form/gio-ps-step-form.harness.mjs +56 -0
- package/esm2022/testing/lib/models/ApiProtocolType.mjs +17 -0
- package/esm2022/testing/lib/models/ApiType.mjs +17 -0
- package/esm2022/testing/lib/models/ConnectorsInfo.fixture.mjs +182 -0
- package/esm2022/testing/lib/models/ConnectorsInfo.mjs +2 -0
- package/esm2022/testing/lib/models/PolicySchemaFetcher.mjs +2 -0
- package/esm2022/testing/lib/models/SaveOutput.mjs +2 -0
- package/esm2022/testing/lib/models/flow/Flow.fixture.mjs +122 -0
- package/esm2022/testing/lib/models/flow/Flow.mjs +2 -0
- package/esm2022/testing/lib/models/flow/FlowExecution.fixture.mjs +43 -0
- package/esm2022/testing/lib/models/flow/FlowExecution.mjs +17 -0
- package/esm2022/testing/lib/models/flow/HttpMethod.mjs +43 -0
- package/esm2022/testing/lib/models/flow/Selector.mjs +2 -0
- package/esm2022/testing/lib/models/flow/Step.fixture.mjs +92 -0
- package/esm2022/testing/lib/models/flow/Step.mjs +2 -0
- package/esm2022/testing/lib/models/flow/index-testing.mjs +19 -0
- package/esm2022/testing/lib/models/flow/index.mjs +21 -0
- package/esm2022/testing/lib/models/index-testing.mjs +20 -0
- package/esm2022/testing/lib/models/index.mjs +24 -0
- package/esm2022/testing/lib/models/plan/Plan.fixture.mjs +31 -0
- package/esm2022/testing/lib/models/plan/Plan.mjs +17 -0
- package/esm2022/testing/lib/models/plan/index-testing.mjs +17 -0
- package/esm2022/testing/lib/models/plan/index.mjs +17 -0
- package/esm2022/testing/lib/models/policy/GenericPolicy.mjs +24 -0
- package/esm2022/testing/lib/models/policy/Policy.fixture.mjs +194 -0
- package/esm2022/testing/lib/models/policy/Policy.mjs +44 -0
- package/esm2022/testing/lib/models/policy/SharedPolicyGroupPolicy.mjs +17 -0
- package/esm2022/testing/lib/models/policy/index-testing.mjs +17 -0
- package/esm2022/testing/lib/models/policy/index.mjs +19 -0
- package/esm2022/testing/lib/policy-group-studio/gio-policy-group-studio.harness.mjs +52 -0
- package/esm2022/testing/lib/policy-studio/gio-policy-studio.harness.mjs +202 -0
- package/esm2022/testing/lib/policy-studio/gio-policy-studio.model.mjs +17 -0
- package/esm2022/testing/public-testing-api.mjs +19 -0
- package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs +1 -1
- package/fesm2022/gravitee-ui-policy-studio-angular-testing.mjs.map +1 -1
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs +95 -92
- package/fesm2022/gravitee-ui-policy-studio-angular.mjs.map +1 -1
- package/index.d.ts +3 -404
- package/lib/components/filter-pipe/gio-flter-connectors-by-mode.pipe.d.ts +8 -0
- package/lib/components/flow-details/gio-ps-flow-details.component.d.ts +29 -0
- package/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.component.d.ts +20 -0
- package/lib/components/flow-details-phase/gio-ps-flow-details-phase.component.d.ts +47 -0
- package/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.component.d.ts +33 -0
- package/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.component.d.ts +18 -0
- package/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.component.d.ts +21 -0
- package/lib/components/flow-form-dialog/flow-native-form-dialog/gio-ps-flow-native-form-dialog.component.d.ts +21 -0
- package/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.component.d.ts +24 -0
- package/lib/components/flow-form-dialog/gio-ps-flow-form-dialog-result.model.d.ts +2 -0
- package/lib/components/flows-menu/gio-ps-flows-menu.component.d.ts +57 -0
- package/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.component.d.ts +47 -0
- package/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.component.d.ts +24 -0
- package/lib/components/step-form/gio-ps-step-form.component.d.ts +35 -0
- package/lib/models/ApiProtocolType.d.ts +1 -0
- package/lib/models/ApiType.d.ts +1 -0
- package/lib/models/ConnectorsInfo.d.ts +7 -0
- package/lib/models/PolicySchemaFetcher.d.ts +5 -0
- package/lib/models/SaveOutput.d.ts +7 -0
- package/lib/models/flow/Flow.d.ts +24 -0
- package/lib/models/flow/FlowExecution.d.ts +11 -0
- package/lib/models/flow/HttpMethod.d.ts +3 -0
- package/lib/models/flow/Selector.d.ts +37 -0
- package/lib/models/flow/Step.d.ts +34 -0
- package/lib/models/flow/index.d.ts +5 -0
- package/lib/models/index.d.ts +8 -0
- package/lib/models/plan/Plan.d.ts +6 -0
- package/lib/models/plan/index.d.ts +1 -0
- package/lib/models/policy/GenericPolicy.d.ts +22 -0
- package/lib/models/policy/Policy.d.ts +28 -0
- package/lib/models/policy/SharedPolicyGroupPolicy.d.ts +11 -0
- package/lib/models/policy/index.d.ts +3 -0
- package/lib/policy-group-studio/gio-policy-group-studio.component.d.ts +70 -0
- package/lib/policy-studio/gio-policy-studio.component.d.ts +98 -0
- package/lib/policy-studio/gio-policy-studio.model.d.ts +17 -0
- package/lib/policy-studio/gio-policy-studio.service.d.ts +30 -0
- package/package.json +11 -7
- package/public-api.d.ts +3 -0
- package/testing/index.d.ts +3 -369
- package/testing/lib/components/flow-details/gio-ps-flow-details.harness.d.ts +12 -0
- package/testing/lib/components/flow-details-info-bar/gio-ps-flow-details-info-bar.harness.d.ts +5 -0
- package/testing/lib/components/flow-details-phase/gio-ps-flow-details-phase.harness.d.ts +69 -0
- package/testing/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.harness.d.ts +21 -0
- package/testing/lib/components/flow-execution-form-dialog/gio-ps-flow-execution-form-dialog.harness.d.ts +13 -0
- package/testing/lib/components/flow-form-dialog/flow-message-form-dialog/gio-ps-flow-message-form-dialog.harness.d.ts +37 -0
- package/testing/lib/components/flow-form-dialog/flow-native-form-dialog/gio-ps-flow-native-form-dialog.harness.d.ts +17 -0
- package/testing/lib/components/flow-form-dialog/flow-proxy-form-dialog/gio-ps-flow-proxy-form-dialog.harness.d.ts +33 -0
- package/testing/lib/components/flows-menu/gio-ps-flows-menu.harness.d.ts +31 -0
- package/testing/lib/components/policies-catalog-dialog/gio-ps-policies-catalog-dialog.harness.d.ts +20 -0
- package/testing/lib/components/step-edit-dialog/gio-ps-step-edit-dialog.harness.d.ts +8 -0
- package/testing/lib/components/step-form/gio-ps-step-form.harness.d.ts +18 -0
- package/testing/lib/models/ApiProtocolType.d.ts +1 -0
- package/testing/lib/models/ApiType.d.ts +1 -0
- package/testing/lib/models/ConnectorsInfo.d.ts +7 -0
- package/testing/lib/models/ConnectorsInfo.fixture.d.ts +12 -0
- package/testing/lib/models/PolicySchemaFetcher.d.ts +5 -0
- package/testing/lib/models/SaveOutput.d.ts +7 -0
- package/testing/lib/models/flow/Flow.d.ts +24 -0
- package/testing/lib/models/flow/Flow.fixture.d.ts +6 -0
- package/testing/lib/models/flow/FlowExecution.d.ts +11 -0
- package/testing/lib/models/flow/FlowExecution.fixture.d.ts +3 -0
- package/testing/lib/models/flow/HttpMethod.d.ts +3 -0
- package/testing/lib/models/flow/Selector.d.ts +37 -0
- package/testing/lib/models/flow/Step.d.ts +34 -0
- package/testing/lib/models/flow/Step.fixture.d.ts +5 -0
- package/testing/lib/models/flow/index-testing.d.ts +3 -0
- package/testing/lib/models/flow/index.d.ts +5 -0
- package/testing/lib/models/index-testing.d.ts +4 -0
- package/testing/lib/models/index.d.ts +8 -0
- package/testing/lib/models/plan/Plan.d.ts +6 -0
- package/testing/lib/models/plan/Plan.fixture.d.ts +2 -0
- package/testing/lib/models/plan/index-testing.d.ts +1 -0
- package/testing/lib/models/plan/index.d.ts +1 -0
- package/testing/lib/models/policy/GenericPolicy.d.ts +22 -0
- package/testing/lib/models/policy/Policy.d.ts +28 -0
- package/testing/lib/models/policy/Policy.fixture.d.ts +4 -0
- package/testing/lib/models/policy/SharedPolicyGroupPolicy.d.ts +11 -0
- package/testing/lib/models/policy/index-testing.d.ts +1 -0
- package/testing/lib/models/policy/index.d.ts +3 -0
- package/testing/lib/policy-group-studio/gio-policy-group-studio.harness.d.ts +20 -0
- package/testing/lib/policy-studio/gio-policy-studio.harness.d.ts +78 -0
- package/testing/lib/policy-studio/gio-policy-studio.model.d.ts +17 -0
- package/testing/public-testing-api.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/ui-policy-studio-angular",
|
|
3
|
-
"version": "15.13.0-
|
|
3
|
+
"version": "15.13.0-fix-cron-e0271bb",
|
|
4
4
|
"description": "Gravitee.io - UI Policy Studio Angular",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"tslib": "^2.6.2"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/animations": "^
|
|
15
|
-
"@angular/cdk": "^
|
|
16
|
-
"@angular/common": "^
|
|
17
|
-
"@angular/core": "^
|
|
18
|
-
"@angular/forms": "^
|
|
19
|
-
"@angular/material": "^
|
|
14
|
+
"@angular/animations": "^19.0.0",
|
|
15
|
+
"@angular/cdk": "^19.0.0",
|
|
16
|
+
"@angular/common": "^19.0.0",
|
|
17
|
+
"@angular/core": "^19.0.0",
|
|
18
|
+
"@angular/forms": "^19.0.0",
|
|
19
|
+
"@angular/material": "^19.0.0",
|
|
20
20
|
"@gravitee/ui-particles-angular": "*",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"ngx-markdown": "^19.1.1"
|
|
@@ -32,10 +32,14 @@
|
|
|
32
32
|
},
|
|
33
33
|
".": {
|
|
34
34
|
"types": "./index.d.ts",
|
|
35
|
+
"esm2022": "./esm2022/gravitee-ui-policy-studio-angular.mjs",
|
|
36
|
+
"esm": "./esm2022/gravitee-ui-policy-studio-angular.mjs",
|
|
35
37
|
"default": "./fesm2022/gravitee-ui-policy-studio-angular.mjs"
|
|
36
38
|
},
|
|
37
39
|
"./testing": {
|
|
38
40
|
"types": "./testing/index.d.ts",
|
|
41
|
+
"esm2022": "./esm2022/testing/gravitee-ui-policy-studio-angular-testing.mjs",
|
|
42
|
+
"esm": "./esm2022/testing/gravitee-ui-policy-studio-angular-testing.mjs",
|
|
39
43
|
"default": "./fesm2022/gravitee-ui-policy-studio-angular-testing.mjs"
|
|
40
44
|
}
|
|
41
45
|
},
|
package/public-api.d.ts
ADDED
package/testing/index.d.ts
CHANGED
|
@@ -1,371 +1,5 @@
|
|
|
1
|
-
import { ComponentHarness, BaseHarnessFilters, HarnessPredicate, LocatorFactory } from '@angular/cdk/testing';
|
|
2
|
-
import { MatInputHarness } from '@angular/material/input/testing';
|
|
3
|
-
|
|
4
|
-
declare const HttpMethods: readonly ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE", "OTHER"];
|
|
5
|
-
type HttpMethod = (typeof HttpMethods)[number];
|
|
6
|
-
|
|
7
|
-
type Operation = 'PUBLISH' | 'SUBSCRIBE';
|
|
8
|
-
type Operator = 'EQUALS' | 'STARTS_WITH';
|
|
9
|
-
type BaseSelectorTypeEnum = 'HTTP' | 'CHANNEL' | 'CONDITION';
|
|
10
|
-
interface BaseSelector {
|
|
11
|
-
/**
|
|
12
|
-
* Selector type.
|
|
13
|
-
*/
|
|
14
|
-
type?: BaseSelectorTypeEnum;
|
|
15
|
-
}
|
|
16
|
-
interface HttpSelector extends BaseSelector {
|
|
17
|
-
/**
|
|
18
|
-
* The path of the selector
|
|
19
|
-
*/
|
|
20
|
-
path: string;
|
|
21
|
-
pathOperator: Operator;
|
|
22
|
-
methods?: HttpMethod[];
|
|
23
|
-
}
|
|
24
|
-
interface ChannelSelector extends BaseSelector {
|
|
25
|
-
/**
|
|
26
|
-
* The list of operations associated with this channel selector.
|
|
27
|
-
*/
|
|
28
|
-
operations?: Operation[];
|
|
29
|
-
/**
|
|
30
|
-
* The channel of the selector
|
|
31
|
-
*/
|
|
32
|
-
channel: string;
|
|
33
|
-
channelOperator: Operator;
|
|
34
|
-
entrypoints?: string[];
|
|
35
|
-
}
|
|
36
|
-
interface ConditionSelector extends BaseSelector {
|
|
37
|
-
/**
|
|
38
|
-
* The condition of the selector
|
|
39
|
-
*/
|
|
40
|
-
condition: string;
|
|
41
|
-
}
|
|
42
|
-
type Selector = HttpSelector | ChannelSelector | ConditionSelector;
|
|
43
|
-
|
|
44
|
-
interface Step {
|
|
45
|
-
/**
|
|
46
|
-
* The name of the step
|
|
47
|
-
*/
|
|
48
|
-
name?: string;
|
|
49
|
-
/**
|
|
50
|
-
* The description of the step
|
|
51
|
-
*/
|
|
52
|
-
description?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Is the step enabled or not.
|
|
55
|
-
*/
|
|
56
|
-
enabled?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* The policy of the step
|
|
59
|
-
*/
|
|
60
|
-
policy?: string;
|
|
61
|
-
/**
|
|
62
|
-
* The configuration of the step
|
|
63
|
-
*/
|
|
64
|
-
configuration?: unknown;
|
|
65
|
-
/**
|
|
66
|
-
* The condition of the step
|
|
67
|
-
*/
|
|
68
|
-
condition?: string;
|
|
69
|
-
/**
|
|
70
|
-
* The message condition of the step
|
|
71
|
-
*/
|
|
72
|
-
messageCondition?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Is the policy deployed or not.
|
|
75
|
-
*/
|
|
76
|
-
deployed?: boolean;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
interface Flow {
|
|
80
|
-
id?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Flow's name.
|
|
83
|
-
*/
|
|
84
|
-
name?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Is the flow enabled.
|
|
87
|
-
*/
|
|
88
|
-
enabled?: boolean;
|
|
89
|
-
selectors?: Selector[];
|
|
90
|
-
connect?: Step[];
|
|
91
|
-
interact?: Step[];
|
|
92
|
-
request?: Step[];
|
|
93
|
-
response?: Step[];
|
|
94
|
-
subscribe?: Step[];
|
|
95
|
-
publish?: Step[];
|
|
96
|
-
/**
|
|
97
|
-
* Flow's tags.
|
|
98
|
-
*/
|
|
99
|
-
tags?: string[];
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
declare function fakeChannelFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
103
|
-
declare function fakeConditionedChannelFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
104
|
-
declare function fakeHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
105
|
-
declare function fakeConditionedHttpFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
106
|
-
declare function fakeNativeFlow(modifier?: Partial<Flow> | ((baseApi: Flow) => Flow)): Flow;
|
|
107
|
-
|
|
108
1
|
/**
|
|
109
|
-
*
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
110
3
|
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
mode?: FlowMode;
|
|
114
|
-
/**
|
|
115
|
-
* Is the flow execution match required.
|
|
116
|
-
*/
|
|
117
|
-
matchRequired?: boolean;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
declare function fakeBestMatchFlowExecution(modifier?: Partial<FlowExecution> | ((baseApi: FlowExecution) => FlowExecution)): FlowExecution;
|
|
121
|
-
declare function fakeDefaultFlowExecution(modifier?: Partial<FlowExecution> | ((baseApi: FlowExecution) => FlowExecution)): FlowExecution;
|
|
122
|
-
|
|
123
|
-
declare function fakeTestPolicyStep(modifier?: Partial<Step> | ((base: Step) => Step)): Step;
|
|
124
|
-
declare function fakeRateLimitStep(modifier?: Partial<Step> | ((base: Step) => Step)): Step;
|
|
125
|
-
declare function fakeJsonToXmlStep(modifier?: Partial<Step> | ((base: Step) => Step)): Step;
|
|
126
|
-
declare function fakeSharedPolicyGroupPolicyStep(modifier?: Partial<Step> | ((base: Step) => Step)): Step;
|
|
127
|
-
|
|
128
|
-
interface Plan {
|
|
129
|
-
id: string;
|
|
130
|
-
name: string;
|
|
131
|
-
flows: Flow[];
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
declare function fakePlan(modifier?: Partial<Plan> | ((base: Plan) => Plan)): Plan;
|
|
135
|
-
|
|
136
|
-
type ApiProtocolType = 'HTTP_MESSAGE' | 'HTTP_PROXY' | 'NATIVE_KAFKA';
|
|
137
|
-
|
|
138
|
-
type FlowPhase = 'REQUEST' | 'RESPONSE' | 'INTERACT' | 'CONNECT' | 'PUBLISH' | 'SUBSCRIBE';
|
|
139
|
-
interface Policy {
|
|
140
|
-
id: string;
|
|
141
|
-
name: string;
|
|
142
|
-
icon?: string;
|
|
143
|
-
description?: string;
|
|
144
|
-
category?: string;
|
|
145
|
-
version?: string;
|
|
146
|
-
flowPhaseCompatibility?: Partial<Record<ApiProtocolType, FlowPhase[]>>;
|
|
147
|
-
deployed?: boolean;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* @Deprecated to keep as long as we support APIM < 4.6
|
|
151
|
-
*/
|
|
152
|
-
type ExecutionPhase = 'REQUEST' | 'RESPONSE' | 'MESSAGE_REQUEST' | 'MESSAGE_RESPONSE';
|
|
153
|
-
type PolicyInput = Omit<Policy, 'proxy' | 'message'> & {
|
|
154
|
-
proxy?: ExecutionPhase[];
|
|
155
|
-
message?: ExecutionPhase[];
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
declare const POLICIES_V4_UNREGISTERED_ICON: Policy[];
|
|
159
|
-
declare function fakeTestPolicy(modifier?: Partial<Policy> | ((base: Policy) => Policy)): Policy;
|
|
160
|
-
declare function fakeAllPolicies(): (PolicyInput | Policy)[];
|
|
161
|
-
|
|
162
|
-
interface ConnectorInfo {
|
|
163
|
-
name: string;
|
|
164
|
-
type: string;
|
|
165
|
-
icon: string;
|
|
166
|
-
supportedModes: ConnectorMode[];
|
|
167
|
-
}
|
|
168
|
-
type ConnectorMode = 'CONNECT' | 'INTERACT' | 'SUBSCRIBE' | 'PUBLISH' | 'REQUEST_RESPONSE';
|
|
169
|
-
|
|
170
|
-
declare function fakeSSEMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
171
|
-
declare function fakeWebsocketMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
172
|
-
declare function fakeHTTPPostMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
173
|
-
declare function fakeHTTPGetMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
174
|
-
declare function fakeWebhookMessageEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
175
|
-
declare function fakeHTTPProxyEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
176
|
-
declare function fakeMockMessageEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
177
|
-
declare function fakeKafkaMessageEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
178
|
-
declare function fakeHTTPProxyEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
179
|
-
declare function fakeKafkaNativeEntrypoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
180
|
-
declare function fakeKafkaNativeEndpoint(modifier?: Partial<ConnectorInfo> | ((base: ConnectorInfo) => ConnectorInfo)): ConnectorInfo;
|
|
181
|
-
|
|
182
|
-
type GioPolicyStudioDetailsPhaseStepHarnessFilters = BaseHarnessFilters;
|
|
183
|
-
declare class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
|
|
184
|
-
static hostSelector: string;
|
|
185
|
-
/**
|
|
186
|
-
* Get Harness with the given filter.
|
|
187
|
-
*
|
|
188
|
-
* @param options Options for filtering which input instances are considered a match.
|
|
189
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
190
|
-
*/
|
|
191
|
-
static with(options?: GioPolicyStudioDetailsPhaseStepHarnessFilters): HarnessPredicate<GioPolicyStudioDetailsPhaseStepHarness>;
|
|
192
|
-
getName(): Promise<string>;
|
|
193
|
-
getDescription(): Promise<string | undefined>;
|
|
194
|
-
getInfoMessage(): Promise<string | undefined>;
|
|
195
|
-
clickOnEdit(): Promise<void>;
|
|
196
|
-
clickOnDelete(): Promise<void>;
|
|
197
|
-
clickOnDisableEnable(): Promise<void>;
|
|
198
|
-
clickOnDuplicate(): Promise<void>;
|
|
199
|
-
clickOnMoveRight(): Promise<void>;
|
|
200
|
-
clickOnMoveLeft(): Promise<void>;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
type StepForm = {
|
|
204
|
-
description?: string;
|
|
205
|
-
condition?: string;
|
|
206
|
-
messageCondition?: string;
|
|
207
|
-
waitForPolicyFormCompletionCb?: (locator: LocatorFactory) => Promise<void>;
|
|
208
|
-
waitForInitHttpRequestCompletionCb?: () => void;
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
type PhaseType = 'INTERACT' | 'REQUEST' | 'RESPONSE' | 'PUBLISH' | 'SUBSCRIBE';
|
|
212
|
-
type GioPolicyStudioDetailsPhaseHarnessFilters = BaseHarnessFilters & {
|
|
213
|
-
type?: PhaseType;
|
|
214
|
-
};
|
|
215
|
-
type StepCard = {
|
|
216
|
-
name: string;
|
|
217
|
-
type: 'connector';
|
|
218
|
-
} | {
|
|
219
|
-
name: string;
|
|
220
|
-
description?: string;
|
|
221
|
-
hasCondition: boolean;
|
|
222
|
-
type: 'step';
|
|
223
|
-
};
|
|
224
|
-
declare class GioPolicyStudioDetailsPhaseHarness extends ComponentHarness {
|
|
225
|
-
static hostSelector: string;
|
|
226
|
-
private getHeaderName;
|
|
227
|
-
/**
|
|
228
|
-
* Get Harness with the given filter.
|
|
229
|
-
*
|
|
230
|
-
* @param options Options for filtering which input instances are considered a match.
|
|
231
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
232
|
-
*/
|
|
233
|
-
static with(options?: GioPolicyStudioDetailsPhaseHarnessFilters): HarnessPredicate<GioPolicyStudioDetailsPhaseHarness>;
|
|
234
|
-
getSteps(): Promise<StepCard[] | 'DISABLED'>;
|
|
235
|
-
getStep(index: number): Promise<GioPolicyStudioDetailsPhaseStepHarness>;
|
|
236
|
-
clickAddStep(index: number): Promise<void>;
|
|
237
|
-
/**
|
|
238
|
-
* Add a step to a phase
|
|
239
|
-
* @param index Index where to add the step. (Add button index)
|
|
240
|
-
* @param stepConfig Step to add
|
|
241
|
-
*/
|
|
242
|
-
addStep(index: number, stepConfig: {
|
|
243
|
-
policyName: string;
|
|
244
|
-
} & StepForm): Promise<void>;
|
|
245
|
-
/**
|
|
246
|
-
* Edit a step configuration
|
|
247
|
-
* @param index Index of the policy step to edit
|
|
248
|
-
* @param stepConfig Step configuration
|
|
249
|
-
*/
|
|
250
|
-
editStep(index: number, stepConfig: StepForm): Promise<void>;
|
|
251
|
-
/**
|
|
252
|
-
* Delete a step
|
|
253
|
-
* @param index Index of the policy step to delete
|
|
254
|
-
*/
|
|
255
|
-
deleteStep(index: number): Promise<void>;
|
|
256
|
-
/**
|
|
257
|
-
* Disable a step
|
|
258
|
-
* @param index Index of the policy step to disable
|
|
259
|
-
*/
|
|
260
|
-
disableEnableStep(index: number): Promise<void>;
|
|
261
|
-
/**
|
|
262
|
-
* Duplicate a step
|
|
263
|
-
* @param index Index of the policy step to duplicate
|
|
264
|
-
*/
|
|
265
|
-
duplicateStep(index: number): Promise<void>;
|
|
266
|
-
/**
|
|
267
|
-
* Move a step to the right
|
|
268
|
-
* @param index Index of the policy step to move
|
|
269
|
-
*/
|
|
270
|
-
moveStepRight(index: number): Promise<void>;
|
|
271
|
-
/**
|
|
272
|
-
* Move a step to the left
|
|
273
|
-
* @param index Index of the policy step to move
|
|
274
|
-
*/
|
|
275
|
-
moveStepLeft(index: number): Promise<void>;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
declare class GioPolicyStudioHarness extends ComponentHarness {
|
|
279
|
-
static hostSelector: string;
|
|
280
|
-
private menuHarness;
|
|
281
|
-
private detailsHarness;
|
|
282
|
-
private phaseHarness;
|
|
283
|
-
isReadOnly(): Promise<boolean>;
|
|
284
|
-
/**
|
|
285
|
-
* Add a flow to a plan or to "Common flows"
|
|
286
|
-
*
|
|
287
|
-
* @param groupName Plan name where to add the flow. You also can define "Common flows" to add a flow to this group.
|
|
288
|
-
* @param flow Flow to add
|
|
289
|
-
*/
|
|
290
|
-
addFlow(groupName: string, flow: Flow): Promise<void>;
|
|
291
|
-
/**
|
|
292
|
-
* Edit a flow configuration
|
|
293
|
-
*
|
|
294
|
-
* @param flowName Flow name to edit
|
|
295
|
-
* @param flow
|
|
296
|
-
*/
|
|
297
|
-
editFlowConfig(flowName: string, flow: Partial<Flow>): Promise<void>;
|
|
298
|
-
/**
|
|
299
|
-
* Delete a flow
|
|
300
|
-
*
|
|
301
|
-
* @param flowName Flow name to delete
|
|
302
|
-
*/
|
|
303
|
-
deleteFlow(flowName: string): Promise<void>;
|
|
304
|
-
/**
|
|
305
|
-
* Enable or disable a flow
|
|
306
|
-
*/
|
|
307
|
-
enableDisableFlow(flowName: string): Promise<void>;
|
|
308
|
-
/**
|
|
309
|
-
* Duplicate a flow
|
|
310
|
-
*
|
|
311
|
-
* @param flowName Flow name to clone
|
|
312
|
-
*/
|
|
313
|
-
duplicateFlow(flowName: string): Promise<void>;
|
|
314
|
-
/**
|
|
315
|
-
* Select a flow in the menu
|
|
316
|
-
*
|
|
317
|
-
* @param flowName Flow name to select
|
|
318
|
-
*/
|
|
319
|
-
selectFlowInMenu(flowName: string): Promise<void>;
|
|
320
|
-
/**
|
|
321
|
-
* Get the list of flows in the menu
|
|
322
|
-
*/
|
|
323
|
-
getFlowsMenu(): Promise<{
|
|
324
|
-
name: string | null;
|
|
325
|
-
flows: {
|
|
326
|
-
name: string | null;
|
|
327
|
-
isSelected: boolean;
|
|
328
|
-
infos: string | null;
|
|
329
|
-
}[];
|
|
330
|
-
}[]>;
|
|
331
|
-
/**
|
|
332
|
-
* Get selected flow infos
|
|
333
|
-
*/
|
|
334
|
-
getSelectedFlowInfos(): Promise<Record<string, (string | null)[]>>;
|
|
335
|
-
/**
|
|
336
|
-
* Get selected flow phase harness
|
|
337
|
-
* @param phaseType Phase type to get
|
|
338
|
-
*/
|
|
339
|
-
getSelectedFlowPhase(phaseType: PhaseType): Promise<GioPolicyStudioDetailsPhaseHarness | undefined>;
|
|
340
|
-
/**
|
|
341
|
-
* Get Save button state
|
|
342
|
-
*/
|
|
343
|
-
getSaveButtonState(): Promise<'VISIBLE' | 'DISABLED' | 'SAVING'>;
|
|
344
|
-
/**
|
|
345
|
-
* Click on the "Save" button
|
|
346
|
-
*/
|
|
347
|
-
save(): Promise<void>;
|
|
348
|
-
private setFlowFormDialog;
|
|
349
|
-
setFlowExecutionConfig(flowExecution: FlowExecution): Promise<void>;
|
|
350
|
-
getSearchInput(): Promise<MatInputHarness>;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
declare class GioPolicyGroupStudioHarness extends ComponentHarness {
|
|
354
|
-
static hostSelector: string;
|
|
355
|
-
private phaseHarness;
|
|
356
|
-
/**
|
|
357
|
-
* Get Policy Group phase harness
|
|
358
|
-
*/
|
|
359
|
-
getPolicyGroupPhase(): Promise<GioPolicyStudioDetailsPhaseHarness>;
|
|
360
|
-
clickAddStep(index: number): Promise<void>;
|
|
361
|
-
/**
|
|
362
|
-
* Add a step to a policy-group
|
|
363
|
-
* @param index Index where to add the step. (Add button index)
|
|
364
|
-
* @param stepConfig Step to add
|
|
365
|
-
*/
|
|
366
|
-
addStep(index: number, stepConfig: {
|
|
367
|
-
policyName: string;
|
|
368
|
-
} & StepForm): Promise<void>;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
export { GioPolicyGroupStudioHarness, GioPolicyStudioHarness, POLICIES_V4_UNREGISTERED_ICON, fakeAllPolicies, fakeBestMatchFlowExecution, fakeChannelFlow, fakeConditionedChannelFlow, fakeConditionedHttpFlow, fakeDefaultFlowExecution, fakeHTTPGetMessageEntrypoint, fakeHTTPPostMessageEntrypoint, fakeHTTPProxyEndpoint, fakeHTTPProxyEntrypoint, fakeHttpFlow, fakeJsonToXmlStep, fakeKafkaMessageEndpoint, fakeKafkaNativeEndpoint, fakeKafkaNativeEntrypoint, fakeMockMessageEndpoint, fakeNativeFlow, fakePlan, fakeRateLimitStep, fakeSSEMessageEntrypoint, fakeSharedPolicyGroupPolicyStep, fakeTestPolicy, fakeTestPolicyStep, fakeWebhookMessageEntrypoint, fakeWebsocketMessageEntrypoint };
|
|
4
|
+
/// <amd-module name="@gravitee/ui-policy-studio-angular/testing" />
|
|
5
|
+
export * from './public-testing-api';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
export declare class GioPolicyStudioDetailsHarness extends ComponentHarness {
|
|
3
|
+
static hostSelector: string;
|
|
4
|
+
isDisplayEmptyFlow(): Promise<boolean>;
|
|
5
|
+
isDisabledFlow(): Promise<boolean>;
|
|
6
|
+
getFlowInfos(): Promise<Record<string, (string | null)[]>>;
|
|
7
|
+
matchText(matcher: RegExp): Promise<boolean>;
|
|
8
|
+
isReadOnly(): Promise<boolean>;
|
|
9
|
+
clickEditFlowBtn(): Promise<void>;
|
|
10
|
+
clickDeleteFlowBtn(): Promise<void>;
|
|
11
|
+
clickEnableDisableFlowBtn(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { GioPolicyStudioDetailsPhaseStepHarness } from '../flow-details-phase-step/gio-ps-flow-details-phase-step.harness';
|
|
3
|
+
import { StepForm } from '../step-form/gio-ps-step-form.harness';
|
|
4
|
+
export type PhaseType = 'INTERACT' | 'REQUEST' | 'RESPONSE' | 'PUBLISH' | 'SUBSCRIBE';
|
|
5
|
+
export type GioPolicyStudioDetailsPhaseHarnessFilters = BaseHarnessFilters & {
|
|
6
|
+
type?: PhaseType;
|
|
7
|
+
};
|
|
8
|
+
export type StepCard = {
|
|
9
|
+
name: string;
|
|
10
|
+
type: 'connector';
|
|
11
|
+
} | {
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
hasCondition: boolean;
|
|
15
|
+
type: 'step';
|
|
16
|
+
};
|
|
17
|
+
export declare class GioPolicyStudioDetailsPhaseHarness extends ComponentHarness {
|
|
18
|
+
static hostSelector: string;
|
|
19
|
+
private getHeaderName;
|
|
20
|
+
/**
|
|
21
|
+
* Get Harness with the given filter.
|
|
22
|
+
*
|
|
23
|
+
* @param options Options for filtering which input instances are considered a match.
|
|
24
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
25
|
+
*/
|
|
26
|
+
static with(options?: GioPolicyStudioDetailsPhaseHarnessFilters): HarnessPredicate<GioPolicyStudioDetailsPhaseHarness>;
|
|
27
|
+
getSteps(): Promise<StepCard[] | 'DISABLED'>;
|
|
28
|
+
getStep(index: number): Promise<GioPolicyStudioDetailsPhaseStepHarness>;
|
|
29
|
+
clickAddStep(index: number): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Add a step to a phase
|
|
32
|
+
* @param index Index where to add the step. (Add button index)
|
|
33
|
+
* @param stepConfig Step to add
|
|
34
|
+
*/
|
|
35
|
+
addStep(index: number, stepConfig: {
|
|
36
|
+
policyName: string;
|
|
37
|
+
} & StepForm): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Edit a step configuration
|
|
40
|
+
* @param index Index of the policy step to edit
|
|
41
|
+
* @param stepConfig Step configuration
|
|
42
|
+
*/
|
|
43
|
+
editStep(index: number, stepConfig: StepForm): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Delete a step
|
|
46
|
+
* @param index Index of the policy step to delete
|
|
47
|
+
*/
|
|
48
|
+
deleteStep(index: number): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Disable a step
|
|
51
|
+
* @param index Index of the policy step to disable
|
|
52
|
+
*/
|
|
53
|
+
disableEnableStep(index: number): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Duplicate a step
|
|
56
|
+
* @param index Index of the policy step to duplicate
|
|
57
|
+
*/
|
|
58
|
+
duplicateStep(index: number): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Move a step to the right
|
|
61
|
+
* @param index Index of the policy step to move
|
|
62
|
+
*/
|
|
63
|
+
moveStepRight(index: number): Promise<void>;
|
|
64
|
+
/**
|
|
65
|
+
* Move a step to the left
|
|
66
|
+
* @param index Index of the policy step to move
|
|
67
|
+
*/
|
|
68
|
+
moveStepLeft(index: number): Promise<void>;
|
|
69
|
+
}
|
package/testing/lib/components/flow-details-phase-step/gio-ps-flow-details-phase-step.harness.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
export type GioPolicyStudioDetailsPhaseStepHarnessFilters = BaseHarnessFilters;
|
|
3
|
+
export declare class GioPolicyStudioDetailsPhaseStepHarness extends ComponentHarness {
|
|
4
|
+
static hostSelector: string;
|
|
5
|
+
/**
|
|
6
|
+
* Get Harness with the given filter.
|
|
7
|
+
*
|
|
8
|
+
* @param options Options for filtering which input instances are considered a match.
|
|
9
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
10
|
+
*/
|
|
11
|
+
static with(options?: GioPolicyStudioDetailsPhaseStepHarnessFilters): HarnessPredicate<GioPolicyStudioDetailsPhaseStepHarness>;
|
|
12
|
+
getName(): Promise<string>;
|
|
13
|
+
getDescription(): Promise<string | undefined>;
|
|
14
|
+
getInfoMessage(): Promise<string | undefined>;
|
|
15
|
+
clickOnEdit(): Promise<void>;
|
|
16
|
+
clickOnDelete(): Promise<void>;
|
|
17
|
+
clickOnDisableEnable(): Promise<void>;
|
|
18
|
+
clickOnDuplicate(): Promise<void>;
|
|
19
|
+
clickOnMoveRight(): Promise<void>;
|
|
20
|
+
clickOnMoveLeft(): Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
import { FlowMode } from '../../models';
|
|
3
|
+
export declare class GioPolicyStudioFlowExecutionFormDialogHarness extends ComponentHarness {
|
|
4
|
+
static hostSelector: string;
|
|
5
|
+
private getSaveBtn;
|
|
6
|
+
private getCancelBtn;
|
|
7
|
+
setFlowFormValues(flowExecution: {
|
|
8
|
+
mode?: FlowMode;
|
|
9
|
+
matchRequired?: boolean;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
save(): Promise<void>;
|
|
12
|
+
cancel(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
export type GioPolicyStudioFlowMessageHarnessData = {
|
|
3
|
+
name: string;
|
|
4
|
+
channelOperator: string;
|
|
5
|
+
channel: string;
|
|
6
|
+
entrypoints: string[];
|
|
7
|
+
operations: string[];
|
|
8
|
+
condition: string;
|
|
9
|
+
};
|
|
10
|
+
export declare class GioPolicyStudioFlowMessageFormDialogHarness extends ComponentHarness {
|
|
11
|
+
static hostSelector: string;
|
|
12
|
+
private getSaveBtn;
|
|
13
|
+
private getCancelBtn;
|
|
14
|
+
private nameInput;
|
|
15
|
+
private channelOperatorInput;
|
|
16
|
+
private channelInput;
|
|
17
|
+
private operationsInput;
|
|
18
|
+
private entrypointsInput;
|
|
19
|
+
private conditionInput;
|
|
20
|
+
setFlowFormValues(flow: {
|
|
21
|
+
name?: string;
|
|
22
|
+
channelOperator?: string;
|
|
23
|
+
channel?: string;
|
|
24
|
+
operations?: string[];
|
|
25
|
+
entrypoints?: string[];
|
|
26
|
+
condition?: string;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
getName(): Promise<string>;
|
|
29
|
+
getChannelOperator(): Promise<string>;
|
|
30
|
+
getChannel(): Promise<string>;
|
|
31
|
+
getOperations(): Promise<string>;
|
|
32
|
+
getEntrypoints(): Promise<string>;
|
|
33
|
+
getCondition(): Promise<string>;
|
|
34
|
+
save(): Promise<void>;
|
|
35
|
+
cancel(): Promise<void>;
|
|
36
|
+
getFormValues(): Promise<GioPolicyStudioFlowMessageHarnessData>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
export type GioPolicyStudioFlowNativeHarnessData = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export declare class GioPolicyStudioFlowNativeFormDialogHarness extends ComponentHarness {
|
|
6
|
+
static hostSelector: string;
|
|
7
|
+
private getSaveBtn;
|
|
8
|
+
private getCancelBtn;
|
|
9
|
+
private nameInput;
|
|
10
|
+
setFlowFormValues(flow: {
|
|
11
|
+
name?: string;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
getFlowFormValues(): Promise<GioPolicyStudioFlowNativeHarnessData>;
|
|
14
|
+
getFlowName(): Promise<string>;
|
|
15
|
+
save(): Promise<void>;
|
|
16
|
+
cancel(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
export type GioPolicyStudioFlowProxyHarnessData = {
|
|
3
|
+
name: string;
|
|
4
|
+
pathOperator: string;
|
|
5
|
+
path: string;
|
|
6
|
+
methods: string[];
|
|
7
|
+
condition: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class GioPolicyStudioFlowProxyFormDialogHarness extends ComponentHarness {
|
|
10
|
+
static hostSelector: string;
|
|
11
|
+
private getSaveBtn;
|
|
12
|
+
private getCancelBtn;
|
|
13
|
+
private nameInput;
|
|
14
|
+
private pathOperatorInput;
|
|
15
|
+
private pathInput;
|
|
16
|
+
private methodsInput;
|
|
17
|
+
private conditionInput;
|
|
18
|
+
setFlowFormValues(flow: {
|
|
19
|
+
name?: string;
|
|
20
|
+
pathOperator?: string;
|
|
21
|
+
path?: string;
|
|
22
|
+
methods?: string[];
|
|
23
|
+
condition?: string;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
getFlowFormValues(): Promise<GioPolicyStudioFlowProxyHarnessData>;
|
|
26
|
+
getFlowName(): Promise<string>;
|
|
27
|
+
getFlowPath(): Promise<string>;
|
|
28
|
+
getPathOperator(): Promise<string>;
|
|
29
|
+
getMethods(): Promise<string[]>;
|
|
30
|
+
getCondition(): Promise<string>;
|
|
31
|
+
save(): Promise<void>;
|
|
32
|
+
cancel(): Promise<void>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentHarness } from '@angular/cdk/testing';
|
|
2
|
+
import { DivHarness } from '@gravitee/ui-particles-angular/testing';
|
|
3
|
+
import { MatInputHarness } from '@angular/material/input/testing';
|
|
4
|
+
export declare class GioPolicyStudioFlowsMenuHarness extends ComponentHarness {
|
|
5
|
+
static hostSelector: string;
|
|
6
|
+
private locateFlowsGroups;
|
|
7
|
+
private locateFlowByText;
|
|
8
|
+
locateGroupByText: (text: string | RegExp) => import("@angular/cdk/harness-environment.d-4d615248").A<DivHarness | null>;
|
|
9
|
+
private locateSelectedFlow;
|
|
10
|
+
getAllFlowsGroups(): Promise<{
|
|
11
|
+
name: string | null;
|
|
12
|
+
flows: {
|
|
13
|
+
name: string | null;
|
|
14
|
+
isSelected: boolean;
|
|
15
|
+
infos: string | null;
|
|
16
|
+
hasCondition: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
}[]>;
|
|
19
|
+
getSelectedFlow(): Promise<{
|
|
20
|
+
name: string | null;
|
|
21
|
+
} | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Select a flow by it's text content
|
|
24
|
+
*/
|
|
25
|
+
selectFlow(flowText: string | RegExp): Promise<void>;
|
|
26
|
+
addFlow(groupName: string | RegExp): Promise<void>;
|
|
27
|
+
isReadOnly(): Promise<boolean>;
|
|
28
|
+
openFlowExecutionConfig(): Promise<void>;
|
|
29
|
+
clickDuplicateFlowBtn(flowText: string | RegExp): Promise<void>;
|
|
30
|
+
getSearchInput(): Promise<MatInputHarness>;
|
|
31
|
+
}
|