From 3285eb659f0349583a6cdd6b39fb201fc0ac1c6c Mon Sep 17 00:00:00 2001 From: Aram Akhavan Date: Fri, 24 Nov 2023 19:16:48 -0800 Subject: [PATCH] Fix some development issues --- .gitignore | 4 +++- webapp/backend/pkg/models/testdata/helper.go | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 6dad40c..edb4def 100644 --- a/.gitignore +++ b/.gitignore @@ -65,4 +65,6 @@ scrutiny_test.db scrutiny.yaml coverage.txt /config -/influxdb \ No newline at end of file +/influxdb +.angular +web.log \ No newline at end of file diff --git a/webapp/backend/pkg/models/testdata/helper.go b/webapp/backend/pkg/models/testdata/helper.go index 771557c..5e2c623 100644 --- a/webapp/backend/pkg/models/testdata/helper.go +++ b/webapp/backend/pkg/models/testdata/helper.go @@ -4,13 +4,14 @@ import ( "bytes" "encoding/json" "fmt" - "github.com/analogj/scrutiny/webapp/backend/pkg/models/collector" "io" "io/ioutil" "log" "net/http" "os" "time" + + "github.com/analogj/scrutiny/webapp/backend/pkg/models/collector" ) func main() { @@ -32,7 +33,7 @@ func main() { log.Fatalf("ERROR %v", err) } defer file.Close() - _, err = SendPostRequest("http://localhost:9090/api/devices/register", file) + _, err = SendPostRequest("http://localhost:8080/api/devices/register", file) if err != nil { log.Fatalf("ERROR %v", err) } @@ -46,7 +47,7 @@ func main() { log.Fatalf("ERROR %v", err) } - _, err = SendPostRequest(fmt.Sprintf("http://localhost:9090/api/device/%s/smart", diskId), smartDataReader) + _, err = SendPostRequest(fmt.Sprintf("http://localhost:8080/api/device/%s/smart", diskId), smartDataReader) if err != nil { log.Fatalf("ERROR %v", err) }