mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-05-13 02:58:21 +00:00
Compare commits
No commits in common. "7a23a1aeea2f8357707a379befd306a2705c2e12" and "b919c3e09d516b59fab63d14f7581d8cc343fa46" have entirely different histories.
7a23a1aeea
...
b919c3e09d
3 changed files with 16 additions and 27 deletions
4
.github/workflows/.go.yml
vendored
4
.github/workflows/.go.yml
vendored
|
@ -2,9 +2,9 @@ name: Go
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, v5]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, v5]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
|
@ -6,10 +6,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestResourceCreate(t *testing.T) {
|
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")
|
id, err := CreateResource(context.TODO(), client, "", "name", "username", "https://url.lan", "password123", "a password description")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Creating Resource %v", err)
|
t.Fatalf("Creating Resource %v", err)
|
||||||
|
|
|
@ -15,13 +15,6 @@ var client *api.Client
|
||||||
|
|
||||||
func TestMain(m *testing.M) {
|
func TestMain(m *testing.M) {
|
||||||
url := os.Getenv("REG_URL")
|
url := os.Getenv("REG_URL")
|
||||||
|
|
||||||
// If we don't have a URL for Creating a user, Skip all integration tests by not Providing a client
|
|
||||||
if url == "" {
|
|
||||||
fmt.Println("REG_URL Env Variable Empty, Skipping integration tests")
|
|
||||||
os.Exit(m.Run())
|
|
||||||
}
|
|
||||||
|
|
||||||
fmt.Printf("Registering with url: %v\n", url)
|
fmt.Printf("Registering with url: %v\n", url)
|
||||||
userID, token, err := ParseInviteUrl(url)
|
userID, token, err := ParseInviteUrl(url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue