Skip to content

Commit

Permalink
feat(pci.kubernetes): fix build fail
Browse files Browse the repository at this point in the history
ref: TAPC-34
Signed-off-by: Eric Ciccotti <[email protected]>
  • Loading branch information
Eric Ciccotti committed Dec 16, 2024
1 parent 181e6f8 commit 6914dd0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ import {
removeOidcProvider,
resetKubeConfig,
terminateCluster,
TOidcProvider,
updateKubePolicy,
updateKubernetesCluster,
updateKubeVersion,
updateOidcProvider,
} from '@/api/data/kubernetes';
import { TKube } from '@/types';
import { TKube, TOidcProvider } from '@/types';

describe('getKubernetesCluster', () => {
it('fetches kubernetes cluster successfully', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { render, screen, fireEvent } from '@testing-library/react';
import { describe, it, vi, expect } from 'vitest';
import {
InputFormField,
TinputFormFieldProps,
TInputFormFieldProps,
} from './InputFormField.component';

vi.mock('@ovhcloud/ods-components/react', () => ({
Expand All @@ -25,7 +25,7 @@ vi.mock('@ovhcloud/ods-components/react', () => ({
}));

describe('InputFormField', () => {
const defaultProps: TinputFormFieldProps = {
const defaultProps: TInputFormFieldProps = {
name: 'testField',
value: 'Initial value',
placeholder: 'Enter text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export function OidcProviderModal() {
)}
</OsdsText>

{['issuerUrl', 'clientId'].map((fieldName, index) => {
{['issuerUrl', 'clientId'].map((fieldName) => {
const transformedFieldName = transformKey(fieldName);
return (
<RenderFormField
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { render, screen, fireEvent } from '@testing-library/react';
import { describe, it, vi, expect } from 'vitest';
import {
TextAreaFormField,
TtextAreaFormFieldProps,
TTextAreaFormFieldProps,
} from './TextAreaFormField.component';

vi.mock('@ovhcloud/ods-components/react', () => ({
Expand All @@ -20,7 +20,7 @@ vi.mock('@ovhcloud/ods-components/react', () => ({
}));

describe('TextAreaFormField', () => {
const defaultProps: TtextAreaFormFieldProps = {
const defaultProps: TTextAreaFormFieldProps = {
name: 'testField',
value: 'Initial value',
placeholder: 'Enter text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { vi } from 'vitest';
import { UseQueryResult } from '@tanstack/react-query';
import ClusterAccessAndSecurity from '@/components/service/ClusterAccessAndSecurity.component';
import { wrapper } from '@/wrapperRenders';
import { TKube } from '@/types';
import { TKube, TOidcProvider } from '@/types';
import * as useKubernetesModule from '@/api/hooks/useKubernetes';
import { TOidcProvider } from '@/api/data/kubernetes';

describe('ClusterAccessAndSecurity', () => {
it('renders access and security title with correct text', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { fireEvent, render } from '@testing-library/react';
import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
import RemoveOIDCProvider from '@/pages/oidc-provider/remove/RemoveOIDCProvider.page';
import { wrapper } from '@/wrapperRenders';
import { TOidcProvider } from '@/types';
import * as useKubernetesModule from '@/api/hooks/useKubernetes';
import { TOidcProvider } from '@/api/data/kubernetes';

type RemoveOIDCProviderPageReturnType = UseMutationResult<
never,
Expand Down

0 comments on commit 6914dd0

Please sign in to comment.