Last active
February 28, 2020 17:49
-
-
Save mdjasper/cd9de1c24132827cacb8498fc4a81f3f to your computer and use it in GitHub Desktop.
terraform pulsar provider issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setting up tf and exporting service url | |
10:35:48 › tfenv use 0.12.20 | |
[INFO] Switching to v0.12.20 | |
[INFO] Switching completed | |
10:37:29 › export WEB_SERVICE_URL=http://pulsar.pulsar.docker:8080 | |
# run the test | |
10:37:35 › make testacc | |
==> Checking that code complies with gofmt requirements... | |
TF_ACC=1 go test ./... -v -count 3 -timeout 120m | |
? github.com/streamnative/terraform-provider-pulsar [no test files] | |
=== RUN TestProvider | |
--- PASS: TestProvider (0.00s) | |
=== RUN TestProvider_impl | |
--- PASS: TestProvider_impl (0.00s) | |
=== RUN TestCluster | |
--- FAIL: TestCluster (0.02s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_CLUSTER: Put http://localhost:8080/admin/v2/clusters/eternals: dial tcp [::1]:8080: connect: connection refused | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test999800804/main.tf line 6: | |
(source code not available) | |
=== RUN TestNamespace | |
--- FAIL: TestNamespace (0.02s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_CLUSTER: Put http://localhost:8080/admin/v2/clusters/skrulls: dial tcp [::1]:8080: connect: connection refused | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test447337654/main.tf line 6: | |
(source code not available) | |
=== RUN TestTenant | |
--- FAIL: TestTenant (0.01s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_TENANT: Put http://localhost:8080/admin/v2/tenants/thanos: dial tcp [::1]:8080: connect: connection refused | |
request_input: {thanos [] []} | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test417242968/main.tf line 6: | |
(source code not available) | |
=== RUN TestTopic | |
--- FAIL: TestTopic (0.01s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_TOPIC: Put http://localhost:8080/admin/v2/persistent/public/default/partition-topic/partitions: dial tcp [::1]:8080: connect: connection refused | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test095805514/main.tf line 6: | |
(source code not available) | |
=== RUN TestProvider | |
--- PASS: TestProvider (0.00s) | |
=== RUN TestProvider_impl | |
--- PASS: TestProvider_impl (0.00s) | |
=== RUN TestCluster | |
--- FAIL: TestCluster (0.02s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_CLUSTER: Put http://localhost:8080/admin/v2/clusters/eternals: dial tcp [::1]:8080: connect: connection refused | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test326687756/main.tf line 6: | |
(source code not available) | |
=== RUN TestNamespace | |
--- FAIL: TestNamespace (0.02s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_CLUSTER: Put http://localhost:8080/admin/v2/clusters/skrulls: dial tcp [::1]:8080: connect: connection refused | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test159973662/main.tf line 6: | |
(source code not available) | |
=== RUN TestTenant | |
--- FAIL: TestTenant (0.01s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_TENANT: Put http://localhost:8080/admin/v2/tenants/thanos: dial tcp [::1]:8080: connect: connection refused | |
request_input: {thanos [] []} | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test917481984/main.tf line 6: | |
(source code not available) | |
=== RUN TestTopic | |
--- FAIL: TestTopic (0.01s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_TOPIC: Put http://localhost:8080/admin/v2/persistent/public/default/partition-topic/partitions: dial tcp [::1]:8080: connect: connection refused | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test800420146/main.tf line 6: | |
(source code not available) | |
=== RUN TestProvider | |
--- PASS: TestProvider (0.00s) | |
=== RUN TestProvider_impl | |
--- PASS: TestProvider_impl (0.00s) | |
=== RUN TestCluster | |
--- FAIL: TestCluster (0.02s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_CLUSTER: Put http://localhost:8080/admin/v2/clusters/eternals: dial tcp [::1]:8080: connect: connection refused | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test001773876/main.tf line 6: | |
(source code not available) | |
=== RUN TestNamespace | |
--- FAIL: TestNamespace (0.02s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_CLUSTER: Put http://localhost:8080/admin/v2/clusters/skrulls: dial tcp [::1]:8080: connect: connection refused | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test894368390/main.tf line 6: | |
(source code not available) | |
=== RUN TestTenant | |
--- FAIL: TestTenant (0.01s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_TENANT: Put http://localhost:8080/admin/v2/tenants/thanos: dial tcp [::1]:8080: connect: connection refused | |
request_input: {thanos [] []} | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test089810856/main.tf line 6: | |
(source code not available) | |
=== RUN TestTopic | |
--- FAIL: TestTopic (0.01s) | |
testing.go:635: Step 0 error: errors during apply: | |
Error: ERROR_CREATE_TOPIC: Put http://localhost:8080/admin/v2/persistent/public/default/partition-topic/partitions: dial tcp [::1]:8080: connect: connection refused | |
on /var/folders/3t/thxnhls554bbn08sjrd9hcvrgb_3pp/T/tf-test301922074/main.tf line 6: | |
(source code not available) | |
FAIL | |
FAIL github.com/streamnative/terraform-provider-pulsar/pulsar 0.239s | |
? github.com/streamnative/terraform-provider-pulsar/types [no test files] | |
FAIL | |
make: *** [testacc] Error 1 | |
# make sure pulsar is actually running (just in case) | |
10:37:43 › curl http://pulsar.pulsar.docker:8080/admin/v2/persistent/public/default/my-topic/stats | python -m json.tool | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 28 100 28 0 0 1280 0 --:--:-- --:--:-- --:--:-- 1333 | |
{ | |
"reason": "Topic not found" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment