From 72a635acf428c40e5c1367d3410bcde58dc2b78e Mon Sep 17 00:00:00 2001 From: Sergio Prada Date: Mon, 9 Oct 2023 12:50:35 -0400 Subject: [PATCH] fix status for DEACTIVATING --- pyproject.toml | 2 +- src/metal_sdk/typings.py | 2 +- tests/test_metal.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c705c3a..e6c2fef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "metal_sdk" -version = "2.2.1" +version = "2.2.2" authors = [ { name="Metal Technologies Inc", email="james@getmetal.io" }, ] diff --git a/src/metal_sdk/typings.py b/src/metal_sdk/typings.py index 77a2994..a8f1370 100644 --- a/src/metal_sdk/typings.py +++ b/src/metal_sdk/typings.py @@ -11,7 +11,7 @@ class TuneLabel(Enum): class IndexStatus(Enum): - ARCHIVED = "ARCHIVED" + DEACTIVATING = "DEACTIVATING" UNARCHIVED = "UNARCHIVED" diff --git a/tests/test_metal.py b/tests/test_metal.py index eba00ce..160b02e 100644 --- a/tests/test_metal.py +++ b/tests/test_metal.py @@ -512,7 +512,7 @@ def test_metal_add_index_with_payload(self): def test_metal_update_index_with_payload(self): mock_index_id = "test_index" payload = { - "status": "ARCHIVED", + "status": "DEACTIVATING", } metal = Metal(API_KEY, CLIENT_ID) @@ -522,4 +522,4 @@ def test_metal_update_index_with_payload(self): self.assertEqual(metal.request.call_count, 1) self.assertEqual(metal.request.call_args[0][0], "put") self.assertEqual(metal.request.call_args[0][1], "v1/indexes/test_index") - self.assertEqual(metal.request.call_args[1]["json"]["status"], "ARCHIVED") + self.assertEqual(metal.request.call_args[1]["json"]["status"], "DEACTIVATING")