Commit Graph

15 Commits (7b7674e47ffbb865ed75492d883e9909bc266a41)

Author SHA1 Message Date
Karolis Rusenas be0a7a66da preserving original version 2017-07-30 21:48:53 +01:00
Tim Heckman c35a2edf05
Remove redundant version check and unit test case
This change introduces some small fixes for the `util/version` package of
`keel`. There should be no breaking changes introduced by the changes being
proposed.

The first change is around the version check when the policy is set to
PolicyTypePatch. In this path, the major and minor versions are confirmed to be
the same. It then checks to make sure the new patch is greater than the current
one, which we already do here:

* b3ba3a47f1/util/version/version.go (L129-L132)

This change removes the check confirming that the patch is higher on the new
version. An additional test was added to test for a patch decrease, with
PolicyTypePatch, to make sure nothing was broken.

Lastly, in the process of writing this test a duplicated test case was
discovered in the test file so it was removed.

Signed-off-by: Tim Heckman <t@heckman.io>
2017-07-28 12:08:04 -07:00
Karolis Rusenas d434ce748b bumping timeout to 300 seconds 2017-07-26 08:12:37 +01:00
Karolis Rusenas 45fb1bf2ca fixed bug in version checking 2017-07-20 09:47:01 +01:00
Karolis Rusenas 7e3ee04316 info > debug 2017-07-16 20:54:48 +01:00
Karolis Rusenas 35b6cd6016 new available version testing 2017-07-16 11:48:24 +01:00
Karolis Rusenas 1548203462 check for new current tag 2017-07-16 11:48:13 +01:00
Karolis Rusenas 30ecd42092 dont crash on untagged images 2017-07-02 08:44:08 +01:00
Karolis Rusenas c2812439b4 updated version checking 2017-07-01 14:25:00 +01:00
Karolis Rusenas 88c2f53a25 force policy 2017-06-28 17:40:47 +01:00
Karolis Rusenas 7b3586aac7 name getter 2017-06-11 11:29:48 +01:00
Karolis Rusenas 1c1dfbd80d version tests 2017-06-10 15:05:20 +01:00
Karolis Rusenas 459bef6a15 should update checker 2017-06-10 15:05:12 +01:00
Karolis Rusenas 76d3a090c9 tests for version update 2017-06-10 12:57:24 +01:00
Karolis Rusenas a504eced9b version parsing 2017-06-10 12:22:33 +01:00