-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial gingko implementation #261
Conversation
1424d2c
to
551587f
Compare
💥 Invalid
|
💥 Invalid
|
💥 Invalid
|
67fcfaf
to
ba6d7cc
Compare
test/e2e/libpod_suite_test.go
Outdated
}() | ||
options := ©.Options{} | ||
|
||
importRef, err := alltransports.ParseImageName(fmt.Sprintf("docker://%s", imageName)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Combined with line 167, I think this ends up prepending "docker://" to image
twice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
test/e2e/libpod_suite_test.go
Outdated
} | ||
|
||
exportTo := filepath.Join(p.ArtifactPath, "image") | ||
exportRef, err := alltransports.ParseImageName(exportTo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to prepend "dir:" to exportTo
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
test/e2e/libpod_suite_test.go
Outdated
return errors.Errorf("error parsing image name: %v", err) | ||
} | ||
|
||
importFrom := fmt.Sprintf("dir://%s", filepath.Join(p.ArtifactPath), "image") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be "dir:", not "dir://". Only the "docker" transport expects a "//".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The argument list for that filepath.Join()
call doesn't include image
the way the one on line 189 does?
test/e2e/libpod_suite_test.go
Outdated
os.Exit(1) | ||
} | ||
|
||
names := append(destImage.Names, image, image) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No point in appending image
twice here, since SetNames
deduplicates them anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
test/e2e/libpod_suite_test.go
Outdated
err = copy.Image(policyContext, ref, importRef, options) | ||
if err != nil { | ||
logrus.Errorf("error importing %s: %v", importFrom, err) | ||
os.Exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bypasses any deferred functions, in case doing so could create problems elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah caught that late
test/e2e/libpod_suite_test.go
Outdated
destImage, err1 := storage.Transport.GetStoreImage(store, ref) | ||
if err1 != nil { | ||
logrus.Errorf("error finding image: %v", err1) | ||
os.Exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This bypasses any deferred functions, in case doing so could create problems elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
1d8bf34
to
24bd688
Compare
@rhatdan , @mheon , @umohnani8, @TomSweeneyRedHat PTAL |
Makefile
Outdated
localintegration: test-binaries | ||
bash -i ./test/test_runner.sh ${TESTFLAGS} | ||
ginkgo -v test/e2e/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need test_runner.sh at least for a little while longer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as i said in the commit message, i disabled the bats tests in ubuntu as we are running them in fedora and centos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should do that. I want the full tests to run on all platforms so we catch distro problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with it if the intent is the eventual removal of BATS tests as they are replaced by Ginkgo tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that is the point ... I removed it in part because the travis tests are so darned long and i wanted to take some burden off the ci. i can re-enable them but given all the ci issues we have had of late, i think it will will contributory to frustration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added back in per request ...
4b3efbf
to
b4167a6
Compare
bot, retest this please |
This implements the ginkgo integration test framework for podman. As tests are migrated from bats to ginkgo, we will still run both integration suites. When a test is migrated, we remove the tests from bats at that time. All new tests should be just for the ginkgo framework. One exception is that we only run the ginkgo suit in the travis/ubuntu environment. The CentOS and Fedora PAPR nodes will more than cover those. Signed-off-by: baude <[email protected]>
I'm going to merge this to get the show on the road. |
📌 Commit f29f526 has been approved by |
⚡ Test exempted: merge already tested. |
Signed-off-by: baude [email protected]