a2zdeploy 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,37 +0,0 @@
1
- require_relative '../upgradeall'
2
- require 'test/unit'
3
- require_relative '../globalconstants'
4
-
5
- class TestUpgrade < Test::Unit::TestCase
6
-
7
- def test_config_load_files_exist
8
-
9
- Dir.chdir GlobalConstants::SPEC if File.basename(Dir.pwd) != GlobalConstants::SPEC
10
-
11
- upgradeall = UpgradeAll.new 'http://ndhaxpgit01.mckesson.com/SureshBatta/AutomatedUpgradesConfig.git', 'master'
12
-
13
- upgradeall.retrieve_artifacts
14
-
15
- assert_not_equal upgradeall.manifest, nil
16
- assert_not_equal upgradeall.version_map, nil
17
-
18
- Dir.chdir '..'
19
-
20
- end
21
-
22
- def test_config_load_files_do_not_exist
23
-
24
- Dir.chdir GlobalConstants::SPEC if File.basename(Dir.pwd) != GlobalConstants::SPEC
25
-
26
- upgradeall = UpgradeAll.new 'http://ndhaxpgit01.mckesson.com/SureshBatta/AutomatedUpgradesConfig.git', 'xyz'
27
-
28
- upgradeall.retrieve_artifacts
29
-
30
- assert_equal upgradeall.manifest, nil
31
- assert_equal upgradeall.version_map, nil
32
-
33
- Dir.chdir '..'
34
-
35
- end
36
-
37
- end
@@ -1,47 +0,0 @@
1
- require_relative '../version_map'
2
- require 'test/unit'
3
-
4
- class TestVersionMap < Test::Unit::TestCase
5
-
6
- def test_norepo_returns_nil
7
- vm = VersionMap.new
8
- versions = vm.version_map nil, nil
9
- assert_equal nil, versions
10
- Dir.chdir '..'
11
- end
12
-
13
- def test_param_hasrepourl_nobranch_returns_nil
14
- vm = VersionMap.new
15
- versions = vm.version_map 'http://github.com/test.git', nil
16
- assert_equal nil, versions
17
- Dir.chdir '..'
18
- end
19
-
20
- def test_param_hasbadrepourl_returns_nil
21
- vm = VersionMap.new
22
- versions = vm.version_map 'http://', nil
23
- assert_equal nil, versions
24
- Dir.chdir '..'
25
- end
26
-
27
- def test_hasrepo_hasbranch_returns_empty_hash_if_bad_repo
28
- vm = VersionMap.new
29
- versions = vm.version_map 'http://github.com/test.git', 'master'
30
- assert_equal nil, versions
31
- Dir.chdir '..'
32
- end
33
-
34
- def test_hasrepo_nobranch_returns_nil_for_real_repo
35
- vm = VersionMap.new
36
- versions = vm.version_map 'http://ndhaxpgit01.mckesson.com/SureshBatta/AutoUpgradeTestProject.git', 'xyz'
37
- assert_equal nil, versions
38
- Dir.chdir '..'
39
- end
40
-
41
- def test_hasrepo_hasbranch_returns_hash_for_real_repo
42
- vm = VersionMap.new
43
- versions = vm.version_map 'http://ndhaxpgit01.mckesson.com/Carnegie/RelayHealth.DataPlatform.git', 'develop'
44
- assert_not_equal nil, versions
45
- Dir.chdir '..'
46
- end
47
- end