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 +7 -7
- data/Gemfile +1 -0
- data/lib/infoblox/resource/zone_auth.rb +6 -3
- data/lib/infoblox/version.rb +1 -1
- data/spec/integration/zone_auth_spec.rb +34 -0
- data/spec/spec_helper.rb +1 -1
- metadata +102 -79
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
@@ -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
|
|
data/lib/infoblox/version.rb
CHANGED
@@ -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
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.
|
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
|
-
|
13
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
-
|
41
|
-
|
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
|
-
|
44
|
-
requirements:
|
45
|
-
-
|
46
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
62
|
-
requirements:
|
63
|
-
-
|
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
|
-
|
70
|
-
requirements:
|
71
|
-
-
|
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
|
-
|
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
|
-
|
85
|
-
- .
|
86
|
-
- .
|
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
|
-
-
|
137
|
-
|
138
|
-
|
139
|
-
|
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.
|
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
|
147
|
-
|
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
|