train-core 1.4.37 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -8
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/train/globals.rb +5 -0
- data/lib/train/plugin_test_helper.rb +51 -0
- data/lib/train/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 851000326ee9d2a7b2539cead0c0d869714eebc57651a44578f9e012ca68b581
|
4
|
+
data.tar.gz: 7222c92100f0292402105342cac70bbb1302fea450081be0b5224aafc04e5b82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c875f132d65706fc205bee6461b59067a305ac7e716deb372f15405f050f6c52dd0dfe0db81b7e528959ed7accd06ce023588bffc4d4e8fff8d066d41824794
|
7
|
+
data.tar.gz: ca5dc0cce6799ccdd1c0cf548dadf9047c3a8b0412e33b6bed1189b363f911d89c8610d2706c84079c406eecaa1088461d25bcf986232af423377d35026c6472
|
data/CHANGELOG.md
CHANGED
@@ -1,19 +1,28 @@
|
|
1
|
-
<!-- latest_release 1.
|
2
|
-
## [v1.
|
1
|
+
<!-- latest_release 1.5.0 -->
|
2
|
+
## [v1.5.0](https://github.com/inspec/train/tree/v1.5.0) (2018-09-27)
|
3
3
|
|
4
4
|
#### Merged Pull Requests
|
5
|
-
-
|
5
|
+
- Bump minor version. [#357](https://github.com/inspec/train/pull/357) ([jquick](https://github.com/jquick))
|
6
6
|
<!-- latest_release -->
|
7
7
|
|
8
|
-
<!-- release_rollup since=1.4.
|
9
|
-
### Changes since 1.4.
|
8
|
+
<!-- release_rollup since=1.4.37 -->
|
9
|
+
### Changes since 1.4.37 release
|
10
10
|
|
11
11
|
#### Merged Pull Requests
|
12
|
-
-
|
13
|
-
-
|
12
|
+
- Bump minor version. [#357](https://github.com/inspec/train/pull/357) ([jquick](https://github.com/jquick)) <!-- 1.5.0 -->
|
13
|
+
- Plugins: Test harness, test fixture, docs, and local-type example [#356](https://github.com/inspec/train/pull/356) ([clintoncwolfe](https://github.com/clintoncwolfe)) <!-- 1.4.40 -->
|
14
|
+
- Adding GCP admin_client helper. [#349](https://github.com/inspec/train/pull/349) ([skpaterson](https://github.com/skpaterson)) <!-- 1.4.39 -->
|
15
|
+
- Update google-api-client version. [#348](https://github.com/inspec/train/pull/348) ([skpaterson](https://github.com/skpaterson)) <!-- 1.4.38 -->
|
14
16
|
<!-- release_rollup -->
|
15
17
|
|
16
18
|
<!-- latest_stable_release -->
|
19
|
+
## [v1.4.37](https://github.com/inspec/train/tree/v1.4.37) (2018-09-13)
|
20
|
+
|
21
|
+
#### Merged Pull Requests
|
22
|
+
- Rescues SystemCallError instead of Errno [#346](https://github.com/inspec/train/pull/346) ([dmccown](https://github.com/dmccown))
|
23
|
+
- Add a export method for platforms [#347](https://github.com/inspec/train/pull/347) ([jquick](https://github.com/jquick))
|
24
|
+
<!-- latest_stable_release -->
|
25
|
+
|
17
26
|
## [v1.4.35](https://github.com/inspec/train/tree/v1.4.35) (2018-08-23)
|
18
27
|
|
19
28
|
#### Merged Pull Requests
|
@@ -21,7 +30,6 @@
|
|
21
30
|
- Modify Cisco UUID detection to use processor ID [#342](https://github.com/inspec/train/pull/342) ([jerryaldrichiii](https://github.com/jerryaldrichiii))
|
22
31
|
- Fixes failing test when you have a cred file [#343](https://github.com/inspec/train/pull/343) ([dmccown](https://github.com/dmccown))
|
23
32
|
- Adds connection to Graph RBAC API [#327](https://github.com/inspec/train/pull/327) ([r-fennell](https://github.com/r-fennell))
|
24
|
-
<!-- latest_stable_release -->
|
25
33
|
|
26
34
|
## [v1.4.31](https://github.com/inspec/train/tree/v1.4.31) (2018-08-17)
|
27
35
|
|
data/Gemfile
CHANGED
@@ -25,7 +25,7 @@ group :test do
|
|
25
25
|
# (Gem::Specification.find_by_path('train-gem-fixture') will return nil)
|
26
26
|
# but it's close enough to show the gempath handler can find a plugin
|
27
27
|
# See test/unit/
|
28
|
-
gem 'train-
|
28
|
+
gem 'train-test-fixture', path: 'test/fixtures/plugins/train-test-fixture'
|
29
29
|
end
|
30
30
|
|
31
31
|
group :integration do
|
data/README.md
CHANGED
@@ -209,4 +209,4 @@ Unless required by applicable law or agreed to in writing, software
|
|
209
209
|
distributed under the License is distributed on an "AS IS" BASIS,
|
210
210
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
211
211
|
See the License for the specific language governing permissions and
|
212
|
-
limitations under the License.
|
212
|
+
limitations under the License.
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# This file is intended to be 'require'd by plugin authors who are developing a
|
2
|
+
# plugin outside of the Train source tree.
|
3
|
+
|
4
|
+
# Load Train. We certainly need the plugin system, and also several other parts
|
5
|
+
# that are tightly coupled. Train itself is fairly light, and non-invasive.
|
6
|
+
require 'train'
|
7
|
+
|
8
|
+
# You can select from a number of test harnesses. Since Train is closely related
|
9
|
+
# to InSpec, and InSpec uses Spec-style controls in profile code, you will
|
10
|
+
# probably want to use something like minitest/spec, which provides Spec-style
|
11
|
+
# tests.
|
12
|
+
require 'minitest/spec'
|
13
|
+
require 'minitest/autorun'
|
14
|
+
|
15
|
+
# Data formats commonly used in testing
|
16
|
+
require 'json'
|
17
|
+
require 'ostruct'
|
18
|
+
|
19
|
+
# Utilities often needed
|
20
|
+
require 'fileutils'
|
21
|
+
require 'tmpdir'
|
22
|
+
require 'pathname'
|
23
|
+
|
24
|
+
# You might want to put some debugging tools here. We run tests to find bugs,
|
25
|
+
# after all.
|
26
|
+
require 'byebug'
|
27
|
+
|
28
|
+
# Configure MiniTest to expose things like `let`
|
29
|
+
class Module
|
30
|
+
include Minitest::Spec::DSL
|
31
|
+
end
|
32
|
+
|
33
|
+
# Finally, let's make some modules that can help us out.
|
34
|
+
module TrainPluginBaseHelper
|
35
|
+
# Sneakily detect the location of the plugin
|
36
|
+
# source code when they include this Module
|
37
|
+
def self.included(base)
|
38
|
+
plugin_test_helper_path = Pathname.new(caller_locations(4, 1).first.absolute_path)
|
39
|
+
plugin_src_root = plugin_test_helper_path.parent.parent
|
40
|
+
base.let(:plugin_src_path) { plugin_src_root }
|
41
|
+
base.let(:plugin_fixtures_path) { File.join(plugin_src_root, 'test', 'fixtures') }
|
42
|
+
end
|
43
|
+
|
44
|
+
let(:train_src_path) { File.expand_path(File.join(__FILE__, '..', '..')) }
|
45
|
+
let(:train_fixtures_path) { File.join(train_src_path, 'test', 'fixtures') }
|
46
|
+
let(:registry) { Train::Plugins.registry }
|
47
|
+
end
|
48
|
+
|
49
|
+
module TrainPluginFunctionalHelper
|
50
|
+
include TrainPluginBaseHelper
|
51
|
+
end
|
data/lib/train/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: train-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominik Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mixlib-shellout
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- lib/train/file/remote/qnx.rb
|
71
71
|
- lib/train/file/remote/unix.rb
|
72
72
|
- lib/train/file/remote/windows.rb
|
73
|
+
- lib/train/globals.rb
|
73
74
|
- lib/train/options.rb
|
74
75
|
- lib/train/platforms.rb
|
75
76
|
- lib/train/platforms/common.rb
|
@@ -83,6 +84,7 @@ files:
|
|
83
84
|
- lib/train/platforms/detect/uuid.rb
|
84
85
|
- lib/train/platforms/family.rb
|
85
86
|
- lib/train/platforms/platform.rb
|
87
|
+
- lib/train/plugin_test_helper.rb
|
86
88
|
- lib/train/plugins.rb
|
87
89
|
- lib/train/plugins/base_connection.rb
|
88
90
|
- lib/train/plugins/transport.rb
|