Automatically Skip integration tests if no REG_URL is set

This commit is contained in:
Samuel Lorch 2025-03-05 16:50:18 +01:00
parent b919c3e09d
commit 7ede26f1f4
2 changed files with 11 additions and 0 deletions

View file

@ -6,6 +6,10 @@ import (
)
func TestResourceCreate(t *testing.T) {
// Skip integration tests if no client is available
if client == nil {
t.SkipNow()
}
id, err := CreateResource(context.TODO(), client, "", "name", "username", "https://url.lan", "password123", "a password description")
if err != nil {
t.Fatalf("Creating Resource %v", err)