fix(docker): bump docker max api version [BE-12399] (#1392)

This commit is contained in:
Devon Steenberg
2025-11-18 11:27:16 +13:00
committed by GitHub
parent 99d996dde9
commit e831971dd1
73 changed files with 82 additions and 86 deletions
@@ -126,7 +126,7 @@ describe('initial loading', () => {
http.get('/api/endpoints/:id/docker/version', () => {
versionFetched = true;
return HttpResponse.json({
ApiVersion: '1.41',
ApiVersion: '1.44',
});
})
);
@@ -417,7 +417,7 @@ function setupMswHandlers({
shouldReturnEnv = true,
shouldReturnSchema = true,
envType = EnvironmentType.Docker,
apiVersion = 1.41,
apiVersion = 1.44,
schema = { type: 'object', properties: {} },
stackUpdateResponse,
}: {
@@ -38,7 +38,7 @@ vi.mock('@uirouter/react', async (importOriginal: () => Promise<object>) => ({
const defaultProps = {
stackType: StackType.DockerCompose,
composeSyntaxMaxVersion: 3,
apiVersion: 1.41,
apiVersion: 1.44,
envType: EnvironmentType.Docker,
schema: { type: 'object' } as JSONSchema7,
isOrphaned: false,
@@ -155,7 +155,7 @@ describe('conditional rendering - Prune services field', () => {
it('should show Prune field for DockerCompose with API >= 1.27', async () => {
renderComponent({
stackType: StackType.DockerCompose,
apiVersion: 1.41,
apiVersion: 1.44,
});
await waitFor(() => {
@@ -184,7 +184,7 @@ describe('conditional rendering - Prune services field', () => {
it('should hide Prune field for Kubernetes stack', () => {
renderComponent({
stackType: StackType.Kubernetes,
apiVersion: 1.41,
apiVersion: 1.44,
});
expect(screen.queryByTestId('stack-prune-switch')).not.toBeInTheDocument();
@@ -274,7 +274,7 @@ describe('form field updates', () => {
renderComponent(
{
stackType: StackType.DockerSwarm,
apiVersion: 1.41,
apiVersion: 1.44,
},
{ onSubmit }
);
@@ -455,7 +455,7 @@ describe('authorization', () => {
renderComponent(
{
stackType: StackType.DockerSwarm,
apiVersion: 1.41,
apiVersion: 1.44,
},
{ user: unauthorizedUser }
);