kitchen-sharedtests 0.0.1 → 0.1.0
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.
- checksums.yaml +4 -4
- data/lib/kitchen/sharedtests/version.rb +1 -1
- data/lib/kitchen/sharedtests_thor_tasks.rb +7 -2
- data/lib/kitchen_sharedtests.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f44bf8f720fd635b7b08bc29b52c51846b99eb9
|
|
4
|
+
data.tar.gz: 6ca5c12d1bf4904b1d3847e87f42524ef66620fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 995d6b40c37772341a1d6ca02607c2e2acdf7bc660dc9e04be6a1511ca54539e3ce28eb861309865fe6531289ff619a2738b9a1b6518c0aa703a2eb95005e758
|
|
7
|
+
data.tar.gz: 5418d1196ab8cf761ec6729d8f93574358be38063150940e55794824222e6dbd75c8dfcbbea8e3a1c8d8e89574b725aa1f325dd4af1e5bd37a5730408d29ec91
|
|
@@ -73,6 +73,11 @@ module Kitchen
|
|
|
73
73
|
puts instance.diagnose
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
|
+
|
|
77
|
+
self.class.desc "fetch-remote-tests", "Fetch remote tests from provider.test_repo_uri"
|
|
78
|
+
self.class.send(:define_method, "fetch_remote_tests") do
|
|
79
|
+
create_or_update_test_repo(config.instances.first.provisioner[:test_repo_uri], "test", config.kitchen_root)
|
|
80
|
+
end
|
|
76
81
|
end
|
|
77
82
|
|
|
78
83
|
def create_or_update_test_repo(test_repo_uri, name, path)
|
|
@@ -94,8 +99,8 @@ module Kitchen
|
|
|
94
99
|
Kitchen.logger.info("repo not clean, not pulling from #{test_repo_uri}")
|
|
95
100
|
end
|
|
96
101
|
else
|
|
97
|
-
Kitchen.logger.info("cloning #{test_repo_uri} repo_path ")
|
|
98
|
-
::Git.clone(test_repo_uri,
|
|
102
|
+
Kitchen.logger.info("cloning #{test_repo_uri} #{repo_path} ")
|
|
103
|
+
::Git.clone(test_repo_uri, name, :path => path, :log => Kitchen.logger)
|
|
99
104
|
end
|
|
100
105
|
end
|
|
101
106
|
|
data/lib/kitchen_sharedtests.rb
CHANGED
|
@@ -4,6 +4,6 @@ module Kitchen
|
|
|
4
4
|
module Sharedtests
|
|
5
5
|
TEST_REPO_NAME = "shared_test_repo"
|
|
6
6
|
TEST_REPO_BASE_PATH = File.join(Dir.pwd, TEST_REPO_NAME)
|
|
7
|
-
TEST_BASE_PATH = File.join(TEST_REPO_BASE_PATH, "/
|
|
7
|
+
TEST_BASE_PATH = File.join(TEST_REPO_BASE_PATH, "/integration")
|
|
8
8
|
end
|
|
9
9
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-sharedtests
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Edmund Haselwanter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-05-
|
|
11
|
+
date: 2014-05-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: git
|