hunk.code_window: import { notifyError } from '@/portainer/services/notifications';
   import { KubernetesIngressConverter } from 'Kubernetes/ingress/converter';
   import { generateNewIngressesFromFormPaths } from '@/react/kubernetes/applications/CreateView/application-services/utils';
   import { KubernetesApplicationDeploymentTypes, KubernetesApplicationTypes } from 'Kubernetes/models/application/models/appConstants';
   class KubernetesApplicationService {
     /* #region  CONSTRUCTOR */
     /* @ngInject */
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit: import { KubernetesPod } from '../pod/models';
   import { KubernetesApplication } from '../models/application/models';
  
hunk.file_path: app/kubernetes/services/applicationService.js
hunk.type: replace
file: import { http, HttpResponse } from 'msw';
  
  export const azureHandlers = [
    http.get('/api/endpoints/:endpointId/azure/subscriptions', () =>
      HttpResponse.json({
        value: [
          {
            id: '/subscriptions/sub1',
            authorizationSource: 'RoleBased',
            subscriptionId: 'sub1',
            displayName: 'Portainer',
            state: 'Enabled',
          },
        ],
      })
    ),
    http.get(
      '/api/endpoints/:endpointId/azure/subscriptions/:subscriptionId/providers/Microsoft.ContainerInstance',
      ({ params }) =>
        HttpResponse.json({
          id: `/subscriptions/${params.subscriptionId}/providers/Microsoft.ContainerInstance`,
          namespace: 'Microsoft.ContainerInstance',
          resourceTypes: [
            {
              resourceType: 'containerGroups',
              locations: [
                'Australia East',
                'Australia Southeast',
                'Brazil South',
              ],
            },
            {
              resourceType: 'serviceAssociationLinks',
              locations: [
                'Korea Central',
                'North Central US',
                'North Europe',
                'Norway East',
                'South Africa North',
                'South Central US',
              ],
            },
            {
              resourceType: 'locations',
              locations: [],
            },
          ],
        })
    ),
    http.get(
      '/api/endpoints/:endpointId/azure/subscriptions/:subsriptionId/resourcegroups',
      ({ params }) =>
        HttpResponse.json({
          value: [
            {
              id: `/subscriptions/${params.subscriptionId}/resourceGroups/rg1`,
              name: 'rg1',
              location: 'southcentralus',
              properties: { provisioningState: 'Succeeded' },
            },
            {
              id: `/subscriptions/${params.subscriptionId}/resourceGroups/rg2`,
              name: 'rg2',
              location: 'southcentralus',
              properties: { provisioningState: 'Succeeded' },
            },
          ],
        })
    ),
  ];
  