From cd3261f0e321b138cf8a549ff95b05b01185953f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Poyraz=20K=C3=BC=C3=A7=C3=BCkarslan?= <83272398+PoyrazK@users.noreply.github.com> Date: Thu, 7 May 2026 19:39:25 +0300 Subject: [PATCH] test: Verify createClient works with direct opts.APIKey --- cmd/cloud/rbac_cli_verify_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cmd/cloud/rbac_cli_verify_test.go diff --git a/cmd/cloud/rbac_cli_verify_test.go b/cmd/cloud/rbac_cli_verify_test.go new file mode 100644 index 000000000..fbb910d90 --- /dev/null +++ b/cmd/cloud/rbac_cli_verify_test.go @@ -0,0 +1,17 @@ +package main + +import ( + "testing" +) + +func TestVerifyOptsKey(t *testing.T) { + // Direct test: set opts.APIKey and call createClient + opts.APIKey = "test-key" + opts.APIURL = "http://localhost:8080" + + client := createClient(opts) + if client == nil { + t.Fatal("createClient returned nil") + } + t.Log("createClient returned valid client") +}