infoblox 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA512:
3
- data.tar.gz: fe70db9970416b97a4b479ee0a038d400ceb8760206912a169a473b567305108cd12f2584345e571d391c2fb3b4e94f3fe98ee739d35f66e389718b3b47515b9
4
- metadata.gz: 32e97f4d1181671747fc75e5f6d2bf0bb6c444bbe3bf23ad68dba24312fb9c0308a5e8a26ab17479e8eb355fcbb0a780515493e2dd9b3d5b89c0cd1d99034ee3
5
- SHA1:
6
- data.tar.gz: 0894fe3f72ec58287022a14e6a05dfd1a566054e
7
- metadata.gz: 7e4f651a69f6130d8616bcf16e7e3bf5c234699b
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 04cfd63562c0e73973fc41cd7d72a2663164a044
4
+ data.tar.gz: feecc117f3ea8c590c8c420d853b7e968b63edbb
5
+ SHA512:
6
+ metadata.gz: e990602cb4107c83bcef63b6e5ba6252d2a7e572a88b938756b827b38139b052a53ea6f2ded17b4aa361fcb8107c515b02bbce63b442b360c17c710d828c089b
7
+ data.tar.gz: 6886798cc9934ba8440c1412c577e9cb14360bcd6fcdfabf1942978a5c543c752809fa425156ce0492114bb5541e85d0203498b5e545ca44ec29da3d901fd642
data/Gemfile CHANGED
@@ -6,5 +6,6 @@ gemspec
6
6
  if ENV['INTEGRATION']
7
7
  group :test do
8
8
  gem 'highline'
9
+ gem 'pry'
9
10
  end
10
11
  end
@@ -1,11 +1,14 @@
1
+ ##
2
+ # ZoneAuth is only availabe in WAPI_VERSION >= 1.2
3
+ #
1
4
  module Infoblox
2
5
  class ZoneAuth < Resource
3
- attr_accessor :fqdn
4
-
5
6
  remote_attr_accessor :comment,
6
7
  :disable,
7
8
  :extattrs
8
-
9
+
10
+ remote_post_accessor :fqdn
11
+
9
12
  remote_attr_reader :address,
10
13
  :network_view
11
14
 
@@ -1,3 +1,3 @@
1
1
  module Infoblox
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -0,0 +1,34 @@
1
+ if ENV['INTEGRATION']
2
+ describe 'Infoblox::ZoneAuth' do
3
+ describe '.find' do
4
+ it 'should find' do
5
+ each_version do
6
+ next if Infoblox.wapi_version < '1.1'
7
+ # the empty result will be [], so nil is bad.
8
+ expect(Infoblox::ZoneAuth.find(connection, :_max_results => 1)).to_not be_nil
9
+ end
10
+ end
11
+
12
+ it 'should create, update, and destroy' do
13
+ failure = false
14
+ each_version do
15
+ next if Infoblox.wapi_version < '1.1'
16
+ @zone_auth = Infoblox::ZoneAuth.new(:connection => connection)
17
+ begin
18
+ @zone_auth.fqdn = "poc-infobloxgem-test1.ep.gdi"
19
+ @zone_auth.post
20
+ @zone_auth = Infoblox::ZoneAuth.find(connection, {"fqdn" => "poc-infobloxgem-test1.ep.gdi"}).first
21
+ @zone_auth.comment = "Test zone auth. Delete me"
22
+ @zone_auth.put
23
+ rescue Exception => e
24
+ puts e
25
+ failure = true
26
+ ensure
27
+ @zone_auth.delete
28
+ end
29
+ end
30
+ fail if failure
31
+ end
32
+ end
33
+ end
34
+ end
data/spec/spec_helper.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  #
6
6
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
7
  require File.expand_path("../../lib/infoblox", __FILE__)
8
- Bundler.setup(:test)
8
+ Bundler.require(:test)
9
9
  if ENV['INTEGRATION']
10
10
  require 'highline/import'
11
11
  end
metadata CHANGED
@@ -1,90 +1,109 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: infoblox
3
- version: !ruby/object:Gem::Version
4
- version: 0.5.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.1
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Billy Reisinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2015-08-11 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- prerelease: false
16
- requirement: &id001 !ruby/object:Gem::Requirement
17
- requirements:
18
- - &id002
19
- - ">="
20
- - !ruby/object:Gem::Version
21
- version: "0"
22
- type: :runtime
23
- name: json
24
- version_requirements: *id001
25
- - !ruby/object:Gem::Dependency
26
- prerelease: false
27
- requirement: &id003 !ruby/object:Gem::Requirement
28
- requirements:
29
- - *id002
30
- type: :runtime
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
31
14
  name: faraday
32
- version_requirements: *id003
33
- - !ruby/object:Gem::Dependency
34
- prerelease: false
35
- requirement: &id004 !ruby/object:Gem::Requirement
36
- requirements:
37
- - *id002
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
38
20
  type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
39
28
  name: faraday_middleware
40
- version_requirements: *id004
41
- - !ruby/object:Gem::Dependency
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
42
35
  prerelease: false
43
- requirement: &id005 !ruby/object:Gem::Requirement
44
- requirements:
45
- - *id002
46
- type: :development
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
- version_requirements: *id005
49
- - !ruby/object:Gem::Dependency
50
- prerelease: false
51
- requirement: &id006 !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ~>
54
- - !ruby/object:Gem::Version
55
- version: "1.3"
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
56
48
  type: :development
57
- name: bundler
58
- version_requirements: *id006
59
- - !ruby/object:Gem::Dependency
60
49
  prerelease: false
61
- requirement: &id007 !ruby/object:Gem::Requirement
62
- requirements:
63
- - *id002
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
64
62
  type: :development
65
- name: rake
66
- version_requirements: *id007
67
- - !ruby/object:Gem::Dependency
68
63
  prerelease: false
69
- requirement: &id008 !ruby/object:Gem::Requirement
70
- requirements:
71
- - *id002
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
72
76
  type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
73
84
  name: pry
74
- version_requirements: *id008
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
75
97
  description: A Ruby wrapper to the Infoblox WAPI
76
- email:
98
+ email:
77
99
  - billy.reisinger@govdelivery.com
78
100
  executables: []
79
-
80
101
  extensions: []
81
-
82
102
  extra_rdoc_files: []
83
-
84
- files:
85
- - .gitignore
86
- - .rspec
87
- - .travis.yml
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".travis.yml"
88
107
  - Gemfile
89
108
  - LICENSE.txt
90
109
  - README.md
@@ -117,34 +136,37 @@ files:
117
136
  - spec/integration/cname_spec.rb
118
137
  - spec/integration/host_ipv4addr_spec.rb
119
138
  - spec/integration/host_spec.rb
139
+ - spec/integration/zone_auth_spec.rb
120
140
  - spec/range_spec.rb
121
141
  - spec/resource_spec.rb
122
142
  - spec/search_spec.rb
123
143
  - spec/spec_helper.rb
124
144
  homepage: https://github.com/govdelivery/infoblox
125
- licenses:
145
+ licenses:
126
146
  - MIT
127
147
  metadata: {}
128
-
129
148
  post_install_message:
130
149
  rdoc_options: []
131
-
132
- require_paths:
150
+ require_paths:
133
151
  - lib
134
- required_ruby_version: !ruby/object:Gem::Requirement
135
- requirements:
136
- - *id002
137
- required_rubygems_version: !ruby/object:Gem::Requirement
138
- requirements:
139
- - *id002
152
+ required_ruby_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ required_rubygems_version: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
140
162
  requirements: []
141
-
142
163
  rubyforge_project:
143
- rubygems_version: 2.0.17
164
+ rubygems_version: 2.4.6
144
165
  signing_key:
145
166
  specification_version: 4
146
- summary: This gem is a Ruby interface to the Infoblox WAPI. Using the gem, you can query, create, update, and delete DNS records in your Infoblox instance.
147
- test_files:
167
+ summary: This gem is a Ruby interface to the Infoblox WAPI. Using the gem, you can
168
+ query, create, update, and delete DNS records in your Infoblox instance.
169
+ test_files:
148
170
  - spec/connection_spec.rb
149
171
  - spec/host_ipv4addr_spec.rb
150
172
  - spec/host_spec.rb
@@ -152,6 +174,7 @@ test_files:
152
174
  - spec/integration/cname_spec.rb
153
175
  - spec/integration/host_ipv4addr_spec.rb
154
176
  - spec/integration/host_spec.rb
177
+ - spec/integration/zone_auth_spec.rb
155
178
  - spec/range_spec.rb
156
179
  - spec/resource_spec.rb
157
180
  - spec/search_spec.rb