diff --git a/libs/shared/console-shared/src/lib/cluster-settings/feature/cluster-resources-settings-feature/cluster-resources-settings-feature.spec.tsx b/libs/shared/console-shared/src/lib/cluster-settings/feature/cluster-resources-settings-feature/cluster-resources-settings-feature.spec.tsx index f7d5c1b4cf9..3301cb59364 100644 --- a/libs/shared/console-shared/src/lib/cluster-settings/feature/cluster-resources-settings-feature/cluster-resources-settings-feature.spec.tsx +++ b/libs/shared/console-shared/src/lib/cluster-settings/feature/cluster-resources-settings-feature/cluster-resources-settings-feature.spec.tsx @@ -1,7 +1,6 @@ -import { act, getByLabelText, getByText, render } from '__tests__/utils/setup-jest' +import { getByLabelText, getByText, render } from '__tests__/utils/setup-jest' import { wrapWithReactHookForm } from '__tests__/utils/wrap-with-react-hook-form' -import { CloudProviderEnum, KubernetesEnum } from 'qovery-typescript-axios' -import * as cloudProvidersDomain from '@qovery/domains/cloud-providers/feature' +import { CloudProviderEnum } from 'qovery-typescript-axios' import { type ClusterResourcesData } from '@qovery/shared/interfaces' import ClusterResourcesSettingsFeature from './cluster-resources-settings-feature' @@ -46,7 +45,6 @@ describe('ClusterResourcesSettingsFeature', () => { ) ) getByText(baseElement, 'Managed K8S (EKS)') - getByText(baseElement, 'BETA - Single EC2 (K3S)') }) it('should render one cluster type option if scw', () => { @@ -97,40 +95,4 @@ describe('ClusterResourcesSettingsFeature', () => { const checkbox = getByLabelText(baseElement, 'Managed K8S (EKS)') expect(checkbox).toBeChecked() }) - - it('should fetch the availabale Instance types at init and on change', async () => { - const useCloudProviderInstanceTypesMockSpy = jest.spyOn( - cloudProvidersDomain, - 'useCloudProviderInstanceTypes' - ) as jest.Mock - const { baseElement } = render( - wrapWithReactHookForm( - , - { - defaultValues, - } - ) - ) - - expect(useCloudProviderInstanceTypesMockSpy).toHaveBeenCalledWith({ - clusterType: 'MANAGED', - cloudProvider: 'AWS', - region: 'us-east-2', - }) - - const checkbox = getByText(baseElement, 'BETA - Single EC2 (K3S)') - await act(() => { - checkbox.click() - }) - - expect(useCloudProviderInstanceTypesMockSpy).toHaveBeenCalledWith({ - clusterType: KubernetesEnum.K3_S, - cloudProvider: 'AWS', - region: 'us-east-2', - }) - }) }) diff --git a/libs/shared/console-shared/src/lib/cluster-settings/feature/cluster-resources-settings-feature/cluster-resources-settings-feature.tsx b/libs/shared/console-shared/src/lib/cluster-settings/feature/cluster-resources-settings-feature/cluster-resources-settings-feature.tsx index 921b60243b8..2162d7a0f30 100644 --- a/libs/shared/console-shared/src/lib/cluster-settings/feature/cluster-resources-settings-feature/cluster-resources-settings-feature.tsx +++ b/libs/shared/console-shared/src/lib/cluster-settings/feature/cluster-resources-settings-feature/cluster-resources-settings-feature.tsx @@ -49,11 +49,6 @@ export function ClusterResourcesSettingsFeature(props: ClusterResourcesSettingsF if (props?.cloudProvider === CloudProviderEnum.AWS) { clusterTypeOptions = [ { label: 'Managed K8S (EKS)', value: KubernetesEnum.MANAGED, description: 'Multiple node cluster' }, - { - label: 'BETA - Single EC2 (K3S)', - value: KubernetesEnum.K3_S, - description: 'Single instance K3S cluster - only for dev purposes', - }, ] } else if (props?.cloudProvider === CloudProviderEnum.GCP) { clusterTypeOptions = [