Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jinnovation committed Jun 6, 2024
1 parent 810072e commit 1072d7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions tests/integration/test-integration.el
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@
(async-wait (kele--cache-update kele--global-discovery-cache)))
(it "errors if namespace filtering requested for non-namespaced resource"
(expect (kele--fetch-resource-names (kele--gvk-create
:group nil
:version "v1"
:kind "namespaces")
:context "kind-kele-test-cluster0"
:namespace "kube-system")
:to-throw 'user-error))
(it "fetches core API names"
(expect (kele--fetch-resource-names (kele--gvk-create
:group nil
:version "v1"
:kind "namespaces")
:context "kind-kele-test-cluster0")
Expand Down
9 changes: 2 additions & 7 deletions tests/unit/test-kele.el
Original file line number Diff line number Diff line change
Expand Up @@ -670,15 +670,10 @@ metadata:
(describe "kele--gvk"
(describe "kele--string"
(it "formats w/o group"
(expect (kele--string (kele--gvk-create
:group nil
:version "v1"
:kind "Pod"))
(expect (kele--string (kele--gvk-create :version "v1" :kind "Pod"))
:to-equal "v1.Pod"))
(it "formats w/ group"
(expect (kele--string (kele--gvk-create :group "group"
:version "v1"
:kind "Pod"))
(expect (kele--string (kele--gvk-create :group "group" :version "v1" :kind "Pod"))
:to-equal "group/v1.Pod")))
(describe "kele--gv-string"
(it "properly handles 'core API', i.e. nil group"
Expand Down

0 comments on commit 1072d7c

Please sign in to comment.