kono_epp_client 0.1.1 → 2.0.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 +4 -4
- data/CHANGELOG.md +29 -0
- data/Makefile +13 -0
- data/README.md +20 -3
- data/kono_epp_client.gemspec +4 -1
- data/lib/kono_epp_client/VERSION +1 -1
- data/lib/kono_epp_client/commands/check_contacts.rb +19 -0
- data/lib/{epp/epp_command/kono_epp_check_domains.rb → kono_epp_client/commands/check_domains.rb} +3 -1
- data/lib/kono_epp_client/commands/command.rb +15 -0
- data/lib/kono_epp_client/commands/create_contact.rb +89 -0
- data/lib/kono_epp_client/commands/create_domain.rb +56 -0
- data/lib/kono_epp_client/commands/delete_contact.rb +17 -0
- data/lib/kono_epp_client/commands/delete_domain.rb +16 -0
- data/lib/kono_epp_client/commands/hello.rb +15 -0
- data/lib/kono_epp_client/commands/info_contact.rb +17 -0
- data/lib/kono_epp_client/commands/info_domain.rb +16 -0
- data/lib/kono_epp_client/commands/login.rb +84 -0
- data/lib/kono_epp_client/commands/logout.rb +12 -0
- data/lib/kono_epp_client/commands/poll.rb +18 -0
- data/lib/kono_epp_client/commands/transfer_domain.rb +38 -0
- data/lib/kono_epp_client/commands/update_contact.rb +116 -0
- data/lib/kono_epp_client/commands/update_domain.rb +117 -0
- data/lib/kono_epp_client/dns_sec/add.rb +13 -0
- data/lib/kono_epp_client/dns_sec/ds_data.rb +65 -0
- data/lib/kono_epp_client/dns_sec/rem.rb +14 -0
- data/lib/kono_epp_client/dns_sec/rem_all.rb +10 -0
- data/lib/kono_epp_client/exceptions/error_response.rb +19 -0
- data/lib/kono_epp_client/exceptions.rb +15 -0
- data/lib/kono_epp_client/requires_parameters.rb +16 -0
- data/lib/{epp → kono_epp_client}/server.rb +63 -55
- data/lib/kono_epp_client.rb +4 -16
- data/spec/eager_load_spec.rb +6 -0
- data/spec/factories/ds_data.rb +12 -0
- data/spec/fixtures/dns_sec/add.xml +14 -0
- data/spec/fixtures/dns_sec/ds_data.xml +6 -0
- data/spec/fixtures/dns_sec/rem.xml +14 -0
- data/spec/fixtures/dns_sec/rem_all.xml +3 -0
- data/spec/fixtures/login_response.xml +23 -0
- data/spec/fixtures/login_response_for_dnssec.xml +25 -0
- data/spec/fixtures/snapshots/kono_epp_client/commands/create_domain/_create_with_ds_data_build_extensions.xml.snap +39 -0
- data/spec/fixtures/snapshots/kono_epp_client/commands/login/_login.xml.snap +7 -0
- data/spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_extensions_with_value_xml.xml.snap +14 -0
- data/spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_lang_with_value_xml.xml.snap +11 -0
- data/spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_new_password_with_value_xml.xml.snap +9 -0
- data/spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_services_with_value_xml.xml.snap +12 -0
- data/spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_version_with_value_xml.xml.snap +11 -0
- data/spec/fixtures/snapshots/kono_epp_client/commands/login/_with_id_and_password_login.xml.snap +10 -0
- data/spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_DnsSec_build_extensions.xml.snap +30 -0
- data/spec/{epp/epp_command/kono_epp_check_contacts_spec.rb → lib/commands/check_contacts_spec.rb} +1 -1
- data/spec/{epp/epp_command/kono_epp_check_domains_spec.rb → lib/commands/check_domains_spec.rb} +1 -1
- data/spec/{epp/kono_epp_command_spec.rb → lib/commands/command_spec.rb} +2 -2
- data/spec/lib/commands/create_domain_spec.rb +50 -0
- data/spec/lib/commands/login_spec.rb +87 -0
- data/spec/{epp/epp_command/kono_epp_transfer_domain_spec.rb → lib/commands/transfer_domain_spec.rb} +1 -1
- data/spec/{epp/epp_command/kono_epp_update_domain_spec.rb → lib/commands/update_domain_spec.rb} +20 -4
- data/spec/lib/dns_sec/add_spec.rb +14 -0
- data/spec/lib/dns_sec/ds_data_spec.rb +43 -0
- data/spec/lib/dns_sec/rem_all_spec.rb +11 -0
- data/spec/lib/dns_sec/rem_spec.rb +14 -0
- data/spec/lib/server_spec.rb +304 -0
- data/spec/spec_helper.rb +6 -2
- data/spec/support/context.rb +1 -1
- data/spec/support/factory_bot.rb +8 -0
- data/spec/support/fixtures.rb +16 -0
- data/spec/support/matchers.rb +14 -0
- data/spec/support/parametric.rb +1 -0
- data/spec/support/snapshot.rb +12 -2
- metadata +157 -60
- data/lib/epp/epp_command/check_contacts.rb +0 -17
- data/lib/epp/epp_command/create_contact.rb +0 -87
- data/lib/epp/epp_command/create_domain.rb +0 -44
- data/lib/epp/epp_command/delete_contact.rb +0 -15
- data/lib/epp/epp_command/delete_domain.rb +0 -14
- data/lib/epp/epp_command/hello.rb +0 -13
- data/lib/epp/epp_command/info_contact.rb +0 -15
- data/lib/epp/epp_command/info_domain.rb +0 -14
- data/lib/epp/epp_command/login.rb +0 -79
- data/lib/epp/epp_command/logout.rb +0 -10
- data/lib/epp/epp_command/poll.rb +0 -16
- data/lib/epp/epp_command/transfer_domain.rb +0 -36
- data/lib/epp/epp_command/update_contact.rb +0 -115
- data/lib/epp/epp_command/update_domain.rb +0 -104
- data/lib/epp/epp_command.rb +0 -15
- data/lib/epp/exceptions.rb +0 -28
- data/lib/epp/transport/tcp.rb +0 -93
- data/lib/require_parameters.rb +0 -14
- data/spec/epp/epp_command/kono_epp_create_domain_spec.rb +0 -37
- data/spec/epp/server_spec.rb +0 -69
- /data/lib/{epp/transport/http.rb → kono_epp_client/transport/http_transport.rb} +0 -0
- /data/lib/{epp → kono_epp_client}/transport.rb +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_check_contacts → kono_epp_client/commands/check_contacts}/_construct.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_check_domains → kono_epp_client/commands/check_domains}/_construct.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_create_domain → kono_epp_client/commands/create_domain}/_create.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_transfer_domain → kono_epp_client/commands/transfer_domain}/_con_extension_construct.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_transfer_domain → kono_epp_client/commands/transfer_domain}/_construct.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_update_domain → kono_epp_client/commands/update_domain}/_restore_esiste_l'estensione_di_restore.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_update_domain → kono_epp_client/commands/update_domain}/_update_auth_info_cambia_AUTH_INFO.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_update_domain → kono_epp_client/commands/update_domain}/_update_auth_info_con_nuovo_registrant_cambia_REGISTRANT.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_update_domain → kono_epp_client/commands/update_domain}/_update_contacts_cambia_ADMIN_TECH.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_update_domain → kono_epp_client/commands/update_domain}/_update_nameservers_aggiunge_e_rimuove_ns.xml.snap +0 -0
- /data/spec/fixtures/snapshots/{kono_epp_update_domain → kono_epp_client/commands/update_domain}/_update_status_cambia_status.xml.snap +0 -0
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kono_epp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabio Bonelli
|
@@ -54,6 +54,20 @@ dependencies:
|
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '1.10'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: zeitwerk
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
57
71
|
- !ruby/object:Gem::Dependency
|
58
72
|
name: rspec
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,6 +124,34 @@ dependencies:
|
|
110
124
|
- - ">="
|
111
125
|
- !ruby/object:Gem::Version
|
112
126
|
version: '0'
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: debug
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: factory_bot
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
113
155
|
description: A simple EPP Client
|
114
156
|
email:
|
115
157
|
- jury@archimedianet.it
|
@@ -119,55 +161,85 @@ extensions: []
|
|
119
161
|
extra_rdoc_files: []
|
120
162
|
files:
|
121
163
|
- CHANGELOG.md
|
164
|
+
- Makefile
|
122
165
|
- README.md
|
123
166
|
- Rakefile
|
124
167
|
- kono_epp_client.gemspec
|
125
|
-
- lib/epp/epp_command.rb
|
126
|
-
- lib/epp/epp_command/check_contacts.rb
|
127
|
-
- lib/epp/epp_command/create_contact.rb
|
128
|
-
- lib/epp/epp_command/create_domain.rb
|
129
|
-
- lib/epp/epp_command/delete_contact.rb
|
130
|
-
- lib/epp/epp_command/delete_domain.rb
|
131
|
-
- lib/epp/epp_command/hello.rb
|
132
|
-
- lib/epp/epp_command/info_contact.rb
|
133
|
-
- lib/epp/epp_command/info_domain.rb
|
134
|
-
- lib/epp/epp_command/kono_epp_check_domains.rb
|
135
|
-
- lib/epp/epp_command/login.rb
|
136
|
-
- lib/epp/epp_command/logout.rb
|
137
|
-
- lib/epp/epp_command/poll.rb
|
138
|
-
- lib/epp/epp_command/transfer_domain.rb
|
139
|
-
- lib/epp/epp_command/update_contact.rb
|
140
|
-
- lib/epp/epp_command/update_domain.rb
|
141
|
-
- lib/epp/exceptions.rb
|
142
|
-
- lib/epp/server.rb
|
143
|
-
- lib/epp/transport.rb
|
144
|
-
- lib/epp/transport/http.rb
|
145
|
-
- lib/epp/transport/tcp.rb
|
146
168
|
- lib/kono_epp_client.rb
|
147
169
|
- lib/kono_epp_client/VERSION
|
170
|
+
- lib/kono_epp_client/commands/check_contacts.rb
|
171
|
+
- lib/kono_epp_client/commands/check_domains.rb
|
172
|
+
- lib/kono_epp_client/commands/command.rb
|
173
|
+
- lib/kono_epp_client/commands/create_contact.rb
|
174
|
+
- lib/kono_epp_client/commands/create_domain.rb
|
175
|
+
- lib/kono_epp_client/commands/delete_contact.rb
|
176
|
+
- lib/kono_epp_client/commands/delete_domain.rb
|
177
|
+
- lib/kono_epp_client/commands/hello.rb
|
178
|
+
- lib/kono_epp_client/commands/info_contact.rb
|
179
|
+
- lib/kono_epp_client/commands/info_domain.rb
|
180
|
+
- lib/kono_epp_client/commands/login.rb
|
181
|
+
- lib/kono_epp_client/commands/logout.rb
|
182
|
+
- lib/kono_epp_client/commands/poll.rb
|
183
|
+
- lib/kono_epp_client/commands/transfer_domain.rb
|
184
|
+
- lib/kono_epp_client/commands/update_contact.rb
|
185
|
+
- lib/kono_epp_client/commands/update_domain.rb
|
186
|
+
- lib/kono_epp_client/dns_sec/add.rb
|
187
|
+
- lib/kono_epp_client/dns_sec/ds_data.rb
|
188
|
+
- lib/kono_epp_client/dns_sec/rem.rb
|
189
|
+
- lib/kono_epp_client/dns_sec/rem_all.rb
|
190
|
+
- lib/kono_epp_client/exceptions.rb
|
191
|
+
- lib/kono_epp_client/exceptions/error_response.rb
|
192
|
+
- lib/kono_epp_client/requires_parameters.rb
|
193
|
+
- lib/kono_epp_client/server.rb
|
194
|
+
- lib/kono_epp_client/transport.rb
|
195
|
+
- lib/kono_epp_client/transport/http_transport.rb
|
148
196
|
- lib/kono_epp_client/version.rb
|
149
|
-
-
|
150
|
-
- spec/
|
151
|
-
- spec/
|
152
|
-
- spec/
|
153
|
-
- spec/
|
154
|
-
- spec/
|
155
|
-
- spec/
|
156
|
-
- spec/
|
157
|
-
- spec/fixtures/snapshots/
|
158
|
-
- spec/fixtures/snapshots/
|
159
|
-
- spec/fixtures/snapshots/
|
160
|
-
- spec/fixtures/snapshots/
|
161
|
-
- spec/fixtures/snapshots/
|
162
|
-
- spec/fixtures/snapshots/
|
163
|
-
- spec/fixtures/snapshots/
|
164
|
-
- spec/fixtures/snapshots/
|
165
|
-
- spec/fixtures/snapshots/
|
166
|
-
- spec/fixtures/snapshots/
|
167
|
-
- spec/fixtures/snapshots/
|
197
|
+
- spec/eager_load_spec.rb
|
198
|
+
- spec/factories/ds_data.rb
|
199
|
+
- spec/fixtures/dns_sec/add.xml
|
200
|
+
- spec/fixtures/dns_sec/ds_data.xml
|
201
|
+
- spec/fixtures/dns_sec/rem.xml
|
202
|
+
- spec/fixtures/dns_sec/rem_all.xml
|
203
|
+
- spec/fixtures/login_response.xml
|
204
|
+
- spec/fixtures/login_response_for_dnssec.xml
|
205
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/check_contacts/_construct.xml.snap
|
206
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/check_domains/_construct.xml.snap
|
207
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/create_domain/_create.xml.snap
|
208
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/create_domain/_create_with_ds_data_build_extensions.xml.snap
|
209
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_login.xml.snap
|
210
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_extensions_with_value_xml.xml.snap
|
211
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_lang_with_value_xml.xml.snap
|
212
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_new_password_with_value_xml.xml.snap
|
213
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_services_with_value_xml.xml.snap
|
214
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_version_with_value_xml.xml.snap
|
215
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_with_id_and_password_login.xml.snap
|
216
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/transfer_domain/_con_extension_construct.xml.snap
|
217
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/transfer_domain/_construct.xml.snap
|
218
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_restore_esiste_l'estensione_di_restore.xml.snap
|
219
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_DnsSec_build_extensions.xml.snap
|
220
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_auth_info_cambia_AUTH_INFO.xml.snap
|
221
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_auth_info_con_nuovo_registrant_cambia_REGISTRANT.xml.snap
|
222
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_contacts_cambia_ADMIN_TECH.xml.snap
|
223
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_nameservers_aggiunge_e_rimuove_ns.xml.snap
|
224
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_status_cambia_status.xml.snap
|
225
|
+
- spec/lib/commands/check_contacts_spec.rb
|
226
|
+
- spec/lib/commands/check_domains_spec.rb
|
227
|
+
- spec/lib/commands/command_spec.rb
|
228
|
+
- spec/lib/commands/create_domain_spec.rb
|
229
|
+
- spec/lib/commands/login_spec.rb
|
230
|
+
- spec/lib/commands/transfer_domain_spec.rb
|
231
|
+
- spec/lib/commands/update_domain_spec.rb
|
232
|
+
- spec/lib/dns_sec/add_spec.rb
|
233
|
+
- spec/lib/dns_sec/ds_data_spec.rb
|
234
|
+
- spec/lib/dns_sec/rem_all_spec.rb
|
235
|
+
- spec/lib/dns_sec/rem_spec.rb
|
236
|
+
- spec/lib/server_spec.rb
|
168
237
|
- spec/spec_helper.rb
|
169
238
|
- spec/support/context.rb
|
239
|
+
- spec/support/factory_bot.rb
|
240
|
+
- spec/support/fixtures.rb
|
170
241
|
- spec/support/matchers.rb
|
242
|
+
- spec/support/parametric.rb
|
171
243
|
- spec/support/snapshot.rb
|
172
244
|
- spec/support/superdiff.rb
|
173
245
|
homepage: https://github.com/ArchimediaZerogroup/kono_epp_client
|
@@ -182,7 +254,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
254
|
requirements:
|
183
255
|
- - ">="
|
184
256
|
- !ruby/object:Gem::Version
|
185
|
-
version: '
|
257
|
+
version: '2.7'
|
186
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
259
|
requirements:
|
188
260
|
- - ">="
|
@@ -194,26 +266,51 @@ signing_key:
|
|
194
266
|
specification_version: 4
|
195
267
|
summary: Kono Epp client
|
196
268
|
test_files:
|
197
|
-
- spec/
|
198
|
-
- spec/
|
199
|
-
- spec/
|
200
|
-
- spec/
|
201
|
-
- spec/
|
202
|
-
- spec/
|
203
|
-
- spec/
|
204
|
-
- spec/fixtures/
|
205
|
-
- spec/fixtures/snapshots/
|
206
|
-
- spec/fixtures/snapshots/
|
207
|
-
- spec/fixtures/snapshots/
|
208
|
-
- spec/fixtures/snapshots/
|
209
|
-
- spec/fixtures/snapshots/
|
210
|
-
- spec/fixtures/snapshots/
|
211
|
-
- spec/fixtures/snapshots/
|
212
|
-
- spec/fixtures/snapshots/
|
213
|
-
- spec/fixtures/snapshots/
|
214
|
-
- spec/fixtures/snapshots/
|
269
|
+
- spec/eager_load_spec.rb
|
270
|
+
- spec/factories/ds_data.rb
|
271
|
+
- spec/fixtures/dns_sec/add.xml
|
272
|
+
- spec/fixtures/dns_sec/ds_data.xml
|
273
|
+
- spec/fixtures/dns_sec/rem.xml
|
274
|
+
- spec/fixtures/dns_sec/rem_all.xml
|
275
|
+
- spec/fixtures/login_response.xml
|
276
|
+
- spec/fixtures/login_response_for_dnssec.xml
|
277
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/check_contacts/_construct.xml.snap
|
278
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/check_domains/_construct.xml.snap
|
279
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/create_domain/_create.xml.snap
|
280
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/create_domain/_create_with_ds_data_build_extensions.xml.snap
|
281
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_login.xml.snap
|
282
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_extensions_with_value_xml.xml.snap
|
283
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_lang_with_value_xml.xml.snap
|
284
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_new_password_with_value_xml.xml.snap
|
285
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_services_with_value_xml.xml.snap
|
286
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_tags_version_with_value_xml.xml.snap
|
287
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/login/_with_id_and_password_login.xml.snap
|
288
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/transfer_domain/_con_extension_construct.xml.snap
|
289
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/transfer_domain/_construct.xml.snap
|
290
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_restore_esiste_l'estensione_di_restore.xml.snap
|
291
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_DnsSec_build_extensions.xml.snap
|
292
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_auth_info_cambia_AUTH_INFO.xml.snap
|
293
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_auth_info_con_nuovo_registrant_cambia_REGISTRANT.xml.snap
|
294
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_contacts_cambia_ADMIN_TECH.xml.snap
|
295
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_nameservers_aggiunge_e_rimuove_ns.xml.snap
|
296
|
+
- spec/fixtures/snapshots/kono_epp_client/commands/update_domain/_update_status_cambia_status.xml.snap
|
297
|
+
- spec/lib/commands/check_contacts_spec.rb
|
298
|
+
- spec/lib/commands/check_domains_spec.rb
|
299
|
+
- spec/lib/commands/command_spec.rb
|
300
|
+
- spec/lib/commands/create_domain_spec.rb
|
301
|
+
- spec/lib/commands/login_spec.rb
|
302
|
+
- spec/lib/commands/transfer_domain_spec.rb
|
303
|
+
- spec/lib/commands/update_domain_spec.rb
|
304
|
+
- spec/lib/dns_sec/add_spec.rb
|
305
|
+
- spec/lib/dns_sec/ds_data_spec.rb
|
306
|
+
- spec/lib/dns_sec/rem_all_spec.rb
|
307
|
+
- spec/lib/dns_sec/rem_spec.rb
|
308
|
+
- spec/lib/server_spec.rb
|
215
309
|
- spec/spec_helper.rb
|
216
310
|
- spec/support/context.rb
|
311
|
+
- spec/support/factory_bot.rb
|
312
|
+
- spec/support/fixtures.rb
|
217
313
|
- spec/support/matchers.rb
|
314
|
+
- spec/support/parametric.rb
|
218
315
|
- spec/support/snapshot.rb
|
219
316
|
- spec/support/superdiff.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
class KonoEppCheckContacts < KonoEppCommand
|
2
|
-
def initialize(ids)
|
3
|
-
super(nil, nil)
|
4
|
-
|
5
|
-
command = root.elements['command']
|
6
|
-
|
7
|
-
info = command.add_element "check"
|
8
|
-
|
9
|
-
contact_check = info.add_element("contact:check", {"xmlns:contact" => "urn:ietf:params:xml:ns:contact-1.0"})
|
10
|
-
|
11
|
-
ids.each do |t|
|
12
|
-
contact_id = contact_check.add_element "contact:id"
|
13
|
-
contact_id.text = t
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|
@@ -1,87 +0,0 @@
|
|
1
|
-
class KonoEppCreateContact < KonoEppCommand
|
2
|
-
def initialize( options )
|
3
|
-
super( nil, nil )
|
4
|
-
|
5
|
-
command = root.elements['command']
|
6
|
-
|
7
|
-
create = command.add_element "create"
|
8
|
-
|
9
|
-
contact_create = create.add_element( "contact:create", { "xmlns:contact" => "urn:ietf:params:xml:ns:contact-1.0",
|
10
|
-
"xsi:schemaLocation" => "urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd" } )
|
11
|
-
|
12
|
-
puts options
|
13
|
-
id = contact_create.add_element "contact:id"
|
14
|
-
id.text = options[:id]
|
15
|
-
|
16
|
-
postal_info = contact_create.add_element "contact:postalInfo", { "type" => "loc" }
|
17
|
-
|
18
|
-
name = postal_info.add_element "contact:name"
|
19
|
-
name.text = options[:name]
|
20
|
-
|
21
|
-
unless options[:organization].blank?
|
22
|
-
organization = postal_info.add_element "contact:org"
|
23
|
-
organization.text = options[:organization]
|
24
|
-
end
|
25
|
-
|
26
|
-
addr = postal_info.add_element "contact:addr"
|
27
|
-
|
28
|
-
unless options[:street].blank?
|
29
|
-
street = addr.add_element "contact:street"
|
30
|
-
street.text = options[:street]
|
31
|
-
end
|
32
|
-
|
33
|
-
city = addr.add_element "contact:city"
|
34
|
-
city.text = options[:city]
|
35
|
-
|
36
|
-
unless options[:state].blank?
|
37
|
-
state = addr.add_element "contact:sp"
|
38
|
-
state.text = options[:state]
|
39
|
-
end
|
40
|
-
|
41
|
-
unless options[:postal_code].blank?
|
42
|
-
postal_code = addr.add_element "contact:pc"
|
43
|
-
postal_code.text = options[:postal_code]
|
44
|
-
end
|
45
|
-
|
46
|
-
country_code = addr.add_element "contact:cc"
|
47
|
-
country_code.text = options[:country_code]
|
48
|
-
|
49
|
-
if options[:voice]
|
50
|
-
voice = contact_create.add_element "contact:voice"
|
51
|
-
voice.text = options[:voice]
|
52
|
-
end
|
53
|
-
|
54
|
-
if options[:fax]
|
55
|
-
fax = contact_create.add_element "contact:fax"
|
56
|
-
fax.text = options[:fax]
|
57
|
-
end
|
58
|
-
|
59
|
-
email = contact_create.add_element "contact:email"
|
60
|
-
email.text = options[:email]
|
61
|
-
|
62
|
-
auth_info = contact_create.add_element "contact:authInfo"
|
63
|
-
pw = auth_info.add_element "contact:pw"
|
64
|
-
pw.text = options[:auth_info]
|
65
|
-
|
66
|
-
# FIXME
|
67
|
-
extension = command.add_element "extension"
|
68
|
-
extension_create = extension.add_element "extcon:create", { "xmlns:extcon" => 'http://www.nic.it/ITNIC-EPP/extcon-1.0',
|
69
|
-
"xsi:schemaLocation" => 'http://www.nic.it/ITNIC-EPP/extcon-1.0 extcon-1.0.xsd' }
|
70
|
-
|
71
|
-
publish = extension_create.add_element "extcon:consentForPublishing"
|
72
|
-
publish.text = options[:publish] == "1" ? "true" : "false"
|
73
|
-
|
74
|
-
if options[:is_registrant]
|
75
|
-
extcon_registrant = extension_create.add_element "extcon:registrant"
|
76
|
-
|
77
|
-
extcon_nationality = extcon_registrant.add_element "extcon:nationalityCode"
|
78
|
-
extcon_nationality.text = options[:nationality]
|
79
|
-
|
80
|
-
extcon_entity = extcon_registrant.add_element "extcon:entityType"
|
81
|
-
extcon_entity.text = options[:entity_type]
|
82
|
-
|
83
|
-
extcon_regcode = extcon_registrant.add_element "extcon:regCode"
|
84
|
-
extcon_regcode.text = options[:reg_code]
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
class KonoEppCreateDomain < KonoEppCommand
|
2
|
-
def initialize( options )
|
3
|
-
super( nil, nil )
|
4
|
-
|
5
|
-
command = root.elements['command']
|
6
|
-
create = command.add_element( "create" )
|
7
|
-
|
8
|
-
|
9
|
-
domain_create = create.add_element( "domain:create", { "xmlns:domain" => "urn:ietf:params:xml:ns:domain-1.0",
|
10
|
-
"xsi:schemaLocation" => "urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd" } )
|
11
|
-
|
12
|
-
name = domain_create.add_element "domain:name"
|
13
|
-
name.text = options[:name]
|
14
|
-
|
15
|
-
domain_ns = domain_create.add_element "domain:ns"
|
16
|
-
|
17
|
-
options[:nameservers].each do |ns|
|
18
|
-
host_attr = domain_ns.add_element "domain:hostAttr"
|
19
|
-
host_name = host_attr.add_element "domain:hostName"
|
20
|
-
|
21
|
-
host_name.text = ns[0]
|
22
|
-
|
23
|
-
# FIXME IPv6
|
24
|
-
if ns[1]
|
25
|
-
host_addr = host_attr.add_element "domain:hostAddr", {"ip" => "v4"}
|
26
|
-
host_addr.text = ns[1]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
domain_registrant = domain_create.add_element "domain:registrant"
|
31
|
-
domain_registrant.text = options[:registrant]
|
32
|
-
|
33
|
-
domain_contact = domain_create.add_element "domain:contact", { "type" => "admin" }
|
34
|
-
domain_contact.text = options[:admin]
|
35
|
-
|
36
|
-
domain_contact = domain_create.add_element "domain:contact", { "type" => "tech" }
|
37
|
-
domain_contact.text = options[:tech]
|
38
|
-
|
39
|
-
domain_authinfo = domain_create.add_element "domain:authInfo"
|
40
|
-
|
41
|
-
domain_pw = domain_authinfo.add_element "domain:pw"
|
42
|
-
domain_pw.text = options[:authinfo]
|
43
|
-
end
|
44
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class KonoEppDeleteContact < KonoEppCommand
|
2
|
-
def initialize( id )
|
3
|
-
super( nil, nil )
|
4
|
-
|
5
|
-
command = root.elements['command']
|
6
|
-
|
7
|
-
delete = command.add_element "delete"
|
8
|
-
|
9
|
-
contact_delete = delete.add_element( "contact:delete", { "xmlns:contact" => "urn:ietf:params:xml:ns:contact-1.0",
|
10
|
-
"xsi:schemaLocation" => "urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd" } )
|
11
|
-
|
12
|
-
contact_id = contact_delete.add_element "contact:id"
|
13
|
-
contact_id.text = id
|
14
|
-
end
|
15
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
class KonoEppDeleteDomain < KonoEppCommand
|
2
|
-
def initialize( name )
|
3
|
-
super( nil, nil )
|
4
|
-
|
5
|
-
command = root.elements['command']
|
6
|
-
delete = command.add_element( "delete" )
|
7
|
-
|
8
|
-
domain_delete = delete.add_element( "domain:delete", { "xmlns:domain" => "urn:ietf:params:xml:ns:domain-1.0",
|
9
|
-
"xsi:schemaLocation" => "urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd" } )
|
10
|
-
|
11
|
-
domain_name = domain_delete.add_element "domain:name"
|
12
|
-
domain_name.text = name
|
13
|
-
end
|
14
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class KonoEppHello < REXML::Document
|
2
|
-
def initialize
|
3
|
-
super
|
4
|
-
|
5
|
-
add( XMLDecl.new( "1.0", "UTF-8", "no" ) )
|
6
|
-
|
7
|
-
epp = add_element( "epp", { "xmlns" => "urn:ietf:params:xml:ns:epp-1.0",
|
8
|
-
"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
|
9
|
-
"xsi:schemaLocation" => "urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd" } )
|
10
|
-
|
11
|
-
epp.add_element( "hello" )
|
12
|
-
end
|
13
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class KonoEppInfoContact < KonoEppCommand
|
2
|
-
def initialize( id )
|
3
|
-
super( nil, nil )
|
4
|
-
|
5
|
-
command = root.elements['command']
|
6
|
-
|
7
|
-
info = command.add_element "info"
|
8
|
-
|
9
|
-
contact_info = info.add_element( "contact:info", { "xmlns:contact" => "urn:ietf:params:xml:ns:contact-1.0",
|
10
|
-
"xsi:schemaLocation" => "urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd" } )
|
11
|
-
|
12
|
-
contact_id = contact_info.add_element "contact:id"
|
13
|
-
contact_id.text = id
|
14
|
-
end
|
15
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
class KonoEppInfoDomain < KonoEppCommand
|
2
|
-
def initialize( name )
|
3
|
-
super( nil, nil )
|
4
|
-
|
5
|
-
command = root.elements['command']
|
6
|
-
info = command.add_element( "info" )
|
7
|
-
|
8
|
-
domain_info = info.add_element( "domain:info", { "xmlns:domain" => "urn:ietf:params:xml:ns:domain-1.0",
|
9
|
-
"xsi:schemaLocation" => "urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd" } )
|
10
|
-
|
11
|
-
domain_name = domain_info.add_element "domain:name", { "hosts" => "all" }
|
12
|
-
domain_name.text = name
|
13
|
-
end
|
14
|
-
end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
class KonoEppLogin < KonoEppCommand
|
2
|
-
def initialize( id = nil, password = nil )
|
3
|
-
super( nil, nil )
|
4
|
-
|
5
|
-
@command = root.elements['command']
|
6
|
-
@login = @command.add_element( "login" )
|
7
|
-
|
8
|
-
@login.add_element( "clID" ).text = id if id
|
9
|
-
@login.add_element( "pw" ).text = password if password
|
10
|
-
|
11
|
-
@command.add_element( "clTRID" ).text = "ABC-12345"
|
12
|
-
end
|
13
|
-
|
14
|
-
def version=( value )
|
15
|
-
@options = @login.add_element( "options" ) unless @options
|
16
|
-
@options.add_element( "version") unless @options.elements['version']
|
17
|
-
|
18
|
-
@options.elements['version'].text = value
|
19
|
-
end
|
20
|
-
|
21
|
-
def version
|
22
|
-
version = @options.elements['version']
|
23
|
-
|
24
|
-
version.text if version
|
25
|
-
end
|
26
|
-
|
27
|
-
def lang=( value )
|
28
|
-
@options = @login.add_element( "options" ) unless @options
|
29
|
-
@options.add_element( "lang") unless @options.elements['lang']
|
30
|
-
|
31
|
-
@options.elements['lang'].text = value
|
32
|
-
end
|
33
|
-
|
34
|
-
def lang
|
35
|
-
lang = @options.elements['lang']
|
36
|
-
|
37
|
-
lang.text if version
|
38
|
-
end
|
39
|
-
|
40
|
-
def new_password=( value )
|
41
|
-
newpw = @login.add_element( "newPW" )
|
42
|
-
newpw.text = value
|
43
|
-
end
|
44
|
-
|
45
|
-
def services=( services )
|
46
|
-
svcs = @login.add_element( "svcs" ) unless @login.elements['svcs']
|
47
|
-
services.each {|service| svcs.add_element("objURI").text = service }
|
48
|
-
end
|
49
|
-
|
50
|
-
def services
|
51
|
-
svcs = @login.elements['svcs']
|
52
|
-
|
53
|
-
res = []
|
54
|
-
svcs.elements.each( "objURI" ) { |obj| res << obj.text } if svcs
|
55
|
-
|
56
|
-
return res
|
57
|
-
end
|
58
|
-
|
59
|
-
def extensions=( extensions )
|
60
|
-
svcs = @login.elements['svcs']
|
61
|
-
|
62
|
-
svcs = @login.add_element( "svcs" ) unless svcs
|
63
|
-
|
64
|
-
# Include schema extensions for registrars which require it
|
65
|
-
extensions_container = svcs.add_element("svcExtension") unless extensions.empty?
|
66
|
-
|
67
|
-
for uri in extensions
|
68
|
-
extensions_container.add_element("extURI").text = uri
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
def extensions
|
73
|
-
svc_extension = @login.elements['svcs/svcExtension']
|
74
|
-
|
75
|
-
svc_extension.elements.each( "extURI" ) { |obj| res << obj.text } if svcs_extension
|
76
|
-
|
77
|
-
return res
|
78
|
-
end
|
79
|
-
end
|
data/lib/epp/epp_command/poll.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
class KonoEppPoll < KonoEppCommand
|
2
|
-
def initialize( op = :req )
|
3
|
-
super( nil, nil )
|
4
|
-
|
5
|
-
command = root.elements['command']
|
6
|
-
poll = command.add_element( "poll" )
|
7
|
-
|
8
|
-
poll.add_attribute( "op", op.to_s )
|
9
|
-
end
|
10
|
-
|
11
|
-
def ack_id=( id )
|
12
|
-
poll = root.elements['command/poll']
|
13
|
-
|
14
|
-
poll.add_attribute( "msgID", id )
|
15
|
-
end
|
16
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
class KonoEppTransferDomain < KonoEppCommand
|
2
|
-
def initialize(name, authinfo, op, extension: nil)
|
3
|
-
super(nil, nil)
|
4
|
-
|
5
|
-
command = root.elements['command']
|
6
|
-
transfer = command.add_element("transfer", {"op" => op})
|
7
|
-
# FIXME dovremmo controllare che le possibili opzioni di OP sono 'request', 'cancel', 'approve', 'reject', 'query'
|
8
|
-
|
9
|
-
domain_transfer = transfer.add_element("domain:transfer", {"xmlns:domain" => "urn:ietf:params:xml:ns:domain-1.0",
|
10
|
-
"xsi:schemaLocation" => "urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"})
|
11
|
-
|
12
|
-
domain_name = domain_transfer.add_element "domain:name"
|
13
|
-
domain_name.text = name
|
14
|
-
|
15
|
-
domain_authinfo = domain_transfer.add_element "domain:authInfo"
|
16
|
-
domain_pw = domain_authinfo.add_element "domain:pw"
|
17
|
-
|
18
|
-
domain_pw.text = authinfo
|
19
|
-
|
20
|
-
## Questa estensione è per Modifica del Registrar con contestuale modifica del Registrante
|
21
|
-
if extension
|
22
|
-
|
23
|
-
ext_elm = command.add_element "extension"
|
24
|
-
ext_trade = ext_elm.add_element "extdom:trade", {"xmlns:extdom"=>"http://www.nic.it/ITNIC-EPP/extdom-2.0",
|
25
|
-
"xsi:schemaLocation" => "http://www.nic.it/ITNIC-EPP/extdom-2.0 extdom-2.0.xsd"}
|
26
|
-
|
27
|
-
transfer_trade = ext_trade.add_element "extdom:transferTrade"
|
28
|
-
transfer_trade.add_element("extdom:newRegistrant").text = extension[:new_registrant] if extension[:new_registrant]
|
29
|
-
if extension[:new_auth_info]
|
30
|
-
transfer_trade.add_element("extdom:newAuthInfo").add_element("extdom:pw").tap{|x|x.text=extension[:new_auth_info]}
|
31
|
-
end
|
32
|
-
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
36
|
-
end
|