From eec3f2722406d1d60333ce73b7be202846b95d6c Mon Sep 17 00:00:00 2001 From: Adyanth Hosavalike Date: Tue, 11 Apr 2023 00:33:13 -0700 Subject: [PATCH] :white_check_mark: TestDeleteCloudflareTunnel --- controllers/cloudflare_api_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/controllers/cloudflare_api_test.go b/controllers/cloudflare_api_test.go index 483297c..af04f47 100644 --- a/controllers/cloudflare_api_test.go +++ b/controllers/cloudflare_api_test.go @@ -194,3 +194,11 @@ func TestCreateCloudflareTunnel(t *testing.T) { } } } + +func TestDeleteCloudflareTunnel(t *testing.T) { + c, cc := setup(t) + err := c.DeleteCloudflareTunnel() + if assert.NoError(t, err, "expected no error") { + assert.Equal(t, true, cc.deleted) + } +}