brpm_module_test 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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OGQ5N2E0N2JkM2Q0ZjU5OTY0MDM2NzlkZGRiZDAyMTM2ZTQyMDlhZA==
5
+ data.tar.gz: !binary |-
6
+ ZWFlMDRiMTZkNTdjZmExNjdhOGZlMDFmYjlhNWMzMDBmNGQ2YTQ2MA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MDhkYzA2NzhmNjYwMDkwODdiYTAyYTgxNmE5Y2RlOTY2ZTVmNWZjYjVkNjhh
10
+ OWE5OGQ2ODYwYzRlYmNlZTMwYWJhZDU1NGU4OWVkZWI2M2JlMjEzYWIxNDgz
11
+ MTgzOGMwZDk2Y2EyYzVhMTI5N2RmMjAzMmFjMzFjYzQ1MWU0MTc=
12
+ data.tar.gz: !binary |-
13
+ Nzc5Mjg4OGM5MjNmYTNiYzJjNjI3NjU3NzdjMzU0YjBjMTkwNGYxMThiNjk5
14
+ YWMwZGE4MGNlYzY3NjkzODVlYTVhMGEzNzBiMWM1ZjBlN2UwOTYyNzA2NGMx
15
+ MzQ0NTI3MTQ1NmU0M2JjZGQyMzczNWE1NDhiMzRkZjgxNjFkMDM=
data/.gitignore ADDED
@@ -0,0 +1,37 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /.bundle/
25
+ /lib/bundler/man/
26
+
27
+ # for a library or gem, you might want to ignore these files since the code is
28
+ # intended to run in multiple environments; otherwise, check them in:
29
+ Gemfile.lock
30
+ .ruby-gemset
31
+
32
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
33
+ .rvmrc
34
+
35
+ .DS_Store
36
+
37
+ .idea
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 1.9.3-p392
data/.travis.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+
5
+ before_install:
6
+ - gem update --system 2.1.9
7
+
8
+ bundler_args: '' #remove the --deployment flag that causes the gems to be installed in .../1.9.1/...
9
+
10
+ script:
11
+ - rspec tests --format documentation --color
12
+
13
+ notifications:
14
+ email:
15
+ - niek.bartholomeus@gmail.com
16
+
17
+ branches:
18
+ except:
19
+ - /^v[0-9.]*/
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 BMC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Test module for BRPM
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/brpm_module_test.png)](http://badge.fury.io/rb/brpm_module_test)
4
+
5
+ This repository represents a test module, to be used on top of the [BRPM content framework](https://github.com/BMC-RLM/brpm_content_framework).
data/Rakefile ADDED
@@ -0,0 +1,24 @@
1
+ # Copied from https://github.com/mitchellh/vagrant-aws/blob/master/Rakefile
2
+ require 'rubygems'
3
+ require 'bundler/setup'
4
+ require 'rspec/core/rake_task'
5
+
6
+ # Immediately sync all stdout so that tools like buildbot can
7
+ # immediately load in the output.
8
+ $stdout.sync = true
9
+ $stderr.sync = true
10
+
11
+ # Change to the directory of this file.
12
+ Dir.chdir(File.expand_path("../", __FILE__))
13
+
14
+ # This installs the tasks that help with gem creation and
15
+ # publishing.
16
+ Bundler::GemHelper.install_tasks
17
+
18
+ # Install the `spec` task so that we can run tests.
19
+ RSpec::Core::RakeTask.new do |task|
20
+ task.pattern = "tests/**/*_spec.rb"
21
+ end
22
+
23
+ # Default task is to run the unit tests
24
+ task :default => "spec"
@@ -0,0 +1,9 @@
1
+ params:
2
+ param_1:
3
+ name: Param 1
4
+ position: A1:F1
5
+ output_param:
6
+ name: Output param
7
+
8
+ description: Test script
9
+ integration_server_type: Bladelogic
@@ -0,0 +1 @@
1
+ BrpmAuto.log "Hi there"
File without changes
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bash
2
+ echo "hi there I'm the shell test script"
data/config.yml ADDED
@@ -0,0 +1,9 @@
1
+ version: 0.1.0
2
+
3
+ friendly_name: Test module
4
+ author: Niek Bartholomeus
5
+ email: niek.bartholomeus@gmail.com
6
+ homepage: https://github.com/BMC-RLM/brpm_module_test
7
+ license: MIT
8
+ summary: Test automation scripts and libraries to run on top of the BRPM Content framework
9
+ description: Test automation scripts and libraries to run on top of the BRPM Content framework. See https://github.com/BMC-RLM/brpm_content_framework for more information about the BRPM Content framework
data/module.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ require "yaml"
2
+
3
+ config = YAML.load_file(File.join(File.dirname(__FILE__), "config.yml"))
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = File.basename(File.expand_path(File.dirname(__FILE__)))
7
+ spec.version = config["version"]
8
+ spec.platform = Gem::Platform::RUBY
9
+ spec.license = config["license"]
10
+ spec.authors = [config["author"]]
11
+ spec.email = config["email"]
12
+ spec.homepage = config["homepage"]
13
+ spec.summary = config["summary"]
14
+ spec.description = config["description"]
15
+
16
+ spec.add_runtime_dependency "brpm_content_framework", ">=0.1.58"
17
+
18
+ if config["dependencies"]
19
+ config["dependencies"].each do |dependency|
20
+ if dependency.is_a?(Hash)
21
+ modul = dependency.keys[0]
22
+ options = dependency.values[0]
23
+ else
24
+ modul = dependency
25
+ options = {}
26
+ end
27
+ spec.add_runtime_dependency modul, options["version"]
28
+ end
29
+ end
30
+
31
+ spec.add_development_dependency "rake"
32
+ spec.add_development_dependency "rspec"
33
+
34
+ spec.files = `git ls-files`.split("\n")
35
+ spec.require_path = 'lib'
36
+
37
+ spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
38
+ spec.bindir = "bin"
39
+ end
@@ -0,0 +1,2 @@
1
+ automation_type: Remote
2
+ agent_type: SSH
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bash
2
+ echo "hi there I'm the bash test script"
@@ -0,0 +1,2 @@
1
+ os_types:
2
+ - Linux
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bash
2
+ echo "hi there I'm the bash test script"
@@ -0,0 +1,3 @@
1
+ description: Test resource automation
2
+ integration_server_type: Bladelogic
3
+ render_as: Tree
@@ -0,0 +1,3 @@
1
+ def execute_script(params, parent_id, offset, max_records)
2
+ BrpmAuto.log("Hi there")
3
+ end
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: brpm_module_test
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Niek Bartholomeus
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-08-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: brpm_content_framework
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.58
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.58
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: Test automation scripts and libraries to run on top of the BRPM Content
56
+ framework. See https://github.com/BMC-RLM/brpm_content_framework for more information
57
+ about the BRPM Content framework
58
+ email: niek.bartholomeus@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - .gitignore
64
+ - .ruby-version
65
+ - .travis.yml
66
+ - Gemfile
67
+ - LICENSE
68
+ - README.md
69
+ - Rakefile
70
+ - automations/test_ruby.meta
71
+ - automations/test_ruby.rb
72
+ - automations/test_shell.meta
73
+ - automations/test_shell.sh
74
+ - config.yml
75
+ - module.gemspec
76
+ - remote_automations/test_remote_dispatcher.meta
77
+ - remote_automations/test_remote_dispatcher.sh
78
+ - remote_automations/test_remote_shell.meta
79
+ - remote_automations/test_remote_shell.sh
80
+ - resource_automations/test_resource.meta
81
+ - resource_automations/test_resource.rb
82
+ homepage: https://github.com/BMC-RLM/brpm_module_test
83
+ licenses:
84
+ - MIT
85
+ metadata: {}
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ requirements: []
101
+ rubyforge_project:
102
+ rubygems_version: 2.1.9
103
+ signing_key:
104
+ specification_version: 4
105
+ summary: Test automation scripts and libraries to run on top of the BRPM Content framework
106
+ test_files: []