automation_test_no_submodules 1.0.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/Gemfile +11 -0
- data/Gemfile.lock +93 -0
- data/README.md +76 -0
- data/Rakefile +10 -0
- data/automation_test_no_submodules.gemspec +39 -0
- data/lib/automation_test_no_submodules/api/greetings_api.rb +92 -0
- data/lib/automation_test_no_submodules/api_client.rb +436 -0
- data/lib/automation_test_no_submodules/api_client_custom.rb +14 -0
- data/lib/automation_test_no_submodules/api_error.rb +53 -0
- data/lib/automation_test_no_submodules/configuration.rb +330 -0
- data/lib/automation_test_no_submodules/models/hello_response.rb +230 -0
- data/lib/automation_test_no_submodules/version.rb +11 -0
- data/lib/automation_test_no_submodules.rb +70 -0
- data/spec/api/greetings_api_spec.rb +39 -0
- data/spec/api_client_spec.rb +191 -0
- data/spec/configuration_spec.rb +38 -0
- data/spec/models/hello_response_spec.rb +34 -0
- data/spec/spec_helper.rb +107 -0
- metadata +128 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: aa61678f1c75da40690b7b70137428a2d203b660ef1720fc5745030cddad0601
|
4
|
+
data.tar.gz: f915b9bb961d1a164466b1d72c76d3e6015451ef78116a55f47136b0c12ee0ea
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e5685744080a5632d049aec8e6854931afaa12dedf707a570ca79012a290ef35bd8fe9527af42db365c87b94707c0d70ab47545d8ec10ac2de2edda4de0306df
|
7
|
+
data.tar.gz: 54946520740eb909ac45ced7b69a0b5883a6f7d488f020784d74b4cd2030fa6ff2157728109bdf41557b25ed1d212b06b1bbe8a58b7dac4a9be5abde9f7898e6
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,93 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
automation_test_no_submodules (1.0.1)
|
5
|
+
faraday (>= 1.0.1, < 3.0)
|
6
|
+
faraday-multipart (~> 1.0, >= 1.0.4)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
ast (2.4.2)
|
12
|
+
byebug (11.1.3)
|
13
|
+
coderay (1.1.3)
|
14
|
+
debug (1.8.0)
|
15
|
+
irb (>= 1.5.0)
|
16
|
+
reline (>= 0.3.1)
|
17
|
+
diff-lcs (1.5.1)
|
18
|
+
faraday (2.10.0)
|
19
|
+
faraday-net_http (>= 2.0, < 3.2)
|
20
|
+
logger
|
21
|
+
faraday-multipart (1.0.4)
|
22
|
+
multipart-post (~> 2)
|
23
|
+
faraday-net_http (3.1.0)
|
24
|
+
net-http
|
25
|
+
io-console (0.7.2)
|
26
|
+
irb (1.6.4)
|
27
|
+
reline (>= 0.3.0)
|
28
|
+
logger (1.6.0)
|
29
|
+
method_source (1.1.0)
|
30
|
+
multipart-post (2.4.1)
|
31
|
+
net-http (0.4.1)
|
32
|
+
uri
|
33
|
+
parallel (1.25.1)
|
34
|
+
parser (3.3.4.0)
|
35
|
+
ast (~> 2.4.1)
|
36
|
+
racc
|
37
|
+
pry (0.14.2)
|
38
|
+
coderay (~> 1.1)
|
39
|
+
method_source (~> 1.0)
|
40
|
+
pry-byebug (3.10.1)
|
41
|
+
byebug (~> 11.0)
|
42
|
+
pry (>= 0.13, < 0.15)
|
43
|
+
racc (1.8.0)
|
44
|
+
rainbow (3.1.1)
|
45
|
+
rake (13.0.6)
|
46
|
+
regexp_parser (2.9.2)
|
47
|
+
reline (0.5.9)
|
48
|
+
io-console (~> 0.5)
|
49
|
+
rexml (3.3.2)
|
50
|
+
strscan
|
51
|
+
rspec (3.13.0)
|
52
|
+
rspec-core (~> 3.13.0)
|
53
|
+
rspec-expectations (~> 3.13.0)
|
54
|
+
rspec-mocks (~> 3.13.0)
|
55
|
+
rspec-core (3.13.0)
|
56
|
+
rspec-support (~> 3.13.0)
|
57
|
+
rspec-expectations (3.13.1)
|
58
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
59
|
+
rspec-support (~> 3.13.0)
|
60
|
+
rspec-mocks (3.13.1)
|
61
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
62
|
+
rspec-support (~> 3.13.0)
|
63
|
+
rspec-support (3.13.1)
|
64
|
+
rubocop (1.12.1)
|
65
|
+
parallel (~> 1.10)
|
66
|
+
parser (>= 3.0.0.0)
|
67
|
+
rainbow (>= 2.2.2, < 4.0)
|
68
|
+
regexp_parser (>= 1.8, < 3.0)
|
69
|
+
rexml
|
70
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
71
|
+
ruby-progressbar (~> 1.7)
|
72
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
73
|
+
rubocop-ast (1.31.3)
|
74
|
+
parser (>= 3.3.1.0)
|
75
|
+
ruby-progressbar (1.13.0)
|
76
|
+
strscan (3.1.0)
|
77
|
+
unicode-display_width (2.5.0)
|
78
|
+
uri (0.13.0)
|
79
|
+
|
80
|
+
PLATFORMS
|
81
|
+
arm64-darwin-22
|
82
|
+
|
83
|
+
DEPENDENCIES
|
84
|
+
automation_test_no_submodules!
|
85
|
+
debug (~> 1.8)
|
86
|
+
irb (= 1.6.4)
|
87
|
+
pry-byebug
|
88
|
+
rake (~> 13.0.1)
|
89
|
+
rspec (~> 3.6, >= 3.6.0)
|
90
|
+
rubocop (~> 1.12.1)
|
91
|
+
|
92
|
+
BUNDLED WITH
|
93
|
+
2.4.19
|
data/README.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# automation_test_no_submodules<a id="automation_test_no_submodules"></a>
|
2
|
+
|
3
|
+
SDKs (no submodules) to test automation workflows.
|
4
|
+
|
5
|
+
|
6
|
+
## Table of Contents<a id="table-of-contents"></a>
|
7
|
+
|
8
|
+
<!-- toc -->
|
9
|
+
|
10
|
+
- [Installation](#installation)
|
11
|
+
- [Getting Started](#getting-started)
|
12
|
+
- [Raw HTTP Response](#raw-http-response)
|
13
|
+
- [Reference](#reference)
|
14
|
+
* [`automationtestnosubmodules.greetings.hello`](#automationtestnosubmodulesgreetingshello)
|
15
|
+
|
16
|
+
<!-- tocstop -->
|
17
|
+
|
18
|
+
## Installation<a id="installation"></a>
|
19
|
+
|
20
|
+
Add to Gemfile:
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
gem 'automation_test_no_submodules', '~> 1.0.1'
|
24
|
+
```
|
25
|
+
|
26
|
+
## Getting Started<a id="getting-started"></a>
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'automation_test_no_submodules'
|
30
|
+
configuration = AutomationTestNoSubmodules::Configuration.new
|
31
|
+
automationtestnosubmodules = automation_test_no_submodules::Client.new(configuration)
|
32
|
+
result = automationtestnosubmodules.greetings.hello
|
33
|
+
p result
|
34
|
+
```
|
35
|
+
|
36
|
+
## Raw HTTP Response<a id="raw-http-response"></a>
|
37
|
+
|
38
|
+
To access the raw HTTP response, suffix any method with `_with_http_info`.
|
39
|
+
|
40
|
+
```ruby
|
41
|
+
result = automationtestnosubmodules.greetings.hello_with_http_info
|
42
|
+
p result.data # [HelloResponse] Deserialized data
|
43
|
+
p.result.status_code # [Integer] HTTP status code
|
44
|
+
p.result.headers # [Hash] HTTP headers
|
45
|
+
p.result.response # [Faraday::Response] Raw HTTP response
|
46
|
+
```
|
47
|
+
|
48
|
+
## Reference<a id="reference"></a>
|
49
|
+
|
50
|
+
|
51
|
+
### `automationtestnosubmodules.greetings.hello`<a id="automationtestnosubmodulesgreetingshello"></a>
|
52
|
+
|
53
|
+
Get a simple greeting
|
54
|
+
|
55
|
+
#### 🛠️ Usage<a id="🛠️-usage"></a>
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
result = automationtestnosubmodules.greetings.hello
|
59
|
+
p result
|
60
|
+
```
|
61
|
+
|
62
|
+
#### 🔄 Return<a id="🔄-return"></a>
|
63
|
+
|
64
|
+
[HelloResponse](./lib/automation_test_no_submodules/models/hello_response.rb)
|
65
|
+
|
66
|
+
#### 🌐 Endpoint<a id="🌐-endpoint"></a>
|
67
|
+
|
68
|
+
`/hello` `GET`
|
69
|
+
|
70
|
+
[🔙 **Back to Table of Contents**](#table-of-contents)
|
71
|
+
|
72
|
+
---
|
73
|
+
|
74
|
+
|
75
|
+
## Author<a id="author"></a>
|
76
|
+
This TypeScript package is automatically generated by [Konfig](https://konfigthis.com)
|
data/Rakefile
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Test Automation (No submodules)
|
5
|
+
|
6
|
+
#SDKs (no submodules) to test automation workflows.
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
9
|
+
=end
|
10
|
+
|
11
|
+
$:.push File.expand_path("../lib", __FILE__)
|
12
|
+
require "automation_test_no_submodules/version"
|
13
|
+
|
14
|
+
Gem::Specification.new do |s|
|
15
|
+
s.name = "automation_test_no_submodules"
|
16
|
+
s.version = AutomationTestNoSubmodules::VERSION
|
17
|
+
s.platform = Gem::Platform::RUBY
|
18
|
+
s.authors = ["Konfig"]
|
19
|
+
s.email = ["engineering@konfigthis.com"]
|
20
|
+
s.homepage = "https://konfigthis.com"
|
21
|
+
s.summary = "Test Automation (No submodules) Ruby Gem"
|
22
|
+
s.description = "SDKs (no submodules) to test automation workflows."
|
23
|
+
s.license = "MIT"
|
24
|
+
s.required_ruby_version = ">= 2.4"
|
25
|
+
s.metadata = {
|
26
|
+
"documentation_uri" => "https://github.com/eddiechayes/automation-test/tree/main/ruby",
|
27
|
+
"source_code_uri" => "https://github.com/eddiechayes/automation-test/tree/main/ruby",
|
28
|
+
}
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
|
31
|
+
s.add_runtime_dependency 'faraday-multipart', '~> 1.0', '>= 1.0.4'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
|
35
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
36
|
+
s.test_files = `find spec/*`.split("\n")
|
37
|
+
s.executables = []
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
=begin
|
2
|
+
#Test Automation (No submodules)
|
3
|
+
|
4
|
+
#SDKs (no submodules) to test automation workflows.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
=end
|
8
|
+
|
9
|
+
require 'cgi'
|
10
|
+
|
11
|
+
module AutomationTestNoSubmodules
|
12
|
+
class GreetingsApi
|
13
|
+
attr_accessor :api_client
|
14
|
+
|
15
|
+
def initialize(api_client = ApiClient.default)
|
16
|
+
@api_client = api_client
|
17
|
+
end
|
18
|
+
|
19
|
+
# Get a simple greeting
|
20
|
+
#
|
21
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
22
|
+
def hello(extra: {})
|
23
|
+
api_response = hello_with_http_info_impl(extra)
|
24
|
+
api_response.data
|
25
|
+
end
|
26
|
+
|
27
|
+
# Get a simple greeting
|
28
|
+
#
|
29
|
+
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
30
|
+
def hello_with_http_info(extra: {})
|
31
|
+
hello_with_http_info_impl(extra)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get a simple greeting
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [HelloResponse]
|
37
|
+
private def hello_impl(opts = {})
|
38
|
+
data, _status_code, _headers = hello_with_http_info(opts)
|
39
|
+
data
|
40
|
+
end
|
41
|
+
|
42
|
+
# Get a simple greeting
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @return [APIResponse] data is HelloResponse, status code, headers and response
|
45
|
+
private def hello_with_http_info_impl(opts = {})
|
46
|
+
if @api_client.config.debugging
|
47
|
+
@api_client.config.logger.debug 'Calling API: GreetingsApi.hello ...'
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/hello'
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
+
|
60
|
+
# form parameters
|
61
|
+
form_params = opts[:form_params] || {}
|
62
|
+
|
63
|
+
# http body (model)
|
64
|
+
post_body = opts[:debug_body]
|
65
|
+
|
66
|
+
# return_type
|
67
|
+
return_type = opts[:debug_return_type] || 'HelloResponse'
|
68
|
+
|
69
|
+
# auth_names
|
70
|
+
auth_names = opts[:debug_auth_names] || []
|
71
|
+
|
72
|
+
new_options = opts.merge(
|
73
|
+
:operation => :"GreetingsApi.hello",
|
74
|
+
:header_params => header_params,
|
75
|
+
:query_params => query_params,
|
76
|
+
:form_params => form_params,
|
77
|
+
:body => post_body,
|
78
|
+
:auth_names => auth_names,
|
79
|
+
:return_type => return_type
|
80
|
+
)
|
81
|
+
|
82
|
+
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
83
|
+
if @api_client.config.debugging
|
84
|
+
@api_client.config.logger.debug "API called: GreetingsApi#hello\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
|
+
end
|
86
|
+
APIResponse::new(data, status_code, headers, response)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# top-level client access to avoid having the user to insantiate their own API instances
|
91
|
+
Greetings = GreetingsApi::new
|
92
|
+
end
|