Skip to content

Commit

Permalink
Add test to check for dc_util
Browse files Browse the repository at this point in the history
  • Loading branch information
WalBeh committed Oct 14, 2024
1 parent 93c256d commit 98d7a7d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from typing import Set
from unittest import mock

import aiohttp
import pytest
from kubernetes_asyncio.client import (
AppsV1Api,
Expand Down Expand Up @@ -1214,7 +1215,7 @@ async def test_create_minimal(self, faker, namespace, kopf_runner, api_client):
{f"crate-data-hot-{name}-0"},
)

async def test_termination_grace_period(
async def test_decommission_settings(
self, faker, namespace, kopf_runner, api_client
):
apps = AppsV1Api(api_client)
Expand Down Expand Up @@ -1636,3 +1637,11 @@ def test_get_cluster_resource_limits(node_spec, expected_limits_cpu):
get_cluster_resource_limits(node_spec, resource_type="cpu", fallback_key="cpus")
== expected_limits_cpu
)


@pytest.mark.asyncio
async def test_download_dc_util():
url = "https://cdn.crate.io/downloads/dc_util_x86_64"
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
assert response.status == 200, f"Expected status 200, got {response.status}"

0 comments on commit 98d7a7d

Please sign in to comment.