mailsafepro 1.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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +256 -0
- data/Rakefile +10 -0
- data/docs/APIKeyCreateRequest.md +20 -0
- data/docs/APIKeyListResponse.md +22 -0
- data/docs/APIKeyMeta.md +34 -0
- data/docs/APIKeysApi.md +1241 -0
- data/docs/AuthenticationApi.md +1171 -0
- data/docs/BatchEmailResponse.md +28 -0
- data/docs/BatchValidationRequest.md +26 -0
- data/docs/BillingApi.md +689 -0
- data/docs/BodyChangePlanBillingBillingChangePlanPost.md +18 -0
- data/docs/CheckoutRequest.md +18 -0
- data/docs/CheckoutSessionResponse.md +18 -0
- data/docs/DNSInfo.md +26 -0
- data/docs/DNSRecordDKIM.md +26 -0
- data/docs/DNSRecordDMARC.md +24 -0
- data/docs/DNSRecordSPF.md +24 -0
- data/docs/DefaultApi.md +141 -0
- data/docs/DeveloperToolsApi.md +154 -0
- data/docs/EmailResponse.md +46 -0
- data/docs/EmailValidationApi.md +479 -0
- data/docs/EmailValidationRequest.md +26 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/HealthApi.md +937 -0
- data/docs/JobCreateRequest.md +32 -0
- data/docs/JobCreateResponse.md +22 -0
- data/docs/JobResultEntry.md +34 -0
- data/docs/JobResultsPage.md +26 -0
- data/docs/JobStatusResponse.md +28 -0
- data/docs/JobsApi.md +433 -0
- data/docs/KeyRotationRequest.md +22 -0
- data/docs/LogsApi.md +154 -0
- data/docs/PlanEnum.md +15 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/RegisterEndpoint.md +18 -0
- data/docs/ResponseTestNotificationBillingBillingTestNotificationPostValue.md +15 -0
- data/docs/RiskLevelEnum.md +15 -0
- data/docs/RotateSecret.md +18 -0
- data/docs/SMTPInfo.md +26 -0
- data/docs/SubscriptionResponse.md +24 -0
- data/docs/UserLogin.md +20 -0
- data/docs/UserRegister.md +22 -0
- data/docs/ValidationApi.md +479 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/WebhookCreate.md +24 -0
- data/docs/WebhookResponse.md +22 -0
- data/docs/WebhookUpdate.md +24 -0
- data/docs/WebhooksApi.md +776 -0
- data/docs/WebhooksManagementApi.md +500 -0
- data/git_push.sh +57 -0
- data/lib/mailsafepro/api/api_keys_api.rb +1148 -0
- data/lib/mailsafepro/api/authentication_api.rb +1114 -0
- data/lib/mailsafepro/api/billing_api.rb +670 -0
- data/lib/mailsafepro/api/default_api.rb +149 -0
- data/lib/mailsafepro/api/developer_tools_api.rb +155 -0
- data/lib/mailsafepro/api/email_validation_api.rb +486 -0
- data/lib/mailsafepro/api/health_api.rb +877 -0
- data/lib/mailsafepro/api/jobs_api.rb +452 -0
- data/lib/mailsafepro/api/logs_api.rb +155 -0
- data/lib/mailsafepro/api/validation_api.rb +486 -0
- data/lib/mailsafepro/api/webhooks_api.rb +768 -0
- data/lib/mailsafepro/api/webhooks_management_api.rb +480 -0
- data/lib/mailsafepro/api_client.rb +397 -0
- data/lib/mailsafepro/api_error.rb +58 -0
- data/lib/mailsafepro/api_model_base.rb +88 -0
- data/lib/mailsafepro/configuration.rb +316 -0
- data/lib/mailsafepro/models/api_key_create_request.rb +185 -0
- data/lib/mailsafepro/models/api_key_list_response.rb +240 -0
- data/lib/mailsafepro/models/api_key_meta.rb +338 -0
- data/lib/mailsafepro/models/batch_email_response.rb +348 -0
- data/lib/mailsafepro/models/batch_validation_request.rb +290 -0
- data/lib/mailsafepro/models/body_change_plan_billing_billing_change_plan_post.rb +164 -0
- data/lib/mailsafepro/models/checkout_request.rb +166 -0
- data/lib/mailsafepro/models/checkout_session_response.rb +165 -0
- data/lib/mailsafepro/models/dns_info.rb +193 -0
- data/lib/mailsafepro/models/dns_record_dkim.rb +189 -0
- data/lib/mailsafepro/models/dns_record_dmarc.rb +179 -0
- data/lib/mailsafepro/models/dns_record_spf.rb +179 -0
- data/lib/mailsafepro/models/email_response.rb +454 -0
- data/lib/mailsafepro/models/email_validation_request.rb +252 -0
- data/lib/mailsafepro/models/http_validation_error.rb +149 -0
- data/lib/mailsafepro/models/job_create_request.rb +251 -0
- data/lib/mailsafepro/models/job_create_response.rb +216 -0
- data/lib/mailsafepro/models/job_result_entry.rb +257 -0
- data/lib/mailsafepro/models/job_results_page.rb +270 -0
- data/lib/mailsafepro/models/job_status_response.rb +231 -0
- data/lib/mailsafepro/models/key_rotation_request.rb +269 -0
- data/lib/mailsafepro/models/plan_enum.rb +41 -0
- data/lib/mailsafepro/models/priority_enum.rb +41 -0
- data/lib/mailsafepro/models/register_endpoint.rb +173 -0
- data/lib/mailsafepro/models/response_test_notification_billing_billing_test_notification_post_value.rb +103 -0
- data/lib/mailsafepro/models/risk_level_enum.rb +42 -0
- data/lib/mailsafepro/models/rotate_secret.rb +164 -0
- data/lib/mailsafepro/models/smtp_info.rb +206 -0
- data/lib/mailsafepro/models/subscription_response.rb +196 -0
- data/lib/mailsafepro/models/user_login.rb +211 -0
- data/lib/mailsafepro/models/user_register.rb +243 -0
- data/lib/mailsafepro/models/validation_error.rb +218 -0
- data/lib/mailsafepro/models/validation_error_loc_inner.rb +103 -0
- data/lib/mailsafepro/models/webhook_create.rb +213 -0
- data/lib/mailsafepro/models/webhook_response.rb +185 -0
- data/lib/mailsafepro/models/webhook_update.rb +204 -0
- data/lib/mailsafepro/version.rb +15 -0
- data/lib/mailsafepro.rb +88 -0
- data/mailsafepro.gemspec +39 -0
- data/spec/api/api_keys_api_spec.rb +245 -0
- data/spec/api/authentication_api_spec.rb +239 -0
- data/spec/api/billing_api_spec.rb +155 -0
- data/spec/api/default_api_spec.rb +60 -0
- data/spec/api/developer_tools_api_spec.rb +62 -0
- data/spec/api/email_validation_api_spec.rb +125 -0
- data/spec/api/health_api_spec.rb +200 -0
- data/spec/api/jobs_api_spec.rb +119 -0
- data/spec/api/logs_api_spec.rb +62 -0
- data/spec/api/validation_api_spec.rb +125 -0
- data/spec/api/webhooks_api_spec.rb +172 -0
- data/spec/api/webhooks_management_api_spec.rb +120 -0
- data/spec/models/api_key_create_request_spec.rb +42 -0
- data/spec/models/api_key_list_response_spec.rb +48 -0
- data/spec/models/api_key_meta_spec.rb +84 -0
- data/spec/models/batch_email_response_spec.rb +66 -0
- data/spec/models/batch_validation_request_spec.rb +60 -0
- data/spec/models/body_change_plan_billing_billing_change_plan_post_spec.rb +36 -0
- data/spec/models/checkout_request_spec.rb +36 -0
- data/spec/models/checkout_session_response_spec.rb +36 -0
- data/spec/models/dns_info_spec.rb +60 -0
- data/spec/models/dns_record_dkim_spec.rb +60 -0
- data/spec/models/dns_record_dmarc_spec.rb +54 -0
- data/spec/models/dns_record_spf_spec.rb +54 -0
- data/spec/models/email_response_spec.rb +120 -0
- data/spec/models/email_validation_request_spec.rb +60 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/job_create_request_spec.rb +78 -0
- data/spec/models/job_create_response_spec.rb +48 -0
- data/spec/models/job_result_entry_spec.rb +84 -0
- data/spec/models/job_results_page_spec.rb +60 -0
- data/spec/models/job_status_response_spec.rb +66 -0
- data/spec/models/key_rotation_request_spec.rb +48 -0
- data/spec/models/plan_enum_spec.rb +30 -0
- data/spec/models/priority_enum_spec.rb +30 -0
- data/spec/models/register_endpoint_spec.rb +36 -0
- data/spec/models/response_test_notification_billing_billing_test_notification_post_value_spec.rb +21 -0
- data/spec/models/risk_level_enum_spec.rb +30 -0
- data/spec/models/rotate_secret_spec.rb +36 -0
- data/spec/models/smtp_info_spec.rb +60 -0
- data/spec/models/subscription_response_spec.rb +54 -0
- data/spec/models/user_login_spec.rb +42 -0
- data/spec/models/user_register_spec.rb +48 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +54 -0
- data/spec/models/webhook_response_spec.rb +48 -0
- data/spec/models/webhook_update_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +291 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Email Validation API — Enterprise-grade Email Verification
|
|
3
|
+
|
|
4
|
+
#API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for MailSafePro::DefaultApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DefaultApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = MailSafePro::DefaultApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of DefaultApi' do
|
|
30
|
+
it 'should create an instance of DefaultApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(MailSafePro::DefaultApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for ask_gemini_gemini_get
|
|
36
|
+
# Ask Gemini
|
|
37
|
+
# Llama a Gemini para generar texto a partir de un prompt
|
|
38
|
+
# @param prompt
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Object]
|
|
41
|
+
describe 'ask_gemini_gemini_get test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for run_audit_admin_audit_project_post
|
|
48
|
+
# Run Audit
|
|
49
|
+
# Lanza auditoría en path (ruta absoluta o relativa a la raíz del proyecto). Header obligatorio: X-Audit-Token: <AUDIT_SECRET>
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @option opts [String] :path
|
|
52
|
+
# @option opts [String] :x_audit_token
|
|
53
|
+
# @return [Object]
|
|
54
|
+
describe 'run_audit_admin_audit_project_post test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Email Validation API — Enterprise-grade Email Verification
|
|
3
|
+
|
|
4
|
+
#API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for MailSafePro::DeveloperToolsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DeveloperToolsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = MailSafePro::DeveloperToolsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of DeveloperToolsApi' do
|
|
30
|
+
it 'should create an instance of DeveloperToolsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(MailSafePro::DeveloperToolsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for clear_request_logs_logs_logs_requests_delete
|
|
36
|
+
# Clear Request Logs
|
|
37
|
+
# Clear all request logs for current user.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [Object]
|
|
40
|
+
describe 'clear_request_logs_logs_logs_requests_delete test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for get_request_logs_logs_logs_requests_get
|
|
47
|
+
# Get Request Logs
|
|
48
|
+
# Get request logs for authenticated user.
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @option opts [Integer] :limit Max results to return
|
|
51
|
+
# @option opts [Integer] :status_code Filter by HTTP status code
|
|
52
|
+
# @option opts [String] :endpoint Filter by endpoint path
|
|
53
|
+
# @option opts [String] :method Filter by HTTP method (GET, POST, etc)
|
|
54
|
+
# @option opts [Time] :since Filter by timestamp (ISO 8601)
|
|
55
|
+
# @return [Object]
|
|
56
|
+
describe 'get_request_logs_logs_logs_requests_get test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Email Validation API — Enterprise-grade Email Verification
|
|
3
|
+
|
|
4
|
+
#API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for MailSafePro::EmailValidationApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'EmailValidationApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = MailSafePro::EmailValidationApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of EmailValidationApi' do
|
|
30
|
+
it 'should create an instance of EmailValidationApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(MailSafePro::EmailValidationApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for batch_validate_emails_validate_batch_post
|
|
36
|
+
# Batch Email Validation
|
|
37
|
+
# Valida múltiples direcciones de email en una sola solicitud.
|
|
38
|
+
# @param batch_validation_request
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :x_api_key
|
|
41
|
+
# @option opts [String] :authorization
|
|
42
|
+
# @return [BatchEmailResponse]
|
|
43
|
+
describe 'batch_validate_emails_validate_batch_post test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for batch_validate_upload_validate_batch_upload_post
|
|
50
|
+
# Batch Email Validation via File Upload
|
|
51
|
+
# @param file
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @option opts [String] :x_api_key
|
|
54
|
+
# @option opts [String] :authorization
|
|
55
|
+
# @option opts [String] :column
|
|
56
|
+
# @option opts [Boolean] :include_raw_dns
|
|
57
|
+
# @option opts [Boolean] :check_smtp
|
|
58
|
+
# @return [Object]
|
|
59
|
+
describe 'batch_validate_upload_validate_batch_upload_post test' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# unit tests for get_cache_stats_validate_stats_cache_get
|
|
66
|
+
# Get Cache Stats
|
|
67
|
+
# Obtiene estadísticas de cache del sistema.
|
|
68
|
+
# @param [Hash] opts the optional parameters
|
|
69
|
+
# @return [Object]
|
|
70
|
+
describe 'get_cache_stats_validate_stats_cache_get test' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# unit tests for get_usage_stats_validate_stats_usage_get
|
|
77
|
+
# Get Usage Stats
|
|
78
|
+
# Obtiene estadísticas de uso del cliente actual.
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @option opts [String] :x_api_key
|
|
81
|
+
# @option opts [String] :authorization
|
|
82
|
+
# @return [Object]
|
|
83
|
+
describe 'get_usage_stats_validate_stats_usage_get test' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# unit tests for health_check_validate_health_get
|
|
90
|
+
# Health Check
|
|
91
|
+
# Health check completo del servicio de validación.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Object]
|
|
94
|
+
describe 'health_check_validate_health_get test' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# unit tests for health_check_validate_health_head
|
|
101
|
+
# Health Check
|
|
102
|
+
# Health check completo del servicio de validación.
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Object]
|
|
105
|
+
describe 'health_check_validate_health_head test' do
|
|
106
|
+
it 'should work' do
|
|
107
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# unit tests for validate_email_endpoint_validate_email_post
|
|
112
|
+
# Validate Email Endpoint
|
|
113
|
+
# ✅ Endpoint de validación de email con timeout y fallback robusto. Cambios principales: - Timeout explícito por plan (FREE: 15s, PREMIUM: 45s, ENTERPRISE: 60s) - Fallback BASIC seguro si se vence - SIEMPRE retorna JSONResponse válida - client_plan en TODAS las respuestas - spam_trap_check ejecutado ANTES del timeout para estar disponible en fallback - Manejo de errores con ResponseBuilder - ✅ NUEVO: Soporte para TLD .test en testing_mode
|
|
114
|
+
# @param email_validation_request
|
|
115
|
+
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @option opts [String] :x_api_key
|
|
117
|
+
# @option opts [String] :authorization
|
|
118
|
+
# @return [Object]
|
|
119
|
+
describe 'validate_email_endpoint_validate_email_post test' do
|
|
120
|
+
it 'should work' do
|
|
121
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
end
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Email Validation API — Enterprise-grade Email Verification
|
|
3
|
+
|
|
4
|
+
#API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for MailSafePro::HealthApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'HealthApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = MailSafePro::HealthApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of HealthApi' do
|
|
30
|
+
it 'should create an instance of HealthApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(MailSafePro::HealthApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for basic_health_health_get
|
|
36
|
+
# Basic health check
|
|
37
|
+
# Basic health check for load balancers. Returns 200 if service is running. Fast response, no dependency checks.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [Object]
|
|
40
|
+
describe 'basic_health_health_get test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for basic_health_health_get_0
|
|
47
|
+
# Basic health check
|
|
48
|
+
# Basic health check for load balancers. Returns 200 if service is running. Fast response, no dependency checks.
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @return [Object]
|
|
51
|
+
describe 'basic_health_health_get_0 test' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# unit tests for circuit_breaker_status_admin_circuit_breaker_status_get
|
|
58
|
+
# Circuit Breaker Status
|
|
59
|
+
# ✅ Circuit breaker status for all services. Shows state of Redis, SMTP, DNS, and other circuit breakers.
|
|
60
|
+
# @param [Hash] opts the optional parameters
|
|
61
|
+
# @return [Object]
|
|
62
|
+
describe 'circuit_breaker_status_admin_circuit_breaker_status_get test' do
|
|
63
|
+
it 'should work' do
|
|
64
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# unit tests for detailed_health_health_detailed_get
|
|
69
|
+
# Detailed health check
|
|
70
|
+
# Detailed health check with all component statuses. Returns comprehensive health information for monitoring.
|
|
71
|
+
# @param [Hash] opts the optional parameters
|
|
72
|
+
# @return [Object]
|
|
73
|
+
describe 'detailed_health_health_detailed_get test' do
|
|
74
|
+
it 'should work' do
|
|
75
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# unit tests for detailed_health_health_detailed_get_0
|
|
80
|
+
# Detailed health check
|
|
81
|
+
# Detailed health check with all component statuses. Returns comprehensive health information for monitoring.
|
|
82
|
+
# @param [Hash] opts the optional parameters
|
|
83
|
+
# @return [Object]
|
|
84
|
+
describe 'detailed_health_health_detailed_get_0 test' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# unit tests for healthcheck_healthcheck_get
|
|
91
|
+
# Healthcheck
|
|
92
|
+
# Basic health check endpoint (backward compatibility)
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [Object]
|
|
95
|
+
describe 'healthcheck_healthcheck_get test' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# unit tests for healthcheck_healthcheck_head
|
|
102
|
+
# Healthcheck
|
|
103
|
+
# Basic health check endpoint (backward compatibility)
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @return [Object]
|
|
106
|
+
describe 'healthcheck_healthcheck_head test' do
|
|
107
|
+
it 'should work' do
|
|
108
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# unit tests for liveness_check_health_liveness_get
|
|
113
|
+
# Liveness Check
|
|
114
|
+
# ✅ MEJORA: Kubernetes liveness probe Returns 200 if the application is alive (not deadlocked) Used by Kubernetes to restart the pod if unhealthy
|
|
115
|
+
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @return [Object]
|
|
117
|
+
describe 'liveness_check_health_liveness_get test' do
|
|
118
|
+
it 'should work' do
|
|
119
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# unit tests for liveness_health_live_get
|
|
124
|
+
# Liveness probe (Kubernetes)
|
|
125
|
+
# Kubernetes liveness probe. Returns 200 if the application is running. Should restart pod if this fails.
|
|
126
|
+
# @param [Hash] opts the optional parameters
|
|
127
|
+
# @return [Object]
|
|
128
|
+
describe 'liveness_health_live_get test' do
|
|
129
|
+
it 'should work' do
|
|
130
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# unit tests for liveness_health_live_get_0
|
|
135
|
+
# Liveness probe (Kubernetes)
|
|
136
|
+
# Kubernetes liveness probe. Returns 200 if the application is running. Should restart pod if this fails.
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [Object]
|
|
139
|
+
describe 'liveness_health_live_get_0 test' do
|
|
140
|
+
it 'should work' do
|
|
141
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# unit tests for readiness_check_health_readiness_get
|
|
146
|
+
# Readiness Check
|
|
147
|
+
# ✅ MEJORA: Kubernetes readiness probe Returns 200 if the application is ready to serve traffic Checks all critical dependencies (PostgreSQL, Redis, ARQ)
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @return [Object]
|
|
150
|
+
describe 'readiness_check_health_readiness_get test' do
|
|
151
|
+
it 'should work' do
|
|
152
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# unit tests for readiness_health_ready_get
|
|
157
|
+
# Readiness probe (Kubernetes)
|
|
158
|
+
# Kubernetes readiness probe. Returns 200 if service is ready to accept traffic. Checks critical dependencies (Redis).
|
|
159
|
+
# @param [Hash] opts the optional parameters
|
|
160
|
+
# @return [Object]
|
|
161
|
+
describe 'readiness_health_ready_get test' do
|
|
162
|
+
it 'should work' do
|
|
163
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# unit tests for readiness_health_ready_get_0
|
|
168
|
+
# Readiness probe (Kubernetes)
|
|
169
|
+
# Kubernetes readiness probe. Returns 200 if service is ready to accept traffic. Checks critical dependencies (Redis).
|
|
170
|
+
# @param [Hash] opts the optional parameters
|
|
171
|
+
# @return [Object]
|
|
172
|
+
describe 'readiness_health_ready_get_0 test' do
|
|
173
|
+
it 'should work' do
|
|
174
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# unit tests for service_status_status_get
|
|
179
|
+
# Service Status
|
|
180
|
+
# ✅ MEJORA: Detailed service status with feature flags Shows which features are available and which are running in degraded mode
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @return [Object]
|
|
183
|
+
describe 'service_status_status_get test' do
|
|
184
|
+
it 'should work' do
|
|
185
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# unit tests for startup_check_health_startup_get
|
|
190
|
+
# Startup Check
|
|
191
|
+
# ✅ MEJORA: Kubernetes startup probe Returns 200 once the application has completed startup Used to delay readiness checks until startup is complete
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @return [Object]
|
|
194
|
+
describe 'startup_check_health_startup_get test' do
|
|
195
|
+
it 'should work' do
|
|
196
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
end
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Email Validation API — Enterprise-grade Email Verification
|
|
3
|
+
|
|
4
|
+
#API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for MailSafePro::JobsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'JobsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = MailSafePro::JobsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of JobsApi' do
|
|
30
|
+
it 'should create an instance of JobsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(MailSafePro::JobsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_job_jobs_v1_jobs_post
|
|
36
|
+
# Create validation job
|
|
37
|
+
# @param job_create_request
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :x_idempotency_key
|
|
40
|
+
# @option opts [String] :x_api_key
|
|
41
|
+
# @option opts [String] :authorization
|
|
42
|
+
# @return [JobCreateResponse]
|
|
43
|
+
describe 'create_job_jobs_v1_jobs_post test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for create_job_jobs_v1_jobs_post_0
|
|
50
|
+
# Create validation job
|
|
51
|
+
# @param job_create_request
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @option opts [String] :x_idempotency_key
|
|
54
|
+
# @option opts [String] :x_api_key
|
|
55
|
+
# @option opts [String] :authorization
|
|
56
|
+
# @return [JobCreateResponse]
|
|
57
|
+
describe 'create_job_jobs_v1_jobs_post_0 test' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# unit tests for get_job_results_jobs_v1_jobs_job_id_results_get
|
|
64
|
+
# Get job results (paged)
|
|
65
|
+
# @param job_id
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @option opts [Integer] :page
|
|
68
|
+
# @option opts [Integer] :size
|
|
69
|
+
# @option opts [String] :x_api_key
|
|
70
|
+
# @option opts [String] :authorization
|
|
71
|
+
# @return [JobResultsPage]
|
|
72
|
+
describe 'get_job_results_jobs_v1_jobs_job_id_results_get test' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# unit tests for get_job_results_jobs_v1_jobs_job_id_results_get_0
|
|
79
|
+
# Get job results (paged)
|
|
80
|
+
# @param job_id
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @option opts [Integer] :page
|
|
83
|
+
# @option opts [Integer] :size
|
|
84
|
+
# @option opts [String] :x_api_key
|
|
85
|
+
# @option opts [String] :authorization
|
|
86
|
+
# @return [JobResultsPage]
|
|
87
|
+
describe 'get_job_results_jobs_v1_jobs_job_id_results_get_0 test' do
|
|
88
|
+
it 'should work' do
|
|
89
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# unit tests for get_job_status_jobs_v1_jobs_job_id_get
|
|
94
|
+
# Get job status
|
|
95
|
+
# @param job_id
|
|
96
|
+
# @param [Hash] opts the optional parameters
|
|
97
|
+
# @option opts [String] :x_api_key
|
|
98
|
+
# @option opts [String] :authorization
|
|
99
|
+
# @return [JobStatusResponse]
|
|
100
|
+
describe 'get_job_status_jobs_v1_jobs_job_id_get test' do
|
|
101
|
+
it 'should work' do
|
|
102
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# unit tests for get_job_status_jobs_v1_jobs_job_id_get_0
|
|
107
|
+
# Get job status
|
|
108
|
+
# @param job_id
|
|
109
|
+
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @option opts [String] :x_api_key
|
|
111
|
+
# @option opts [String] :authorization
|
|
112
|
+
# @return [JobStatusResponse]
|
|
113
|
+
describe 'get_job_status_jobs_v1_jobs_job_id_get_0 test' do
|
|
114
|
+
it 'should work' do
|
|
115
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Email Validation API — Enterprise-grade Email Verification
|
|
3
|
+
|
|
4
|
+
#API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.5.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for MailSafePro::LogsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'LogsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = MailSafePro::LogsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of LogsApi' do
|
|
30
|
+
it 'should create an instance of LogsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(MailSafePro::LogsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for clear_request_logs_logs_logs_requests_delete
|
|
36
|
+
# Clear Request Logs
|
|
37
|
+
# Clear all request logs for current user.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [Object]
|
|
40
|
+
describe 'clear_request_logs_logs_logs_requests_delete test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for get_request_logs_logs_logs_requests_get
|
|
47
|
+
# Get Request Logs
|
|
48
|
+
# Get request logs for authenticated user.
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @option opts [Integer] :limit Max results to return
|
|
51
|
+
# @option opts [Integer] :status_code Filter by HTTP status code
|
|
52
|
+
# @option opts [String] :endpoint Filter by endpoint path
|
|
53
|
+
# @option opts [String] :method Filter by HTTP method (GET, POST, etc)
|
|
54
|
+
# @option opts [Time] :since Filter by timestamp (ISO 8601)
|
|
55
|
+
# @return [Object]
|
|
56
|
+
describe 'get_request_logs_logs_logs_requests_get test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
end
|