Skip to content

Commit

Permalink
add env for testing credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
lucamrgs committed Oct 23, 2024
1 parent 9a2b0b8 commit e407f4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unittest/reporters/thehive/thehive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import (
"fmt"
"soarca/internal/reporter/downstream_reporter/thehive"
"soarca/internal/reporter/downstream_reporter/thehive/connector"
"soarca/utils"
"testing"
)

func TestTheHiveConnection(t *testing.T) {
thr := thehive.New(connector.New("http://localhost:9000/api/v1", "JqZEDAR2vYbITI7ls45gm6WI+F8yuebZ"))
thr := thehive.New(connector.New(utils.GetEnv("THEHIVE_TEST_API_TOKEN", ""), utils.GetEnv("THEHIVE_TEST_API_BASE_URI", "")))
str := thr.ConnectorTest()
fmt.Println(str)
t.Fail()
Expand Down

0 comments on commit e407f4b

Please sign in to comment.