Skip to content

Instantly share code, notes, and snippets.

@xmonader
Created December 29, 2022 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xmonader/f72d782aa59b93015525147816bfe867 to your computer and use it in GitHub Desktop.
Save xmonader/f72d782aa59b93015525147816bfe867 to your computer and use it in GitHub Desktop.
out.txt
➜ terraform-provider-grid git:(development) ✗ go test -v ./pkg/...
=== RUN TestCreate
--- FAIL: TestCreate (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x630636]
goroutine 19 [running]:
testing.tRunner.func1.2({0x665b80, 0x884370})
/home/xmonader/go/src/testing/testing.go:1389 +0x24e
testing.tRunner.func1()
/home/xmonader/go/src/testing/testing.go:1392 +0x39f
panic({0x665b80, 0x884370})
/home/xmonader/go/src/runtime/panic.go:838 +0x207
github.com/golang/mock/gomock.(*Controller).finish(0xc0001fabd0, 0x0, {0x665b80, 0x884370})
/home/xmonader/go/pkg/mod/github.com/golang/mock@v1.6.0/gomock/controller.go:288 +0x50b
github.com/golang/mock/gomock.(*Controller).Finish(0x1?)
/home/xmonader/go/pkg/mod/github.com/golang/mock@v1.6.0/gomock/controller.go:269 +0x38
panic({0x665b80, 0x884370})
/home/xmonader/go/src/runtime/panic.go:838 +0x207
github.com/threefoldtech/terraform-provider-grid/pkg/deployer.TestCreate(0x0?)
/home/xmonader/wspace/terraform-provider-grid/pkg/deployer/deployer_test.go:95 +0x616
testing.tRunner(0xc000216820, 0x6c5d18)
/home/xmonader/go/src/testing/testing.go:1439 +0x102
created by testing.(*T).Run
/home/xmonader/go/src/testing/testing.go:1486 +0x35f
FAIL github.com/threefoldtech/terraform-provider-grid/pkg/deployer 0.015s
=== RUN TestState
--- PASS: TestState (0.00s)
PASS
ok github.com/threefoldtech/terraform-provider-grid/pkg/state 0.003s
? github.com/threefoldtech/terraform-provider-grid/pkg/subi [no test files]
=== RUN TestNewVMFromSchema
--- PASS: TestNewVMFromSchema (0.00s)
=== RUN TestGenerateVMWorkload
--- PASS: TestGenerateVMWorkload (0.00s)
=== RUN TestDictify
--- PASS: TestDictify (0.00s)
=== RUN TestValidate
--- PASS: TestValidate (0.72s)
=== RUN TestValidateFailure
=== RUN TestValidateFailure/Invalid_flist
=== RUN TestValidateFailure/Invalid_CPU
--- PASS: TestValidateFailure (0.13s)
--- PASS: TestValidateFailure/Invalid_flist (0.13s)
--- PASS: TestValidateFailure/Invalid_CPU (0.00s)
=== RUN TestNewVMFromWorkloads
2022/12/29 16:43:43 {Created:0 State:ok Error: Data:[123 34 105 100 34 58 34 34 44 34 105 112 34 58 34 34 44 34 121 103 103 95 105 112 34 58 34 58 58 47 54 52 34 125]}
--- PASS: TestNewVMFromWorkloads (0.00s)
=== RUN TestMatch
2022/12/29 16:43:43 {Created:0 State:ok Error: Data:[123 34 105 100 34 58 34 34 44 34 105 112 34 58 34 34 44 34 121 103 103 95 105 112 34 58 34 58 58 47 54 52 34 125]}
--- PASS: TestMatch (0.00s)
=== RUN TestDestroyedIP
2022/12/29 16:43:43 {Created:0 State:ok Error: Data:[123 34 105 100 34 58 34 34 44 34 105 112 34 58 34 34 44 34 121 103 103 95 105 112 34 58 34 58 58 47 54 52 34 125]}
--- PASS: TestDestroyedIP (0.00s)
=== RUN TestGetZDBData
2022/12/29 16:43:43 map[description:des ips:[::1 ::2] mode:user name:z namespace:ns1 password:pass port:9090 public:true size:1024]
--- PASS: TestGetZDBData (0.00s)
=== RUN TestGenerateZDBWorkload
--- PASS: TestGenerateZDBWorkload (0.00s)
=== RUN TestNewZDBFromWorkload
--- PASS: TestNewZDBFromWorkload (0.00s)
PASS
ok github.com/threefoldtech/terraform-provider-grid/pkg/workloads (cached)
FAIL
➜ terraform-provider-grid git:(development) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment