testkube icon indicating copy to clipboard operation
testkube copied to clipboard

Maven tests fail when using GitHub sources

Open vLia opened this issue 3 years ago • 0 comments

Describe the bug Running

testkube create test --git-uri https://github.com/kubeshop/testkube-executor-maven.git --git-path examples/hello-maven-settings --type maven/test --name maven-example-test --git-branch main
testkube run test maven-example-test --copy-files "/Users/lilla/kubeshop/src/testkube-executor-maven/examples/hello-maven-settings/settings.xml:/tmp/settings.xml" --args "--settings" --args "/tmp/settings.xml" -v "TESTKUBE_MAVEN=true"

results in

Getting pod logs
Execution completed 
Execution completed [ERROR] Could not create local repository at /data/repo/examples/hello-maven-settings/?/.m2/repository -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException

To Reproduce Steps to reproduce the behavior:

testkube create test --git-uri https://github.com/kubeshop/testkube-executor-maven.git --git-path examples/hello-maven-settings --type maven/test --name maven-example-test --git-branch main
testkube run test maven-example-test  -v "TESTKUBE_MAVEN=true"

Expected behavior Test succeeds

Version / Cluster

  • Which testkube version? 1.5.41
  • What Kubernetes cluster? (e.g. GKE, EKS, Openshift etc, local KinD, local Minikube) kind
  • What Kubernetes version? GitVersion:"v1.23.4"

vLia avatar Sep 30 '22 12:09 vLia