beaker-abs 0.7.0 → 0.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64463104e5baa6488316a4824290f54d746e9ad36a91fad15d4e549a45d525fa
4
- data.tar.gz: 4c957500c3726171b389eb6610b4c65e8197f984edb868e2da31f8cdf67236cb
3
+ metadata.gz: 542e094d8256f1b3d3ada74a529c5c8f1ca43bdd6160d2080c5d5dd233004440
4
+ data.tar.gz: 4be53717ea6a8ec508a8053f4556ae1e21932aa239c868edbdd30c371c99f860
5
5
  SHA512:
6
- metadata.gz: fc6272ea353435e50fa23c78635db4701a8fa2086ea0a44ce074e5aa95e56c16568618d84f8140d12d4bb7d4bbbe8c3f3d8f283cb315708589113c3939dcea9e
7
- data.tar.gz: d094be28dac020761822898a028593b3f4e3c4b3de0cfcc2ea3fc7ed6c52ea508c30e18d76940e9840a50d3d7c4b1379bf15bc9d2160dbd02a37cf214882b40b
6
+ metadata.gz: 35abd48debcfb67e37d176a493e6bb74643f41c83e3ca3c92ddb5554635f97dae70d70fd2c922a47e19e6ea82d4ab8c631588e698c34aa051a74c7038eba49e0
7
+ data.tar.gz: 60d24bfed3d554ebe8b8743dfb7889228f4a2ded06cb6a2f19a5449137d6a14a94b5412344263a8b64d37e6ad454c0259928c3df5fafe8d079d5e70b40e375b3
data/README.md CHANGED
@@ -51,6 +51,23 @@ the environment variable ABS_SERVICE_NAME or the top level option in the hosts f
51
51
  it will take precedence over CI tests. Be careful not to run a CI test with this option. The priority can be configured via
52
52
  the environment variable ABS_SERVICE_PRIORITY or the top level option in the hosts file abs_service_priority.
53
53
 
54
+ #### Examples
55
+
56
+ Changing from default priority 1 to 3 via env var
57
+ ```
58
+ ABS_SERVICE_PRIORITY=3 bundle exec beaker --provision --hosts=hosts.cfg --tests acceptance/tests
59
+ ```
60
+
61
+ Changing the service name to look for in ~/.vmfloaty.yml via a beaker option file
62
+ ```
63
+ $ cat options.rb
64
+ {
65
+ provision: 'true',
66
+ abs_service_name: "FOOBAR"
67
+ }
68
+ $ bundle exec beaker --hosts=hosts.cfg --tests acceptance/tests --options options.rb
69
+ ```
70
+
54
71
  ## Development
55
72
 
56
73
  After checking out the repo, run `bundle install --path .bundle` to install dependencies. Then, run `bundle exec rake test` to run the tests.
@@ -1,5 +1,5 @@
1
1
  module BeakerAbs
2
2
  module Version
3
- STRING = '0.7.0'
3
+ STRING = '0.8.1'
4
4
  end
5
5
  end
@@ -6,6 +6,17 @@ require 'vmfloaty/conf'
6
6
  require 'vmfloaty/utils'
7
7
 
8
8
  module Beaker
9
+ class Clifloaty
10
+ # the floaty service needs a 'cli' object that would normally represent the flags passed on the command line
11
+ # that object is then "merged" with the floaty config files to add/change options
12
+ # creating a dummy cli here
13
+ attr_reader :url, :token, :user, :service, :priority
14
+ def initialize(service, priority)
15
+ @service = service #the name of the service you want to use
16
+ @priority = priority
17
+ end
18
+ end
19
+
9
20
  class Abs < Beaker::Hypervisor
10
21
  def initialize(hosts, options)
11
22
  @options = options
@@ -91,13 +102,7 @@ module Beaker
91
102
  config = Conf.read_config # get the vmfloaty config file in home dir
92
103
 
93
104
  # TODO: the options object provided by the floaty cli is required in get_service_config()
94
- # we should make it optional or accept nil
95
- cli = Object.new
96
- def cli.service() @abs_service_name end
97
- def cli.priority() @abs_service_priority end # forces going ahead of queue
98
- def cli.url() nil end
99
- def cli.token() nil end
100
- def cli.user() nil end
105
+ cli = Clifloaty.new(@abs_service_name, @abs_service_priority)
101
106
 
102
107
  #the service object is the interfacte to all methods
103
108
  abs_service = Service.new(cli, config)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-abs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Cooper
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-12-10 00:00:00.000000000 Z
12
+ date: 2020-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: beaker