Ensure we parse k8s versions through 1.16

This commit is contained in:
Justin Santa Barbara 2018-10-15 12:53:22 -04:00
parent 1fbc6331c6
commit 1e8e1bff7c
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ func TestParse(t *testing.T) {
{Input: "1.9.0", Expected: "1.9.0"},
{Input: "1.10.0", Expected: "1.10.0"},
{Input: "v1.1.0-alpha1", Expected: "1.1.0-alpha1"},
{Input: "1.11.0", Expected: "1.11.0"},
{Input: "1.12.0", Expected: "1.12.0"},
{Input: "1.13.0", Expected: "1.13.0"},
{Input: "1.14.0", Expected: "1.14.0"},
{Input: "1.15.0", Expected: "1.15.0"},
{Input: "1.16.0", Expected: "1.16.0"},
{Input: "https://example.com/v1.8.0-downloads", Expected: "1.8.0"},
}