artikcloud 2.1.1 → 2.2.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 +44 -3
- data/artikcloud.gemspec +3 -4
- data/docs/ActionOut.md +6 -0
- data/docs/CertificateData.md +9 -0
- data/docs/CertificateEnvelope.md +8 -0
- data/docs/CertificateFields.md +13 -0
- data/docs/CertificateId.md +8 -0
- data/docs/ContactInfo.md +9 -0
- data/docs/DevicePricingTier.md +16 -0
- data/docs/DevicePricingTierEnvelope.md +8 -0
- data/docs/DevicePricingTierRequest.md +8 -0
- data/docs/DevicePricingTiers.md +8 -0
- data/docs/DevicePricingTiersEnvelope.md +8 -0
- data/docs/DeviceShareInfo.md +1 -1
- data/docs/DeviceTypePricingList.md +8 -0
- data/docs/DeviceTypePricingTier.md +17 -0
- data/docs/DeviceTypePricingTiersEnvelope.md +8 -0
- data/docs/DeviceTypeUpdateInput.md +8 -0
- data/docs/DevicesSharesApi.md +235 -0
- data/docs/DevicesStatusApi.md +183 -0
- data/docs/MessageOut.md +6 -0
- data/docs/MonetizationApi.md +289 -0
- data/docs/OutputRule.md +1 -0
- data/docs/RejectedCSVRow.md +8 -0
- data/docs/RejectedCSVRowsEnvelope.md +11 -0
- data/docs/Tier.md +17 -0
- data/docs/UpgradePath.md +8 -0
- data/docs/UpgradePathEnvelope.md +8 -0
- data/docs/UpgradePathUserToken.md +10 -0
- data/docs/UpgradePathUserTokenEnvelope.md +8 -0
- data/docs/UploadIdEnvelope.md +8 -0
- data/docs/UploadStatusEnvelope.md +8 -0
- data/docs/UsersApi.md +6 -2
- data/docs/ValidityPeriod.md +9 -0
- data/docs/Whitelist.md +10 -0
- data/docs/WhitelistEnvelope.md +8 -0
- data/docs/WhitelistResultEnvelope.md +12 -0
- data/docs/WhitelistingApi.md +515 -0
- data/lib/artikcloud/api/monetization_api.rb +296 -0
- data/lib/artikcloud/api/users_api.rb +3 -0
- data/lib/artikcloud/api/whitelisting_api.rb +519 -0
- data/lib/artikcloud/models/action_out.rb +62 -1
- data/lib/artikcloud/models/certificate_data.rb +197 -0
- data/lib/artikcloud/models/certificate_envelope.rb +188 -0
- data/lib/artikcloud/models/certificate_fields.rb +237 -0
- data/lib/artikcloud/models/certificate_id.rb +188 -0
- data/lib/artikcloud/models/contact_info.rb +198 -0
- data/lib/artikcloud/models/device_pricing_tier.rb +268 -0
- data/lib/artikcloud/models/device_pricing_tier_envelope.rb +188 -0
- data/lib/artikcloud/models/device_pricing_tier_request.rb +188 -0
- data/lib/artikcloud/models/device_pricing_tiers.rb +190 -0
- data/lib/artikcloud/models/device_pricing_tiers_envelope.rb +188 -0
- data/lib/artikcloud/models/device_share_info.rb +7 -7
- data/lib/artikcloud/models/device_type_pricing_list.rb +190 -0
- data/lib/artikcloud/models/device_type_pricing_tier.rb +280 -0
- data/lib/artikcloud/models/device_type_pricing_tiers_envelope.rb +188 -0
- data/lib/artikcloud/models/device_type_update_input.rb +188 -0
- data/lib/artikcloud/models/message_out.rb +65 -1
- data/lib/artikcloud/models/output_rule.rb +46 -4
- data/lib/artikcloud/models/rejected_csv_row.rb +188 -0
- data/lib/artikcloud/models/rejected_csv_rows_envelope.rb +220 -0
- data/lib/artikcloud/models/tier.rb +278 -0
- data/lib/artikcloud/models/upgrade_path.rb +188 -0
- data/lib/artikcloud/models/upgrade_path_envelope.rb +188 -0
- data/lib/artikcloud/models/upgrade_path_user_token.rb +208 -0
- data/lib/artikcloud/models/upgrade_path_user_token_envelope.rb +187 -0
- data/lib/artikcloud/models/upload_id_envelope.rb +188 -0
- data/lib/artikcloud/models/upload_status_envelope.rb +188 -0
- data/lib/artikcloud/models/validity_period.rb +198 -0
- data/lib/artikcloud/models/whitelist.rb +208 -0
- data/lib/artikcloud/models/whitelist_envelope.rb +190 -0
- data/lib/artikcloud/models/whitelist_result_envelope.rb +230 -0
- data/lib/artikcloud/version.rb +1 -2
- data/lib/artikcloud.rb +33 -3
- data/pom.xml +1 -1
- data/spec/api/device_types_api_spec.rb +3 -15
- data/spec/api/devices_api_spec.rb +6 -22
- data/spec/api/devices_management_api_spec.rb +1 -13
- data/spec/api/export_api_spec.rb +2 -14
- data/spec/api/messages_api_spec.rb +115 -74
- data/spec/api/monetization_api_spec.rb +99 -0
- data/spec/api/registrations_api_spec.rb +1 -13
- data/spec/api/rules_api_spec.rb +3 -15
- data/spec/api/tags_api_spec.rb +0 -12
- data/spec/api/tokens_api_spec.rb +24 -14
- data/spec/api/users_api_spec.rb +119 -57
- data/spec/api/whitelisting_api_spec.rb +152 -0
- data/spec/factories/users.rb +12 -12
- data/spec/models/action_out_spec.rb +36 -0
- data/spec/models/certificate_data_spec.rb +47 -0
- data/spec/models/certificate_envelope_spec.rb +41 -0
- data/spec/models/certificate_fields_spec.rb +71 -0
- data/spec/models/certificate_id_spec.rb +41 -0
- data/spec/models/contact_info_spec.rb +47 -0
- data/spec/models/device_pricing_tier_envelope_spec.rb +41 -0
- data/spec/models/device_pricing_tier_request_spec.rb +41 -0
- data/spec/models/device_pricing_tier_spec.rb +89 -0
- data/spec/models/device_pricing_tiers_envelope_spec.rb +41 -0
- data/spec/models/device_pricing_tiers_spec.rb +41 -0
- data/spec/models/device_share_info_spec.rb +1 -1
- data/spec/models/device_type_pricing_list_spec.rb +41 -0
- data/spec/models/device_type_pricing_tier_spec.rb +95 -0
- data/spec/models/device_type_pricing_tiers_envelope_spec.rb +41 -0
- data/spec/models/device_type_update_input_spec.rb +41 -0
- data/spec/models/message_out_spec.rb +36 -0
- data/spec/models/output_rule_spec.rb +10 -0
- data/spec/models/rejected_csv_row_spec.rb +41 -0
- data/spec/models/rejected_csv_rows_envelope_spec.rb +59 -0
- data/spec/models/tier_spec.rb +95 -0
- data/spec/models/upgrade_path_envelope_spec.rb +41 -0
- data/spec/models/upgrade_path_spec.rb +41 -0
- data/spec/models/upgrade_path_user_token_envelope_spec.rb +41 -0
- data/spec/models/upgrade_path_user_token_spec.rb +53 -0
- data/spec/models/upload_id_envelope_spec.rb +41 -0
- data/spec/models/upload_status_envelope_spec.rb +41 -0
- data/spec/models/validity_period_spec.rb +47 -0
- data/spec/models/whitelist_envelope_spec.rb +41 -0
- data/spec/models/whitelist_result_envelope_spec.rb +65 -0
- data/spec/models/whitelist_spec.rb +53 -0
- metadata +121 -11
- data/docs/.DS_Store +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/artikcloud/.DS_Store +0 -0
- data/lib/artikcloud/api/.DS_Store +0 -0
- data/lib/artikcloud/models/.DS_Store +0 -0
- data/spec/.DS_Store +0 -0
- data/spec/api/.DS_Store +0 -0
data/spec/api/users_api_spec.rb
CHANGED
@@ -1,28 +1,60 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
3
5
|
|
4
6
|
OpenAPI spec version: 2.0.0
|
5
7
|
|
6
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
9
|
|
8
|
-
License: MIT
|
9
|
-
http://en.wikipedia.org/wiki/MIT_License
|
10
|
-
|
11
|
-
Terms of Service: http://www.samsung.com/global/business/mobile/info/terms-and-conditions.html
|
12
|
-
|
13
10
|
=end
|
14
11
|
|
15
12
|
require 'spec_helper'
|
16
13
|
require 'json'
|
17
14
|
|
18
15
|
# Unit tests for ArtikCloud::UsersApi
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'UsersApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = ArtikCloud::UsersApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
22
27
|
|
23
28
|
describe 'test an instance of UsersApi' do
|
24
29
|
it 'should create an instact of UsersApi' do
|
25
|
-
expect(instance).to
|
30
|
+
expect(@instance).to be_instance_of(ArtikCloud::UsersApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for create_user_properties
|
35
|
+
# Create User Application Properties
|
36
|
+
# Create application properties for a user
|
37
|
+
# @param user_id User Id
|
38
|
+
# @param properties Properties to be updated
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :aid Application ID
|
41
|
+
# @return [PropertiesEnvelope]
|
42
|
+
describe 'create_user_properties test' do
|
43
|
+
it "should work" do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for delete_user_properties
|
49
|
+
# Delete User Application Properties
|
50
|
+
# Deletes a user's application properties
|
51
|
+
# @param user_id User Id
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [String] :aid Application ID
|
54
|
+
# @return [PropertiesEnvelope]
|
55
|
+
describe 'delete_user_properties test' do
|
56
|
+
it "should work" do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
26
58
|
end
|
27
59
|
end
|
28
60
|
|
@@ -33,69 +65,99 @@ describe 'UsersApi', :vcr do
|
|
33
65
|
# @return [UserEnvelope]
|
34
66
|
describe 'get_self test' do
|
35
67
|
it "should work" do
|
36
|
-
|
37
|
-
|
38
|
-
expect(result).to be_a(ArtikCloud::UserEnvelope)
|
39
|
-
expect(result.data.email).to eq user.email
|
40
|
-
expect(result.data.id).to eq user.id
|
41
|
-
expect(result.data.name).to eq user.name
|
42
|
-
expect(result.data.full_name).to eq user.full_name
|
43
|
-
expect(result.data.created_on).to eq user.created_on
|
44
|
-
expect(result.data.modified_on).to_not be_nil
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
69
|
end
|
46
70
|
end
|
47
71
|
|
48
|
-
|
72
|
+
# unit tests for get_user_device_types
|
73
|
+
# Get User Device Types
|
74
|
+
# Retrieve User's Device Types
|
75
|
+
# @param user_id User ID.
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @option opts [Integer] :offset Offset for pagination.
|
78
|
+
# @option opts [Integer] :count Desired count of items in the result set
|
79
|
+
# @option opts [BOOLEAN] :include_shared Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users.
|
80
|
+
# @return [DeviceTypesEnvelope]
|
81
|
+
describe 'get_user_device_types test' do
|
49
82
|
it "should work" do
|
50
|
-
|
51
|
-
expect(result).to be_a(ArtikCloud::DevicesEnvelope)
|
52
|
-
expect(result.data.devices).to_not be_nil
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
84
|
end
|
54
85
|
end
|
55
86
|
|
56
|
-
|
87
|
+
# unit tests for get_user_devices
|
88
|
+
# Get User Devices
|
89
|
+
# Retrieve User's Devices
|
90
|
+
# @param user_id User ID
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [Integer] :offset Offset for pagination.
|
93
|
+
# @option opts [Integer] :count Desired count of items in the result set
|
94
|
+
# @option opts [BOOLEAN] :include_properties Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users.
|
95
|
+
# @option opts [String] :owner Return owned and/or shared devices. Default to ALL.
|
96
|
+
# @option opts [BOOLEAN] :include_share_info Include share info
|
97
|
+
# @option opts [String] :dtid Return only devices of this device type. If empty, assumes all device types allowed by the authorization.
|
98
|
+
# @return [DevicesEnvelope]
|
99
|
+
describe 'get_user_devices test' do
|
57
100
|
it "should work" do
|
58
|
-
|
59
|
-
expect(result).to be_a(ArtikCloud::DeviceTypesEnvelope)
|
60
|
-
expect(result.data.device_types).to_not be_nil
|
101
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
102
|
end
|
62
103
|
end
|
63
104
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
result = instance.create_user_properties(user.id, app_properties, aid: user.aid)
|
75
|
-
else
|
76
|
-
raise "Non-404 Error returned by API"
|
77
|
-
end
|
78
|
-
expect(result).to_not be_nil
|
79
|
-
|
80
|
-
# update_user_properties
|
81
|
-
app_properties_update = ArtikCloud::AppProperties.new
|
82
|
-
app_properties_update.properties = 'mno=pqr'
|
83
|
-
result_update = instance.update_user_properties(user.id, app_properties_update, aid: user.aid)
|
84
|
-
expect(result_update).to_not be_nil
|
85
|
-
expect(result_update.data.properties).to eq 'mno=pqr'
|
86
|
-
|
87
|
-
# delete_user_properties
|
88
|
-
result_delete = instance.delete_user_properties(user.id, aid: user.aid)
|
89
|
-
expect(result_delete).to_not be_nil
|
90
|
-
expect(result_delete).to eq result_update
|
91
|
-
end
|
105
|
+
# unit tests for get_user_properties
|
106
|
+
# Get User application properties
|
107
|
+
# Get application properties of a user
|
108
|
+
# @param user_id User Id
|
109
|
+
# @param [Hash] opts the optional parameters
|
110
|
+
# @option opts [String] :aid Application ID
|
111
|
+
# @return [PropertiesEnvelope]
|
112
|
+
describe 'get_user_properties test' do
|
113
|
+
it "should work" do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
115
|
end
|
93
116
|
end
|
94
117
|
|
118
|
+
# unit tests for get_user_rules
|
119
|
+
# Get User Rules
|
120
|
+
# Retrieve User's Rules
|
121
|
+
# @param user_id User ID.
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @option opts [BOOLEAN] :exclude_disabled Exclude disabled rules in the result.
|
124
|
+
# @option opts [Integer] :count Desired count of items in the result set.
|
125
|
+
# @option opts [Integer] :offset Offset for pagination.
|
126
|
+
# @option opts [String] :owner Rule owner
|
127
|
+
# @return [RulesEnvelope]
|
95
128
|
describe 'get_user_rules test' do
|
96
129
|
it "should work" do
|
97
|
-
|
98
|
-
|
130
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
# unit tests for list_all_shares_for_user
|
135
|
+
# Get User shares
|
136
|
+
# Get User shares
|
137
|
+
# @param user_id User ID.
|
138
|
+
# @param filter filter
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @option opts [Integer] :count Desired count of items in the result set.
|
141
|
+
# @option opts [Integer] :offset Offset for pagination.
|
142
|
+
# @return [DeviceSharingEnvelope]
|
143
|
+
describe 'list_all_shares_for_user test' do
|
144
|
+
it "should work" do
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
146
|
end
|
100
147
|
end
|
148
|
+
|
149
|
+
# unit tests for update_user_properties
|
150
|
+
# Update User Application Properties
|
151
|
+
# Updates application properties of a user
|
152
|
+
# @param user_id User Id
|
153
|
+
# @param properties Properties to be updated
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @option opts [String] :aid Application ID
|
156
|
+
# @return [PropertiesEnvelope]
|
157
|
+
describe 'update_user_properties test' do
|
158
|
+
it "should work" do
|
159
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
101
163
|
end
|
@@ -0,0 +1,152 @@
|
|
1
|
+
=begin
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
|
15
|
+
# Unit tests for ArtikCloud::WhitelistingApi
|
16
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
17
|
+
# Please update as you see appropriate
|
18
|
+
describe 'WhitelistingApi' do
|
19
|
+
before do
|
20
|
+
# run before each test
|
21
|
+
@instance = ArtikCloud::WhitelistingApi.new
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of WhitelistingApi' do
|
29
|
+
it 'should create an instact of WhitelistingApi' do
|
30
|
+
expect(@instance).to be_instance_of(ArtikCloud::WhitelistingApi)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# unit tests for delete_vdid
|
35
|
+
# Delete a vdid from the devicetype whitelist.
|
36
|
+
# Delete a vdid from the devicetype whitelist.
|
37
|
+
# @param dtid Device Type ID.
|
38
|
+
# @param vdid Vendor Device ID.
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [WhitelistEnvelope]
|
41
|
+
describe 'delete_vdid test' 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
|
+
# unit tests for delete_whitelist_certificate
|
48
|
+
# Delete a whitelist certificate associated with a devicetype.
|
49
|
+
# Delete a whitelist certificate associated with a devicetype.
|
50
|
+
# @param dtid Device Type ID.
|
51
|
+
# @param cid Certificate ID.
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [WhitelistEnvelope]
|
54
|
+
describe 'delete_whitelist_certificate test' do
|
55
|
+
it "should work" do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for enable_whitelist
|
61
|
+
# Enable or disble whitelist feature of a device type
|
62
|
+
# Enable or disble whitelist feature of a device type
|
63
|
+
# @param dtid Device Type ID.
|
64
|
+
# @param device_type_update_info Device type update input.
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @return [WhitelistEnvelope]
|
67
|
+
describe 'enable_whitelist test' do
|
68
|
+
it "should work" do
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# unit tests for get_rejected_row_list
|
74
|
+
# Get the list of rejected rows for an uploaded CSV file.
|
75
|
+
# Get the list of rejected rows for an uploaded CSV file.
|
76
|
+
# @param dtid Device type id related to the uploaded CSV file.
|
77
|
+
# @param upload_id Upload id related to the uploaded CSV file.
|
78
|
+
# @param [Hash] opts the optional parameters
|
79
|
+
# @option opts [Integer] :count Max results count.
|
80
|
+
# @option opts [Integer] :offset Result starting offset.
|
81
|
+
# @return [RejectedCSVRowsEnvelope]
|
82
|
+
describe 'get_rejected_row_list test' do
|
83
|
+
it "should work" do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# unit tests for get_upload_status
|
89
|
+
# Get the status of a uploaded CSV file.
|
90
|
+
# Get the status of a uploaded CSV file.
|
91
|
+
# @param dtid Device type id related to the uploaded CSV file.
|
92
|
+
# @param upload_id Upload id related to the uploaded CSV file.
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [UploadStatusEnvelope]
|
95
|
+
describe 'get_upload_status test' do
|
96
|
+
it "should work" do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
# unit tests for get_whitelist
|
102
|
+
# Get whitelisted vdids of a device type.
|
103
|
+
# Get whitelisted vdids of a device type.
|
104
|
+
# @param dtid Device Type ID.
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [Integer] :count Max results count.
|
107
|
+
# @option opts [Integer] :offset Result starting offset.
|
108
|
+
# @return [WhitelistResultEnvelope]
|
109
|
+
describe 'get_whitelist test' do
|
110
|
+
it "should work" do
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
# unit tests for get_whitelist_certificate
|
116
|
+
# Get whitelist certificate of device type.
|
117
|
+
# Get whitelist certificate of device type.
|
118
|
+
# @param dtid Device Type ID.
|
119
|
+
# @param [Hash] opts the optional parameters
|
120
|
+
# @return [CertificateEnvelope]
|
121
|
+
describe 'get_whitelist_certificate test' do
|
122
|
+
it "should work" do
|
123
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# unit tests for get_whitelist_status
|
128
|
+
# Get the status of whitelist feature (enabled/disabled) of a device type.
|
129
|
+
# Get the status of whitelist feature (enabled/disabled) of a device type.
|
130
|
+
# @param dtid Device Type ID.
|
131
|
+
# @param [Hash] opts the optional parameters
|
132
|
+
# @return [WhitelistEnvelope]
|
133
|
+
describe 'get_whitelist_status test' do
|
134
|
+
it "should work" do
|
135
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# unit tests for upload_csv
|
140
|
+
# Upload a CSV file related to the Device Type.
|
141
|
+
# Upload a CSV file related to the Device Type.
|
142
|
+
# @param dtid Device Type ID.
|
143
|
+
# @param file Device Type ID.
|
144
|
+
# @param [Hash] opts the optional parameters
|
145
|
+
# @return [UploadIdEnvelope]
|
146
|
+
describe 'upload_csv test' do
|
147
|
+
it "should work" do
|
148
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
end
|
data/spec/factories/users.rb
CHANGED
@@ -3,13 +3,13 @@ require 'ostruct'
|
|
3
3
|
FactoryGirl.define do
|
4
4
|
skip_create
|
5
5
|
factory :user, class: OpenStruct do
|
6
|
-
id "
|
6
|
+
id " "
|
7
7
|
aid "b6951bf387b84f63b38911ae35d65e28"
|
8
|
-
name "
|
9
|
-
email "
|
10
|
-
full_name "
|
11
|
-
sa_identity "
|
12
|
-
account_type "
|
8
|
+
name " "
|
9
|
+
email " "
|
10
|
+
full_name " "
|
11
|
+
sa_identity " "
|
12
|
+
account_type " "
|
13
13
|
created_on 1406839290000
|
14
14
|
modified_on 1413483926000
|
15
15
|
|
@@ -17,12 +17,12 @@ FactoryGirl.define do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
factory :artik_user, class: ArtikCloud::User do
|
20
|
-
id "
|
21
|
-
name "
|
22
|
-
email "
|
23
|
-
fullName "
|
24
|
-
saIdentity "
|
25
|
-
accountType "
|
20
|
+
id " "
|
21
|
+
name " "
|
22
|
+
email " "
|
23
|
+
fullName " "
|
24
|
+
saIdentity " "
|
25
|
+
accountType " "
|
26
26
|
createdOn 1406839290000
|
27
27
|
modifiedOn 1413483926000
|
28
28
|
|
@@ -31,6 +31,42 @@ describe 'ActionOut' do
|
|
31
31
|
expect(@instance).to be_instance_of(ArtikCloud::ActionOut)
|
32
32
|
end
|
33
33
|
end
|
34
|
+
describe 'test attribute "data"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "cid"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "ddid"' 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
|
+
describe 'test attribute "sdid"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "ts"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "type"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
34
70
|
describe 'test attribute "mid"' do
|
35
71
|
it 'should work' do
|
36
72
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
require 'date'
|
15
|
+
|
16
|
+
# Unit tests for ArtikCloud::CertificateData
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CertificateData' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = ArtikCloud::CertificateData.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CertificateData' do
|
30
|
+
it 'should create an instact of CertificateData' do
|
31
|
+
expect(@instance).to be_instance_of(ArtikCloud::CertificateData)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe 'test attribute "id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "certificate_fields"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
require 'date'
|
15
|
+
|
16
|
+
# Unit tests for ArtikCloud::CertificateEnvelope
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CertificateEnvelope' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = ArtikCloud::CertificateEnvelope.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CertificateEnvelope' do
|
30
|
+
it 'should create an instact of CertificateEnvelope' do
|
31
|
+
expect(@instance).to be_instance_of(ArtikCloud::CertificateEnvelope)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe 'test attribute "id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
=begin
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
require 'date'
|
15
|
+
|
16
|
+
# Unit tests for ArtikCloud::CertificateFields
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CertificateFields' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = ArtikCloud::CertificateFields.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CertificateFields' do
|
30
|
+
it 'should create an instact of CertificateFields' do
|
31
|
+
expect(@instance).to be_instance_of(ArtikCloud::CertificateFields)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe 'test attribute "version"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "serial_number"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "signature_algorithm"' 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
|
+
describe 'test attribute "subject"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "issuer"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "validity"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#ARTIK Cloud API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
require 'date'
|
15
|
+
|
16
|
+
# Unit tests for ArtikCloud::CertificateId
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CertificateId' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = ArtikCloud::CertificateId.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CertificateId' do
|
30
|
+
it 'should create an instact of CertificateId' do
|
31
|
+
expect(@instance).to be_instance_of(ArtikCloud::CertificateId)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe 'test attribute "string_id"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|