anhpngt commented on PR #4557:
URL: https://github.com/apache/camel-k/pull/4557#issuecomment-1632220101
hi @squakez, I updated the fix for `bind` and added unit tests for both
commands. I tried running the unit test without the fix, it correctly showed
the errors now
```sh
$ go test -run TestBindOutputWithoutKubernetesCluster
--- FAIL: TestBindOutputWithoutKubernetesCluster (0.00s)
bind_test.go:261:
Error Trace:
/home/anhpngt/apache/camel-k/pkg/cmd/bind_test.go:261
Error: Received unexpected error:
invalid configuration: no configuration has
been provided, try setting KUBERNETES_MASTER environment variable
Test: TestBindOutputWithoutKubernetesCluster
FAIL
exit status 1
FAIL github.com/apache/camel-k/v2/pkg/cmd 0.024s
$ go test -run TestRunOutputWithoutKubernetesCluster
--- FAIL: TestRunOutputWithoutKubernetesCluster (0.00s)
run_test.go:830:
Error Trace:
/home/anhpngt/apache/camel-k/pkg/cmd/run_test.go:830
Error: Received unexpected error:
invalid configuration: no configuration has
been provided, try setting KUBERNETES_MASTER environment variable
Test: TestRunOutputWithoutKubernetesCluster
FAIL
exit status 1
FAIL github.com/apache/camel-k/v2/pkg/cmd 0.026s
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]