-
Notifications
You must be signed in to change notification settings - Fork 771
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
Invoking kompose --bundle X.dab convert --stdout will produce two differently ordered results #231
Comments
@cab105 see if this helps https://github.com/kubernetes-incubator/kompose/blob/master/script/test/cmd/lib.sh#L70 It can match json even if the order changes. Also you can use functions like |
Thanks for the guideline, but the thing is that I'm running this through Then again, I need to debug if this is my environment or a bug with the On 10/22/2016 09:57 PM, Suraj Deshmukh wrote:
|
@cab105 can we close this ? |
I'd say not yet. Haven't had a chance to delve into it, but will take ownership. |
…produce two differently ordered results
…produce two differently ordered results
#338 has been merged. This is safe to be closed. |
The current kompose testing framework relies on dumping the results of the command to stdout and comparing it against a known baseline. While doing the same thing for converting bundles, kompose will alter the order of the output such that no two invocations will result in the same output (see test1.txt and test2.txt).
While this doesn't pose an issue for normal operations, this will result in the tests failing occasionally. The primary question is whether the tests should be altered to compare the resulting file output, or of dumping via stdout should be consistent?
test1.txt
test2.txt
The text was updated successfully, but these errors were encountered: