-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.0.6 release: Fixes Docker version number issues
This changes the logic involved in checking for a minimum Docker version. Previously, we had a maximum version as well; with the pending release of v17.3 this needed to be updated to be more robust. Tests for the change, including the upcoming version numbers have been added to `test/util_test.nim`, and pass. Version has been bumped to v1.0.6
- Loading branch information
Showing
6 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
|
||
import ./docker_test | ||
import ./config_test | ||
import ./util_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## util.nim tests | ||
|
||
import unittest | ||
import options | ||
import typetraits | ||
import ../src/private/types | ||
|
||
# Unit under test | ||
import ../src/util | ||
|
||
suite "util.isVersionTooOld": | ||
setup: discard | ||
teardown: discard | ||
|
||
test "fails with incorrect major": | ||
let version = newVersionNumber(0, 12, 0) | ||
let result = isVersionTooOld(version) | ||
check(result == true) | ||
|
||
test "fails with correct major, incorrect minor": | ||
let version = newVersionNumber(1, 11, 0) | ||
let result = isVersionTooOld(version) | ||
check(result == true) | ||
|
||
test "passes with correct major/minor for version v1": | ||
let version = newVersionNumber(1, 13, 0) | ||
let result = isVersionTooOld(version) | ||
check(result == false) | ||
|
||
test "passes with correct major/minor for new release numbers": | ||
let version = newVersionNumber(17, 3, 0) | ||
let result = isVersionTooOld(version) | ||
check(result == false) |