@gravitee/ui-policy-studio-angular 17.2.0 → 17.3.0

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.
@@ -122,6 +122,7 @@ function fakeNativeFlow(modifier) {
122
122
  interact: [],
123
123
  subscribe: [],
124
124
  publish: [],
125
+ entrypointConnect: [],
125
126
  enabled: true,
126
127
  };
127
128
  if (isFunction(modifier)) {
@@ -354,7 +355,7 @@ function fakeTestPolicy(modifier) {
354
355
  HTTP_PROXY: ['REQUEST', 'RESPONSE'],
355
356
  LLM_PROXY: ['REQUEST', 'RESPONSE'],
356
357
  MCP_PROXY: ['REQUEST', 'RESPONSE'],
357
- NATIVE_KAFKA: ['CONNECT', 'INTERACT', 'PUBLISH', 'SUBSCRIBE'],
358
+ NATIVE_KAFKA: ['INTERACT', 'PUBLISH', 'SUBSCRIBE', 'ENTRYPOINT_CONNECT'],
358
359
  },
359
360
  };
360
361
  if (isFunction(modifier)) {
@@ -735,7 +736,7 @@ function fakeKafkaNativeEntrypoint(modifier) {
735
736
  const base = {
736
737
  type: 'native-kafka',
737
738
  name: 'Client',
738
- supportedModes: ['INTERACT', 'PUBLISH', 'SUBSCRIBE'],
739
+ supportedModes: ['INTERACT', 'PUBLISH', 'SUBSCRIBE', 'ENTRYPOINT_CONNECT'],
739
740
  icon: 'gio:kafka',
740
741
  };
741
742
  if (isFunction(modifier)) {
@@ -750,7 +751,7 @@ function fakeKafkaNativeEndpoint(modifier) {
750
751
  const base = {
751
752
  type: 'native-kafka',
752
753
  name: 'Broker',
753
- supportedModes: ['INTERACT', 'PUBLISH', 'SUBSCRIBE'],
754
+ supportedModes: ['INTERACT', 'PUBLISH', 'SUBSCRIBE', 'ENTRYPOINT_CONNECT'],
754
755
  icon: 'gio:kafka',
755
756
  };
756
757
  if (isFunction(modifier)) {
@@ -1530,6 +1531,7 @@ const TYPE_TO_TEXT = {
1530
1531
  RESPONSE: 'Response phase',
1531
1532
  PUBLISH: 'Publish phase',
1532
1533
  SUBSCRIBE: 'Subscribe phase',
1534
+ ENTRYPOINT_CONNECT: 'Entrypoint Connect phase',
1533
1535
  };
1534
1536
  class GioPolicyStudioDetailsPhaseHarness extends ComponentHarness {
1535
1537
  constructor() {
@@ -1964,9 +1966,14 @@ class GioPolicyStudioHarness extends ComponentHarness {
1964
1966
  * @param phaseType Phase type to get
1965
1967
  */
1966
1968
  async getSelectedFlowPhase(phaseType) {
1967
- if (phaseType === 'PUBLISH' || phaseType === 'SUBSCRIBE') {
1968
- const matTabsHarness = await this.locatorFor(MatTabGroupHarness.with({ selector: '.content__tabs' }))();
1969
- await matTabsHarness.selectTab({ label: 'Event messages' });
1969
+ const matTabsHarness = await this.locatorForOptional(MatTabGroupHarness.with({ selector: '.content__tabs' }))();
1970
+ if (matTabsHarness) {
1971
+ if (phaseType === 'PUBLISH' || phaseType === 'SUBSCRIBE') {
1972
+ await matTabsHarness.selectTab({ label: 'Event messages' });
1973
+ }
1974
+ else if (phaseType === 'INTERACT' || phaseType === 'ENTRYPOINT_CONNECT') {
1975
+ await matTabsHarness.selectTab({ label: 'Global' });
1976
+ }
1970
1977
  }
1971
1978
  const steps = await this.phaseHarness(phaseType);
1972
1979
  return steps ? steps : undefined;