From e099636446a5722abf74d167fa5dc337682c315c Mon Sep 17 00:00:00 2001 From: Bastian Hofmann Date: Mon, 18 Mar 2024 10:48:21 +0100 Subject: [PATCH] Release 0.8.2 with Qdrant 1.8.2 (#154) * Release 0.8.2 with Qdrant 1.8.2 * Fix integration tests * Fix integration tests --- CHANGELOG.md | 4 ++++ charts/qdrant/CHANGELOG.md | 4 ++-- charts/qdrant/Chart.yaml | 6 +++--- test/integration/api_key.bats | 11 ++++++++--- test/integration/read_only_api_key.bats | 11 ++++++++--- 5 files changed, 25 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e9f2db..9213df0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [qdrant-0.8.2](https://github.com/qdrant/qdrant-helm/tree/qdrant-0.8.2) (2024-03-18) + +- Update Qdrant to v1.8.2 + ## [qdrant-0.8.1](https://github.com/qdrant/qdrant-helm/tree/qdrant-0.8.1) (2024-03-09) - Update Qdrant to v1.8.1 diff --git a/charts/qdrant/CHANGELOG.md b/charts/qdrant/CHANGELOG.md index 404b697..a45896a 100644 --- a/charts/qdrant/CHANGELOG.md +++ b/charts/qdrant/CHANGELOG.md @@ -1,5 +1,5 @@ # Changelog -## [qdrant-0.8.1](https://github.com/qdrant/qdrant-helm/tree/qdrant-0.8.1) (2024-03-09) +## [qdrant-0.8.2](https://github.com/qdrant/qdrant-helm/tree/qdrant-0.8.2) (2024-03-18) -- Update Qdrant to v1.8.1 \ No newline at end of file +- Update Qdrant to v1.8.2 \ No newline at end of file diff --git a/charts/qdrant/Chart.yaml b/charts/qdrant/Chart.yaml index d35172b..d474955 100644 --- a/charts/qdrant/Chart.yaml +++ b/charts/qdrant/Chart.yaml @@ -13,10 +13,10 @@ maintainers: url: https://github.com/qdrant icon: https://qdrant.github.io/qdrant-helm/logo_with_text.svg type: application -version: 0.8.1 -appVersion: v1.8.1 +version: 0.8.2 +appVersion: v1.8.2 annotations: artifacthub.io/category: database artifacthub.io/changes: | - kind: added - description: Update Qdrant to v1.8.1 \ No newline at end of file + description: Update Qdrant to v1.8.2 \ No newline at end of file diff --git a/test/integration/api_key.bats b/test/integration/api_key.bats index 4998111..305c7f5 100644 --- a/test/integration/api_key.bats +++ b/test/integration/api_key.bats @@ -9,7 +9,12 @@ setup_file() { [[ "${output}" =~ .*\"status\":\"ok\".* ]] } -@test "api key authentication fails with key" { - run kubectl exec -n default curl -- curl -s http://qdrant.qdrant-helm-integration:6333/collections - [ "${output}" = "Invalid api-key" ] +@test "api key authentication fails with no key" { + run kubectl exec -n default curl -- curl -s -w " - %{response_code}" http://qdrant.qdrant-helm-integration:6333/collections + [ "${output}" = "Must provide an API key or an Authorization bearer token - 403" ] +} + +@test "api key authentication fails with wrong key" { + run kubectl exec -n default curl -- curl -s -w " - %{response_code}" http://qdrant.qdrant-helm-integration:6333/collections -H 'api-key: invalid' + [ "${output}" = "Invalid API key or JWT token - 403" ] } diff --git a/test/integration/read_only_api_key.bats b/test/integration/read_only_api_key.bats index 6dfade3..63f719e 100644 --- a/test/integration/read_only_api_key.bats +++ b/test/integration/read_only_api_key.bats @@ -9,7 +9,12 @@ setup_file() { [[ "${output}" =~ .*\"status\":\"ok\".* ]] } -@test "read-only api key authentication fails with key" { - run kubectl exec -n default curl -- curl -s http://qdrant.qdrant-helm-integration:6333/collections - [ "${output}" = "Invalid api-key" ] +@test "read-only api key authentication fails with no key" { + run kubectl exec -n default curl -- curl -s -w " - %{response_code}" http://qdrant.qdrant-helm-integration:6333/collections + [ "${output}" = "Must provide an API key or an Authorization bearer token - 403" ] +} + +@test "read-only api key authentication fails with wrong key" { + run kubectl exec -n default curl -- curl -s -w " - %{response_code}" http://qdrant.qdrant-helm-integration:6333/collections -H 'api-key: invalid' + [ "${output}" = "Invalid API key or JWT token - 403" ] }