a2zdeploy 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ReadMe.md +198 -0
- data/a2zdeploy.gemspec +3 -3
- data/lib/a2zdeploy.rb +21 -0
- data/lib/dependency_tree.rb +0 -1
- data/lib/github_api.rb +14 -17
- data/lib/proget_api.rb +0 -2
- data/lib/teamcity_api.rb +233 -17
- data/lib/upgrade.rb +31 -27
- data/lib/upgradeall.rb +33 -13
- data/lib/version_map.rb +34 -13
- metadata +4 -11
- data/lib/version.rb +0 -266
- data/rakefile.rb +0 -7
- data/spec/dependency_tree_spec.rb +0 -93
- data/spec/github_api_spec.rb +0 -33
- data/spec/packages.config +0 -24
- data/spec/proj.csproj +0 -206
- data/spec/upgrade_spec.rb +0 -215
- data/spec/upgradeall_spec.rb +0 -37
- data/spec/version_map_spec.rb +0 -47
data/spec/upgradeall_spec.rb
DELETED
@@ -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
|
data/spec/version_map_spec.rb
DELETED
@@ -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
|