mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-19 04:26:39 +00:00
add rc test (#4600)
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com> Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
This commit is contained in:
@@ -955,6 +955,31 @@ func TestCheckSemVer(t *testing.T) {
|
||||
require: ">=1.5.0",
|
||||
res: false,
|
||||
},
|
||||
{
|
||||
actual: "1.5.0-rc.2",
|
||||
require: ">=1.5.0-beta.1",
|
||||
res: true,
|
||||
},
|
||||
{
|
||||
actual: "1.5.0-rc.2",
|
||||
require: ">=1.5.0-rc.1",
|
||||
res: true,
|
||||
},
|
||||
{
|
||||
actual: "1.5.0-rc.1",
|
||||
require: ">=1.5.0-alpha.1",
|
||||
res: true,
|
||||
},
|
||||
{
|
||||
actual: "1.5.0-rc.2",
|
||||
require: ">=1.5.0",
|
||||
res: false,
|
||||
},
|
||||
{
|
||||
actual: "1.5.0-rc.2",
|
||||
require: ">=1.4.0",
|
||||
res: true,
|
||||
},
|
||||
}
|
||||
for _, testCase := range testCases {
|
||||
result, err := checkSemVer(testCase.actual, testCase.require)
|
||||
|
||||
Reference in New Issue
Block a user