korona-entry-client 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -5
- data/docs/ExternalTicketConfigurationsApi.md +1 -1
- data/docs/OrganizationalUnitsApi.md +1 -1
- data/docs/StatisticGroupedEntry.md +35 -0
- data/docs/StatisticsApi.md +68 -0
- data/docs/TicketEntry.md +3 -1
- data/docs/TicketEntryLog.md +1 -3
- data/docs/TicketsApi.md +163 -78
- data/korona-entry-client-1.0.1.gem +0 -0
- data/lib/korona-entry-client.rb +2 -0
- data/lib/korona-entry-client/api/statistics_api.rb +126 -0
- data/lib/korona-entry-client/api/tickets_api.rb +237 -11
- data/lib/korona-entry-client/configuration.rb +2 -2
- data/lib/korona-entry-client/models/statistic_grouped_entry.rb +321 -0
- data/lib/korona-entry-client/models/ticket_entry.rb +14 -4
- data/lib/korona-entry-client/models/ticket_entry_log.rb +5 -15
- data/lib/korona-entry-client/version.rb +1 -1
- data/spec/api/statistics_api_spec.rb +52 -0
- data/spec/models/statistic_grouped_entry_spec.rb +99 -0
- metadata +11 -2
@@ -0,0 +1,52 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.entry API v1
|
3
|
+
|
4
|
+
#Our api provides access to our entry services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for KoronaEntryClient::StatisticsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'StatisticsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = KoronaEntryClient::StatisticsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of StatisticsApi' do
|
30
|
+
it 'should create an instance of StatisticsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(KoronaEntryClient::StatisticsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for load_grouped_entries
|
36
|
+
# Prepares entries statistically and returns them as a list.
|
37
|
+
# @param client Identification of executing client.
|
38
|
+
# @param time_from Log time from.
|
39
|
+
# @param time_to Log time to.
|
40
|
+
# @param ticket_type
|
41
|
+
# @param grouped_entries_type
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @option opts [Array<String>] :organizational_unit_numbers
|
44
|
+
# @option opts [Array<String>] :tags
|
45
|
+
# @return [Array<StatisticGroupedEntry>]
|
46
|
+
describe 'load_grouped_entries test' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,99 @@
|
|
1
|
+
=begin
|
2
|
+
#KORONA.entry API v1
|
3
|
+
|
4
|
+
#Our api provides access to our entry services
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for KoronaEntryClient::StatisticGroupedEntry
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'StatisticGroupedEntry' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = KoronaEntryClient::StatisticGroupedEntry.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of StatisticGroupedEntry' do
|
31
|
+
it 'should create an instance of StatisticGroupedEntry' do
|
32
|
+
expect(@instance).to be_instance_of(KoronaEntryClient::StatisticGroupedEntry)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "article_number"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "year"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "month"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "day"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "hour"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "commit_type"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ACCESS", "EXIT"])
|
69
|
+
# validator.allowable_values.each do |value|
|
70
|
+
# expect { @instance.commit_type = value }.not_to raise_error
|
71
|
+
# end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe 'test attribute "entries"' do
|
76
|
+
it 'should work' do
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe 'test attribute "tickets"' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
describe 'test attribute "organizational_unit_number"' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
describe 'test attribute "tag"' do
|
94
|
+
it 'should work' do
|
95
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: korona-entry-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -90,6 +90,8 @@ files:
|
|
90
90
|
- docs/OrganizationalUnit.md
|
91
91
|
- docs/OrganizationalUnitList.md
|
92
92
|
- docs/OrganizationalUnitsApi.md
|
93
|
+
- docs/StatisticGroupedEntry.md
|
94
|
+
- docs/StatisticsApi.md
|
93
95
|
- docs/Ticket.md
|
94
96
|
- docs/TicketEntry.md
|
95
97
|
- docs/TicketEntryLog.md
|
@@ -101,10 +103,12 @@ files:
|
|
101
103
|
- docs/TicketsApi.md
|
102
104
|
- git_push.sh
|
103
105
|
- korona-entry-client-1.0.0.gem
|
106
|
+
- korona-entry-client-1.0.1.gem
|
104
107
|
- korona-entry-client.gemspec
|
105
108
|
- lib/korona-entry-client.rb
|
106
109
|
- lib/korona-entry-client/api/external_ticket_configurations_api.rb
|
107
110
|
- lib/korona-entry-client/api/organizational_units_api.rb
|
111
|
+
- lib/korona-entry-client/api/statistics_api.rb
|
108
112
|
- lib/korona-entry-client/api/tickets_api.rb
|
109
113
|
- lib/korona-entry-client/api_client.rb
|
110
114
|
- lib/korona-entry-client/api_error.rb
|
@@ -117,6 +121,7 @@ files:
|
|
117
121
|
- lib/korona-entry-client/models/not_acceptable_error.rb
|
118
122
|
- lib/korona-entry-client/models/organizational_unit.rb
|
119
123
|
- lib/korona-entry-client/models/organizational_unit_list.rb
|
124
|
+
- lib/korona-entry-client/models/statistic_grouped_entry.rb
|
120
125
|
- lib/korona-entry-client/models/ticket.rb
|
121
126
|
- lib/korona-entry-client/models/ticket_entry.rb
|
122
127
|
- lib/korona-entry-client/models/ticket_entry_log.rb
|
@@ -128,6 +133,7 @@ files:
|
|
128
133
|
- lib/korona-entry-client/version.rb
|
129
134
|
- spec/api/external_ticket_configurations_api_spec.rb
|
130
135
|
- spec/api/organizational_units_api_spec.rb
|
136
|
+
- spec/api/statistics_api_spec.rb
|
131
137
|
- spec/api/tickets_api_spec.rb
|
132
138
|
- spec/api_client_spec.rb
|
133
139
|
- spec/configuration_spec.rb
|
@@ -139,6 +145,7 @@ files:
|
|
139
145
|
- spec/models/not_acceptable_error_spec.rb
|
140
146
|
- spec/models/organizational_unit_list_spec.rb
|
141
147
|
- spec/models/organizational_unit_spec.rb
|
148
|
+
- spec/models/statistic_grouped_entry_spec.rb
|
142
149
|
- spec/models/ticket_entry_log_list_spec.rb
|
143
150
|
- spec/models/ticket_entry_log_spec.rb
|
144
151
|
- spec/models/ticket_entry_spec.rb
|
@@ -176,6 +183,7 @@ test_files:
|
|
176
183
|
- spec/api/external_ticket_configurations_api_spec.rb
|
177
184
|
- spec/api/organizational_units_api_spec.rb
|
178
185
|
- spec/api/tickets_api_spec.rb
|
186
|
+
- spec/api/statistics_api_spec.rb
|
179
187
|
- spec/api_client_spec.rb
|
180
188
|
- spec/configuration_spec.rb
|
181
189
|
- spec/models/ticket_spec.rb
|
@@ -191,6 +199,7 @@ test_files:
|
|
191
199
|
- spec/models/not_acceptable_error_spec.rb
|
192
200
|
- spec/models/external_ticket_configuration_list_spec.rb
|
193
201
|
- spec/models/organizational_unit_spec.rb
|
202
|
+
- spec/models/statistic_grouped_entry_spec.rb
|
194
203
|
- spec/models/ticket_entry_spec.rb
|
195
204
|
- spec/models/bad_request_error_spec.rb
|
196
205
|
- spec/models/external_ticket_configuration_spec.rb
|