citrusframework / yaks

YAKS is a platform to enable Cloud Native BDD testing on Kubernetes
Apache License 2.0
83 stars 28 forks source link

Uploading custom steps not working #109

Open grebrov opened 4 years ago

grebrov commented 4 years ago

Running test with custom step does not work - just uploading gives the same result.

Steps to reproduce following example

yaks test extension.feature -u steps/
2020/05/07 17:30:40 log.go:70: snap/installer "level"=0 "msg"="Snap is already installed: skipping"
2020/05/07 17:30:40 log.go:55: snap/java-deployer "level"=0 "msg"="Executing maven release phase on project steps/"
Error: error while creating deployment for source code: exit status 1

Unfortunately I don't know where to check for more logs (the operator pod doesn't show anything)

christophd commented 4 years ago

I think the path to the steps directory must be relative to the directory where yaks CLI tool is executed. AFAIK it can not be a relative path to the feature file given. Does that make a difference in your case?

grebrov commented 4 years ago

In my case both are the same. Here the details (just upload, no test) with version 0.0.43

C:\app\b.vorberg\product\citrus\yaks\examples\extension> yaks upload steps/
2020/05/08 08:03:13 log.go:70: snap/installer "level"=0 "msg"="Snap is already installed: skipping"  
2020/05/08 08:03:13 log.go:55: snap/java-deployer "level"=0 "msg"="Executing maven release phase on project steps/"  
Error: error while creating deployment for source code: exit status 1

I also tried with absolute path. Could it be operating system related (My client runs on Windows)?

christophd commented 4 years ago

yes could be the OS. @nicolaferraro can you say something regarding OS support for Snap/Minio?

grebrov commented 4 years ago

Tested with linux subsystem. Still same result:

boris@IRIX-8Y4X3H2:/mnt/c/app/b.vorberg/product/citrus/yaks/examples/extension$ /mnt/c/app/b.vorberg/product/yaks/linux/yaks upload steps/
2020/05/08 14:13:53 log.go:70: snap/installer "level"=0 "msg"="Snap is already installed: skipping"  
2020/05/08 14:13:53 log.go:55: snap/java-deployer "level"=0 "msg"="Executing maven release phase on project steps/"
Error: error while creating deployment for source code: exit status 1

Does it work for you?

nicolaferraro commented 4 years ago

I think it's an OS problem on snap. I've opened an issue to fix it.