mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-09-13 14:29:09 +00:00
Automatically Skip integration tests if no REG_URL is set
This commit is contained in:
parent
b919c3e09d
commit
7ede26f1f4
2 changed files with 11 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue