wesley-key-sdk 1.1.1
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/LICENSE +28 -0
- data/README.md +84 -0
- data/lib/cypress_test_api/api_helper.rb +10 -0
- data/lib/cypress_test_api/client.rb +47 -0
- data/lib/cypress_test_api/configuration.rb +103 -0
- data/lib/cypress_test_api/controllers/api_controller.rb +102 -0
- data/lib/cypress_test_api/controllers/base_controller.rb +60 -0
- data/lib/cypress_test_api/exceptions/api_exception.rb +21 -0
- data/lib/cypress_test_api/http/http_call_back.rb +10 -0
- data/lib/cypress_test_api/http/http_method_enum.rb +10 -0
- data/lib/cypress_test_api/http/http_request.rb +10 -0
- data/lib/cypress_test_api/http/http_response.rb +10 -0
- data/lib/cypress_test_api/http/proxy_settings.rb +13 -0
- data/lib/cypress_test_api/models/base_model.rb +110 -0
- data/lib/cypress_test_api/models/custom_enum.rb +26 -0
- data/lib/cypress_test_api/models/deer.rb +68 -0
- data/lib/cypress_test_api/models/item.rb +166 -0
- data/lib/cypress_test_api/models/item_response.rb +80 -0
- data/lib/cypress_test_api/models/lion.rb +68 -0
- data/lib/cypress_test_api/models/message.rb +68 -0
- data/lib/cypress_test_api/models/message2.rb +71 -0
- data/lib/cypress_test_api/models/multiple_arrays_request.rb +70 -0
- data/lib/cypress_test_api/models/nac_tag.rb +265 -0
- data/lib/cypress_test_api/models/o_auth_scope_o_auth_acg_enum.rb +29 -0
- data/lib/cypress_test_api/models/response_http400.rb +62 -0
- data/lib/cypress_test_api/models/response_http404.rb +62 -0
- data/lib/cypress_test_api/models/status11_enum.rb +26 -0
- data/lib/cypress_test_api/models/status1_enum.rb +26 -0
- data/lib/cypress_test_api/models/status_enum.rb +26 -0
- data/lib/cypress_test_api/models/tokens_request.rb +60 -0
- data/lib/cypress_test_api/utilities/date_time_helper.rb +11 -0
- data/lib/cypress_test_api/utilities/file_wrapper.rb +28 -0
- data/lib/cypress_test_api.rb +55 -0
- data/test/controllers/controller_test_base.rb +29 -0
- data/test/controllers/test_api_controller.rb +40 -0
- data/test/http_response_catcher.rb +19 -0
- metadata +149 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
# cypress_test_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v3.0
|
4
|
+
# ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
require_relative 'controller_test_base'
|
7
|
+
|
8
|
+
class APIControllerTest < ControllerTestBase
|
9
|
+
# Called only once for the class before any test has executed
|
10
|
+
def setup
|
11
|
+
setup_class
|
12
|
+
@controller = @client.client
|
13
|
+
@response_catcher = @controller.http_call_back
|
14
|
+
end
|
15
|
+
|
16
|
+
# Generates a new OAuth token with the specified scopes.
|
17
|
+
def test_create_o_auth_token
|
18
|
+
# Parameters for the API call
|
19
|
+
body = nil
|
20
|
+
|
21
|
+
# Perform the API call through the SDK function
|
22
|
+
@controller.create_o_auth_token(body: body)
|
23
|
+
|
24
|
+
# Test response code
|
25
|
+
assert_equal(201, @response_catcher.response.status_code)
|
26
|
+
end
|
27
|
+
|
28
|
+
# This endpoint accepts a complex structure with multiple arrays.
|
29
|
+
def test_test_endpointwith_arrays
|
30
|
+
# Parameters for the API call
|
31
|
+
body = nil
|
32
|
+
|
33
|
+
# Perform the API call through the SDK function
|
34
|
+
@controller.test_endpointwith_arrays(body: body)
|
35
|
+
|
36
|
+
# Test response code
|
37
|
+
assert_equal(200, @response_catcher.response.status_code)
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# cypress_test_api
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v3.0
|
4
|
+
# ( https://www.apimatic.io ).
|
5
|
+
|
6
|
+
class HttpResponseCatcher < CypressTestApi::HttpCallBack
|
7
|
+
attr_reader :response
|
8
|
+
|
9
|
+
def on_before_request(request)
|
10
|
+
end
|
11
|
+
|
12
|
+
# Catching the response
|
13
|
+
def on_after_response(response)
|
14
|
+
@response = response
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
|
metadata
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wesley-key-sdk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kenyon Jacobs
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2025-08-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: apimatic_core_interfaces
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.2.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.2.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: apimatic_core
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.3.19
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.3.19
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: apimatic_faraday_client_adapter
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.1.6
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.6
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 5.24.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 5.24.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest-proveit
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
83
|
+
description: Omnis nisi cumque si
|
84
|
+
email:
|
85
|
+
- goro@mailinator.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- LICENSE
|
91
|
+
- README.md
|
92
|
+
- lib/cypress_test_api.rb
|
93
|
+
- lib/cypress_test_api/api_helper.rb
|
94
|
+
- lib/cypress_test_api/client.rb
|
95
|
+
- lib/cypress_test_api/configuration.rb
|
96
|
+
- lib/cypress_test_api/controllers/api_controller.rb
|
97
|
+
- lib/cypress_test_api/controllers/base_controller.rb
|
98
|
+
- lib/cypress_test_api/exceptions/api_exception.rb
|
99
|
+
- lib/cypress_test_api/http/http_call_back.rb
|
100
|
+
- lib/cypress_test_api/http/http_method_enum.rb
|
101
|
+
- lib/cypress_test_api/http/http_request.rb
|
102
|
+
- lib/cypress_test_api/http/http_response.rb
|
103
|
+
- lib/cypress_test_api/http/proxy_settings.rb
|
104
|
+
- lib/cypress_test_api/models/base_model.rb
|
105
|
+
- lib/cypress_test_api/models/custom_enum.rb
|
106
|
+
- lib/cypress_test_api/models/deer.rb
|
107
|
+
- lib/cypress_test_api/models/item.rb
|
108
|
+
- lib/cypress_test_api/models/item_response.rb
|
109
|
+
- lib/cypress_test_api/models/lion.rb
|
110
|
+
- lib/cypress_test_api/models/message.rb
|
111
|
+
- lib/cypress_test_api/models/message2.rb
|
112
|
+
- lib/cypress_test_api/models/multiple_arrays_request.rb
|
113
|
+
- lib/cypress_test_api/models/nac_tag.rb
|
114
|
+
- lib/cypress_test_api/models/o_auth_scope_o_auth_acg_enum.rb
|
115
|
+
- lib/cypress_test_api/models/response_http400.rb
|
116
|
+
- lib/cypress_test_api/models/response_http404.rb
|
117
|
+
- lib/cypress_test_api/models/status11_enum.rb
|
118
|
+
- lib/cypress_test_api/models/status1_enum.rb
|
119
|
+
- lib/cypress_test_api/models/status_enum.rb
|
120
|
+
- lib/cypress_test_api/models/tokens_request.rb
|
121
|
+
- lib/cypress_test_api/utilities/date_time_helper.rb
|
122
|
+
- lib/cypress_test_api/utilities/file_wrapper.rb
|
123
|
+
- test/controllers/controller_test_base.rb
|
124
|
+
- test/controllers/test_api_controller.rb
|
125
|
+
- test/http_response_catcher.rb
|
126
|
+
homepage: https://www.halefokodaqiby.com
|
127
|
+
licenses:
|
128
|
+
- MIT
|
129
|
+
metadata: {}
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options: []
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '2.6'
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
requirements: []
|
145
|
+
rubygems_version: 3.1.6
|
146
|
+
signing_key:
|
147
|
+
specification_version: 4
|
148
|
+
summary: tesst
|
149
|
+
test_files: []
|