コード例 #1
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_garbage_version_with_prepended_zero_rc(self):
     result = hosts._normalized_release('01.08.01234.1rc-1')
     assert result.major == "01"
     assert result.minor == "08"
     assert result.patch == "01234"
     assert result.garbage == "1rc-1"
コード例 #2
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_garbage_version_with_no_numbers(self):
     result = hosts._normalized_release('sid')
     assert result.major == "sid"
     assert result.minor == "0"
     assert result.patch == "0"
     assert result.garbage == "0"
コード例 #3
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_garbage_version_with_trailing_space_rc(self):
     result = hosts._normalized_release(' 1.8.1234.1rc-123')
     assert result.major == "1"
     assert result.minor == "8"
     assert result.patch == "1234"
     assert result.garbage == "1rc-123"
コード例 #4
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_int_single_version(self):
     result = hosts._normalized_release('1')
     assert result.int_major == 1
     assert result.int_minor == 0
     assert result.int_patch == 0
     assert result.int_garbage == 0
コード例 #5
0
ファイル: test_hosts.py プロジェクト: zyt19941113/ceph-deploy
 def test_int_minor_version_rc(self):
     result = hosts._normalized_release('1.8rc-123')
     assert result.int_major == 1
     assert result.int_minor == 8
     assert result.int_patch == 0
     assert result.int_garbage == 0
コード例 #6
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_patch_version_rc(self):
     result = hosts._normalized_release('1.8.1234rc-123')
     assert result.major == "1"
     assert result.minor == "8"
     assert result.patch == "1234rc-123"
     assert result.garbage == "0"
コード例 #7
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_minor_version_with_trailing_space(self):
     result = hosts._normalized_release(' 1.8')
     assert result.major == "1"
     assert result.minor == "8"
     assert result.patch == "0"
     assert result.garbage == "0"
コード例 #8
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_int_patch_version_with_prepended_zero(self):
     result = hosts._normalized_release('01.08.01234')
     assert result.int_major == 1
     assert result.int_minor == 8
     assert result.int_patch == 1234
     assert result.int_garbage == 0
コード例 #9
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_int_minor_version_rc(self):
     result = hosts._normalized_release('1.8rc-123')
     assert result.int_major == 1
     assert result.int_minor == 8
     assert result.int_patch == 0
     assert result.int_garbage == 0
コード例 #10
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_single_version(self):
     result = hosts._normalized_release('1')
     assert result.major == "1"
     assert result.minor == "0"
     assert result.patch == "0"
     assert result.garbage == "0"
コード例 #11
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_int_single_version_with_trailing_space_rc(self):
     result = hosts._normalized_release(' 1rc-123')
     assert result.int_major == 1
     assert result.int_minor == 0
     assert result.int_patch == 0
     assert result.int_garbage == 0
コード例 #12
0
ファイル: test_hosts.py プロジェクト: zyt19941113/ceph-deploy
 def test_int_patch_version_with_prepended_zero_rc(self):
     result = hosts._normalized_release('01.08.01234rc-123')
     assert result.int_major == 1
     assert result.int_minor == 8
     assert result.int_patch == 1234
     assert result.int_garbage == 0
コード例 #13
0
ファイル: test_hosts.py プロジェクト: zyt19941113/ceph-deploy
 def test_int_patch_version_with_trailing_space_rc(self):
     result = hosts._normalized_release(' 1.8.1234rc-123')
     assert result.int_major == 1
     assert result.int_minor == 8
     assert result.int_patch == 1234
     assert result.int_garbage == 0
コード例 #14
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_int_single_version_with_prepended_zero(self):
     result = hosts._normalized_release('01')
     assert result.int_major == 1
     assert result.int_minor == 0
     assert result.int_patch == 0
     assert result.int_garbage == 0
コード例 #15
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_minor_version_with_prepended_zero(self):
     result = hosts._normalized_release('01.08')
     assert result.major == "01"
     assert result.minor == "08"
     assert result.patch == "0"
     assert result.garbage == "0"
コード例 #16
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_int_patch_version_with_trailing_space(self):
     result = hosts._normalized_release(' 1.8.1234')
     assert result.int_major == 1
     assert result.int_minor == 8
     assert result.int_patch == 1234
     assert result.int_garbage == 0
コード例 #17
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_garbage_version(self):
     result = hosts._normalized_release('1.8.1234.1')
     assert result.major == "1"
     assert result.minor == "8"
     assert result.patch == "1234"
     assert result.garbage == "1"
コード例 #18
0
ファイル: test_hosts.py プロジェクト: 1oscar/ceph-deploy
 def test_int_garbage_version(self):
     result = hosts._normalized_release('1.8.1234.1')
     assert result.int_major == 1
     assert result.int_minor == 8
     assert result.int_patch == 1234
     assert result.int_garbage == 1
コード例 #19
0
ファイル: test_hosts.py プロジェクト: zyt19941113/ceph-deploy
 def test_int_garbage_version(self):
     result = hosts._normalized_release('1.8.1234.1')
     assert result.int_major == 1
     assert result.int_minor == 8
     assert result.int_patch == 1234
     assert result.int_garbage == 1