Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Fix OpenShift s2i tests: #584

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashetty1
Copy link
Collaborator

@ashetty1 ashetty1 commented Feb 5, 2018

Minor changes to get the s2i tests working.

Minor changes to get the s2i tests working.
@ashetty1
Copy link
Collaborator Author

ashetty1 commented Feb 6, 2018

@surajnarwade review please :)

@surajnarwade
Copy link
Collaborator

@ashetty1 make test-e2e-os || true is failing if you check Semaphore, Don't know why it's showing as test passed

func runKedgeS2i(imageName string, baseImage string) error {
s2iCmd := BinaryLocation + " build --s2i --image " + imageName + " -b " + baseImage
func runKedgeS2i(nameSpace string, baseImage string, contextDir string) error {
s2iCmd := BinaryLocation + " build --s2i --image " + nameSpace + "-img -b " + baseImage +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be,

s2iCmd := BinaryLocation + " build --s2i --image " + baseImage +" -c " + contextDir + " -n " + nameSpace

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit confused here, tests works fine locally:

 $ make test-e2e-os 
TEST=os make test-e2e 
make[1]: Entering directory '/home/snarwade/go/src/github.com/kedgeproject/kedge'
./scripts/run_e2e.sh
======================================
| Running end-to-end cluster tests.  |
| Tests will be ran against a k8s    |
| cluster in separate namespaces     |
|                                    |
| Use command:                       |
| VERBOSE=yes make test-e2e-os       |
| for verbosity.                     |
======================================

ok  	github.com/kedgeproject/kedge/tests/e2e	246.458s
make[1]: Leaving directory '/home/snarwade/go/src/github.com/kedgeproject/kedge'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@surajnarwade the --image is for the name of the image to be generated. --baseimage is for baseimage.

@ashetty1
Copy link
Collaborator Author

ashetty1 commented Feb 6, 2018

@surajnarwade semaphore failing because of test run timeout, not because of individual tests failing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants