furnish-ip 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ * 0.0.2 (03/20/2013)
2
+ * Migration to and exploitation of furnish 0.0.2
3
+ * 0.0.1 (03/20/2013)
4
+ * Initial release.
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency 'furnish', '~> 0.0.1'
20
+ gem.add_dependency 'furnish', '~> 0.0.2'
21
21
  gem.add_dependency 'palsy', '~> 0.0.2'
22
22
 
23
23
  gem.add_development_dependency 'rake'
@@ -1,6 +1,6 @@
1
1
  module Furnish
2
2
  class IP
3
3
  # Version for furnish-ip
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
@@ -7,12 +7,9 @@ if ENV["COVERAGE"]
7
7
  end
8
8
  end
9
9
 
10
- require 'minitest/unit'
11
- require 'tempfile'
12
- require 'furnish'
10
+ require 'furnish/test'
13
11
  require 'furnish/ip'
14
12
  require 'furnish/provisioners/ip'
15
13
  require 'furnish/provisioners/auto_ip'
16
- require 'mt_cases'
17
14
 
18
15
  require 'minitest/autorun'
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- class TestAutoIPProvisioner < Furnish::SchedulerTestCase
3
+ class TestAutoIPProvisioner < Furnish::RunningSchedulerTestCase
4
4
  def setup
5
5
  super
6
6
  @ip = Furnish::IP.new("127.0.0.1/24")
@@ -21,7 +21,7 @@ class IPReturningProvisioner
21
21
  end
22
22
  end
23
23
 
24
- class TestIPProvisioner < Furnish::SchedulerTestCase
24
+ class TestIPProvisioner < Furnish::RunningSchedulerTestCase
25
25
  def setup
26
26
  super
27
27
  @ip = Furnish::IP.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: furnish-ip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.0.1
21
+ version: 0.0.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.0.1
29
+ version: 0.0.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: palsy
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -163,6 +163,7 @@ extensions: []
163
163
  extra_rdoc_files: []
164
164
  files:
165
165
  - .gitignore
166
+ - CHANGELOG.md
166
167
  - Gemfile
167
168
  - Guardfile
168
169
  - LICENSE.txt
@@ -174,7 +175,6 @@ files:
174
175
  - lib/furnish/provisioners/auto_ip.rb
175
176
  - lib/furnish/provisioners/ip.rb
176
177
  - test/helper.rb
177
- - test/mt_cases.rb
178
178
  - test/test_auto_ip_provisioner.rb
179
179
  - test/test_ip_lib.rb
180
180
  - test/test_ip_provisioner.rb
@@ -204,7 +204,6 @@ specification_version: 3
204
204
  summary: Generic IP allocator for the Furnish provisioning system
205
205
  test_files:
206
206
  - test/helper.rb
207
- - test/mt_cases.rb
208
207
  - test/test_auto_ip_provisioner.rb
209
208
  - test/test_ip_lib.rb
210
209
  - test/test_ip_provisioner.rb
@@ -1,50 +0,0 @@
1
- # FIXME copied from the furnish repo, should be a first-class thing in the furnish gem others can consume.
2
- module Furnish
3
- class TestCase < MiniTest::Unit::TestCase
4
- def setup
5
- @tempfiles ||= []
6
- file = Tempfile.new('furnish_db')
7
- @tempfiles.push(file)
8
- logfile = Tempfile.new('furnish_log')
9
- @tempfiles.push(logfile)
10
- Furnish.logger = Furnish::Logger.new(logfile, 3)
11
- Furnish.init(file.path)
12
- return file
13
- end
14
-
15
- def teardown
16
- Furnish.logger.close
17
- Furnish.shutdown
18
- @tempfiles.each do |file|
19
- file.unlink
20
- end
21
- end
22
- end
23
-
24
- class SchedulerTestCase < TestCase
25
- attr_reader :sched
26
-
27
- def setup
28
- super
29
- @sched = Furnish::Scheduler.new
30
- @monitor = Thread.new { loop { @sched.running?; sleep 1 } }
31
- @monitor.abort_on_exception = true
32
- @sched.run
33
- end
34
-
35
- def teardown
36
- @sched.stop
37
- sleep 0.3 while @sched.running?
38
- @monitor.kill rescue nil
39
- super
40
- end
41
-
42
- def assert_solved(name)
43
- assert_includes(sched.vm.solved, name, "#{name} is solved in the scheduler")
44
- end
45
-
46
- def refute_solved(name)
47
- refute_includes(sched.vm.solved, name, "#{name} is solved in the scheduler")
48
- end
49
- end
50
- end