budgea_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +89 -0
- data/README.md +619 -0
- data/Rakefile +13 -0
- data/budgea_client.gemspec +35 -0
- data/docs/Access.md +12 -0
- data/docs/Account.md +25 -0
- data/docs/AccountLog.md +15 -0
- data/docs/AccountType.md +15 -0
- data/docs/AdministrationApi.md +944 -0
- data/docs/Alert.md +15 -0
- data/docs/AuthenticationApi.md +398 -0
- data/docs/Bank.md +18 -0
- data/docs/BankCategory.md +9 -0
- data/docs/BanksApi.md +6558 -0
- data/docs/Category.md +17 -0
- data/docs/Client.md +18 -0
- data/docs/Connection.md +16 -0
- data/docs/ConnectionContact.md +17 -0
- data/docs/ConnectionLog.md +21 -0
- data/docs/ConnectionsApi.md +934 -0
- data/docs/ConnectorLogo.md +11 -0
- data/docs/Currency.md +10 -0
- data/docs/Device.md +14 -0
- data/docs/Document.md +29 -0
- data/docs/DocumentType.md +10 -0
- data/docs/DocumentsApi.md +5228 -0
- data/docs/Field.md +15 -0
- data/docs/File.md +11 -0
- data/docs/Group.md +15 -0
- data/docs/HashTable.md +11 -0
- data/docs/InlineResponse200.md +8 -0
- data/docs/InlineResponse2001.md +9 -0
- data/docs/InlineResponse20010.md +8 -0
- data/docs/InlineResponse20011.md +8 -0
- data/docs/InlineResponse20012.md +8 -0
- data/docs/InlineResponse20013.md +8 -0
- data/docs/InlineResponse20014.md +8 -0
- data/docs/InlineResponse20015.md +8 -0
- data/docs/InlineResponse20016.md +8 -0
- data/docs/InlineResponse20017.md +8 -0
- data/docs/InlineResponse20018.md +8 -0
- data/docs/InlineResponse20019.md +8 -0
- data/docs/InlineResponse2002.md +10 -0
- data/docs/InlineResponse20020.md +8 -0
- data/docs/InlineResponse20021.md +8 -0
- data/docs/InlineResponse20022.md +8 -0
- data/docs/InlineResponse20023.md +8 -0
- data/docs/InlineResponse20024.md +8 -0
- data/docs/InlineResponse20025.md +8 -0
- data/docs/InlineResponse20026.md +8 -0
- data/docs/InlineResponse20027.md +8 -0
- data/docs/InlineResponse20028.md +8 -0
- data/docs/InlineResponse20029.md +8 -0
- data/docs/InlineResponse2003.md +10 -0
- data/docs/InlineResponse20030.md +8 -0
- data/docs/InlineResponse20031.md +8 -0
- data/docs/InlineResponse20032.md +8 -0
- data/docs/InlineResponse20033.md +8 -0
- data/docs/InlineResponse2004.md +12 -0
- data/docs/InlineResponse2005.md +9 -0
- data/docs/InlineResponse2006.md +10 -0
- data/docs/InlineResponse2007.md +8 -0
- data/docs/InlineResponse2008.md +8 -0
- data/docs/InlineResponse2009.md +8 -0
- data/docs/Investment.md +32 -0
- data/docs/InvestmentValue.md +13 -0
- data/docs/Invite.md +13 -0
- data/docs/LockedUser.md +10 -0
- data/docs/OCRApi.md +117 -0
- data/docs/OIDCApi.md +167 -0
- data/docs/OidcWhitelist.md +9 -0
- data/docs/PFMApi.md +2204 -0
- data/docs/Pocket.md +17 -0
- data/docs/Profile.md +15 -0
- data/docs/Project.md +16 -0
- data/docs/ProjectType.md +10 -0
- data/docs/ProvidersApi.md +7014 -0
- data/docs/Recipient.md +22 -0
- data/docs/RecipientsApi.md +244 -0
- data/docs/Security.md +12 -0
- data/docs/Subscription.md +18 -0
- data/docs/TermsApi.md +218 -0
- data/docs/TermsOfService.md +12 -0
- data/docs/Transaction.md +33 -0
- data/docs/TransactionInformation.md +11 -0
- data/docs/TransactionsCluster.md +16 -0
- data/docs/Transfer.md +23 -0
- data/docs/TransfersApi.md +2404 -0
- data/docs/User.md +10 -0
- data/docs/UserAlert.md +21 -0
- data/docs/UsersManagementApi.md +608 -0
- data/docs/WealthApi.md +828 -0
- data/docs/Webhook.md +15 -0
- data/git_push.sh +55 -0
- data/lib/budgea_client.rb +118 -0
- data/lib/budgea_client/api/administration_api.rb +1059 -0
- data/lib/budgea_client/api/authentication_api.rb +467 -0
- data/lib/budgea_client/api/banks_api.rb +7837 -0
- data/lib/budgea_client/api/connections_api.rb +1088 -0
- data/lib/budgea_client/api/documents_api.rb +6637 -0
- data/lib/budgea_client/api/ocr_api.rb +141 -0
- data/lib/budgea_client/api/oidc_api.rb +195 -0
- data/lib/budgea_client/api/pfm_api.rb +2630 -0
- data/lib/budgea_client/api/providers_api.rb +8694 -0
- data/lib/budgea_client/api/recipients_api.rb +293 -0
- data/lib/budgea_client/api/terms_api.rb +245 -0
- data/lib/budgea_client/api/transfers_api.rb +2941 -0
- data/lib/budgea_client/api/users_management_api.rb +695 -0
- data/lib/budgea_client/api/wealth_api.rb +994 -0
- data/lib/budgea_client/api_client.rb +378 -0
- data/lib/budgea_client/api_error.rb +28 -0
- data/lib/budgea_client/configuration.rb +192 -0
- data/lib/budgea_client/models/access.rb +224 -0
- data/lib/budgea_client/models/account.rb +383 -0
- data/lib/budgea_client/models/account_log.rb +266 -0
- data/lib/budgea_client/models/account_type.rb +281 -0
- data/lib/budgea_client/models/alert.rb +273 -0
- data/lib/budgea_client/models/bank.rb +308 -0
- data/lib/budgea_client/models/bank_category.rb +201 -0
- data/lib/budgea_client/models/category.rb +299 -0
- data/lib/budgea_client/models/client.rb +305 -0
- data/lib/budgea_client/models/connection.rb +276 -0
- data/lib/budgea_client/models/connection_contact.rb +274 -0
- data/lib/budgea_client/models/connection_log.rb +324 -0
- data/lib/budgea_client/models/connector_logo.rb +223 -0
- data/lib/budgea_client/models/currency.rb +216 -0
- data/lib/budgea_client/models/device.rb +269 -0
- data/lib/budgea_client/models/document.rb +398 -0
- data/lib/budgea_client/models/document_type.rb +213 -0
- data/lib/budgea_client/models/field.rb +273 -0
- data/lib/budgea_client/models/file.rb +225 -0
- data/lib/budgea_client/models/group.rb +246 -0
- data/lib/budgea_client/models/hash_table.rb +227 -0
- data/lib/budgea_client/models/inline_response_200.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_1.rb +199 -0
- data/lib/budgea_client/models/inline_response_200_10.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_11.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_12.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_13.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_14.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_15.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_16.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_17.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_18.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_19.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_2.rb +209 -0
- data/lib/budgea_client/models/inline_response_200_20.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_21.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_22.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_23.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_24.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_25.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_26.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_27.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_28.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_29.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_3.rb +214 -0
- data/lib/budgea_client/models/inline_response_200_30.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_31.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_32.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_33.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_4.rb +239 -0
- data/lib/budgea_client/models/inline_response_200_5.rb +199 -0
- data/lib/budgea_client/models/inline_response_200_6.rb +214 -0
- data/lib/budgea_client/models/inline_response_200_7.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_8.rb +185 -0
- data/lib/budgea_client/models/inline_response_200_9.rb +185 -0
- data/lib/budgea_client/models/investment.rb +449 -0
- data/lib/budgea_client/models/investment_value.rb +249 -0
- data/lib/budgea_client/models/invite.rb +233 -0
- data/lib/budgea_client/models/locked_user.rb +206 -0
- data/lib/budgea_client/models/oidc_whitelist.rb +198 -0
- data/lib/budgea_client/models/pocket.rb +298 -0
- data/lib/budgea_client/models/profile.rb +308 -0
- data/lib/budgea_client/models/project.rb +301 -0
- data/lib/budgea_client/models/project_type.rb +206 -0
- data/lib/budgea_client/models/recipient.rb +343 -0
- data/lib/budgea_client/models/security.rb +229 -0
- data/lib/budgea_client/models/subscription.rb +299 -0
- data/lib/budgea_client/models/terms_of_service.rb +229 -0
- data/lib/budgea_client/models/transaction.rb +507 -0
- data/lib/budgea_client/models/transaction_information.rb +224 -0
- data/lib/budgea_client/models/transactions_cluster.rb +277 -0
- data/lib/budgea_client/models/transfer.rb +354 -0
- data/lib/budgea_client/models/user.rb +244 -0
- data/lib/budgea_client/models/user_alert.rb +333 -0
- data/lib/budgea_client/models/webhook.rb +264 -0
- data/lib/budgea_client/version.rb +5 -0
- data/pkg/budgea_client-1.0.0.gem +0 -0
- data/spec/api/administration_api_spec.rb +271 -0
- data/spec/api/authentication_api_spec.rb +126 -0
- data/spec/api/banks_api_spec.rb +1787 -0
- data/spec/api/connections_api_spec.rb +279 -0
- data/spec/api/documents_api_spec.rb +1557 -0
- data/spec/api/ocr_api_spec.rb +54 -0
- data/spec/api/oidc_api_spec.rb +65 -0
- data/spec/api/pfm_api_spec.rb +613 -0
- data/spec/api/providers_api_spec.rb +2029 -0
- data/spec/api/recipients_api_spec.rb +89 -0
- data/spec/api/terms_api_spec.rb +79 -0
- data/spec/api/transfers_api_spec.rb +661 -0
- data/spec/api/users_management_api_spec.rb +177 -0
- data/spec/api/wealth_api_spec.rb +246 -0
- data/spec/api_client_spec.rb +216 -0
- data/spec/configuration_spec.rb +32 -0
- data/spec/models/access_spec.rb +56 -0
- data/spec/models/account_log_spec.rb +74 -0
- data/spec/models/account_spec.rb +134 -0
- data/spec/models/account_type_spec.rb +74 -0
- data/spec/models/alert_spec.rb +74 -0
- data/spec/models/bank_category_spec.rb +38 -0
- data/spec/models/bank_spec.rb +92 -0
- data/spec/models/category_spec.rb +86 -0
- data/spec/models/client_spec.rb +92 -0
- data/spec/models/connection_contact_spec.rb +86 -0
- data/spec/models/connection_log_spec.rb +110 -0
- data/spec/models/connection_spec.rb +80 -0
- data/spec/models/connector_logo_spec.rb +50 -0
- data/spec/models/currency_spec.rb +44 -0
- data/spec/models/device_spec.rb +68 -0
- data/spec/models/document_spec.rb +158 -0
- data/spec/models/document_type_spec.rb +44 -0
- data/spec/models/field_spec.rb +74 -0
- data/spec/models/file_spec.rb +50 -0
- data/spec/models/group_spec.rb +74 -0
- data/spec/models/hash_table_spec.rb +50 -0
- data/spec/models/inline_response_200_10_spec.rb +32 -0
- data/spec/models/inline_response_200_11_spec.rb +32 -0
- data/spec/models/inline_response_200_12_spec.rb +32 -0
- data/spec/models/inline_response_200_13_spec.rb +32 -0
- data/spec/models/inline_response_200_14_spec.rb +32 -0
- data/spec/models/inline_response_200_15_spec.rb +32 -0
- data/spec/models/inline_response_200_16_spec.rb +32 -0
- data/spec/models/inline_response_200_17_spec.rb +32 -0
- data/spec/models/inline_response_200_18_spec.rb +32 -0
- data/spec/models/inline_response_200_19_spec.rb +32 -0
- data/spec/models/inline_response_200_1_spec.rb +38 -0
- data/spec/models/inline_response_200_20_spec.rb +32 -0
- data/spec/models/inline_response_200_21_spec.rb +32 -0
- data/spec/models/inline_response_200_22_spec.rb +32 -0
- data/spec/models/inline_response_200_23_spec.rb +32 -0
- data/spec/models/inline_response_200_24_spec.rb +32 -0
- data/spec/models/inline_response_200_25_spec.rb +32 -0
- data/spec/models/inline_response_200_26_spec.rb +32 -0
- data/spec/models/inline_response_200_27_spec.rb +32 -0
- data/spec/models/inline_response_200_28_spec.rb +32 -0
- data/spec/models/inline_response_200_29_spec.rb +32 -0
- data/spec/models/inline_response_200_2_spec.rb +44 -0
- data/spec/models/inline_response_200_30_spec.rb +32 -0
- data/spec/models/inline_response_200_31_spec.rb +32 -0
- data/spec/models/inline_response_200_32_spec.rb +32 -0
- data/spec/models/inline_response_200_33_spec.rb +32 -0
- data/spec/models/inline_response_200_3_spec.rb +44 -0
- data/spec/models/inline_response_200_4_spec.rb +56 -0
- data/spec/models/inline_response_200_5_spec.rb +38 -0
- data/spec/models/inline_response_200_6_spec.rb +44 -0
- data/spec/models/inline_response_200_7_spec.rb +32 -0
- data/spec/models/inline_response_200_8_spec.rb +32 -0
- data/spec/models/inline_response_200_9_spec.rb +32 -0
- data/spec/models/inline_response_200_spec.rb +32 -0
- data/spec/models/investment_spec.rb +176 -0
- data/spec/models/investment_value_spec.rb +62 -0
- data/spec/models/invite_spec.rb +62 -0
- data/spec/models/locked_user_spec.rb +44 -0
- data/spec/models/oidc_whitelist_spec.rb +38 -0
- data/spec/models/pocket_spec.rb +86 -0
- data/spec/models/profile_spec.rb +78 -0
- data/spec/models/project_spec.rb +80 -0
- data/spec/models/project_type_spec.rb +44 -0
- data/spec/models/recipient_spec.rb +116 -0
- data/spec/models/security_spec.rb +56 -0
- data/spec/models/subscription_spec.rb +92 -0
- data/spec/models/terms_of_service_spec.rb +56 -0
- data/spec/models/transaction_information_spec.rb +50 -0
- data/spec/models/transaction_spec.rb +182 -0
- data/spec/models/transactions_cluster_spec.rb +80 -0
- data/spec/models/transfer_spec.rb +122 -0
- data/spec/models/user_alert_spec.rb +110 -0
- data/spec/models/user_spec.rb +48 -0
- data/spec/models/webhook_spec.rb +74 -0
- data/spec/spec_helper.rb +51 -0
- metadata +599 -0
@@ -0,0 +1,177 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
# Unit tests for BudgeaClient::UsersManagementApi
|
7
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
8
|
+
# Please update as you see appropriate
|
9
|
+
describe 'UsersManagementApi' do
|
10
|
+
before do
|
11
|
+
# run before each test
|
12
|
+
@instance = BudgeaClient::UsersManagementApi.new
|
13
|
+
end
|
14
|
+
|
15
|
+
after do
|
16
|
+
# run after each test
|
17
|
+
end
|
18
|
+
|
19
|
+
describe 'test an instance of UsersManagementApi' do
|
20
|
+
it 'should create an instance of UsersManagementApi' do
|
21
|
+
expect(@instance).to be_instance_of(BudgeaClient::UsersManagementApi)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
# unit tests for hash_delete
|
26
|
+
# Delete the user's connections
|
27
|
+
# deletes all connections of the user given his hash<br><br>
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [nil]
|
30
|
+
describe 'hash_delete test' do
|
31
|
+
it "should work" do
|
32
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# unit tests for users_get
|
37
|
+
# Get users
|
38
|
+
#
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :search searches a user by mail (if it contains no '@', '@biapi.pro' will be added at the end)
|
41
|
+
# @option opts [String] :expand
|
42
|
+
# @return [InlineResponse20017]
|
43
|
+
describe 'users_get test' do
|
44
|
+
it "should work" do
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# unit tests for users_id_user_config_delete
|
50
|
+
# Delete the given user configurations. deletions on keys prefixed by 'biapi.' (except callback_url) are ignored
|
51
|
+
# - keys (string): list of coma separated keys to be deleted.<br><br>
|
52
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @return [nil]
|
55
|
+
describe 'users_id_user_config_delete test' do
|
56
|
+
it "should work" do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for users_id_user_config_get
|
62
|
+
# Get configuration of a user.
|
63
|
+
# <br><br>
|
64
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @return [Object]
|
67
|
+
describe 'users_id_user_config_get 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 users_id_user_config_post
|
74
|
+
# Change configuration of a user. modifications on keys prefixed by 'biapi.' (except callback_url) are ignored
|
75
|
+
#
|
76
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
77
|
+
# @param [Hash] opts the optional parameters
|
78
|
+
# @return [nil]
|
79
|
+
describe 'users_id_user_config_post test' do
|
80
|
+
it "should work" do
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# unit tests for users_id_user_delete
|
86
|
+
# Delete the user
|
87
|
+
# This endpoint deletes the user.<br><br>
|
88
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @option opts [String] :expand
|
91
|
+
# @return [User]
|
92
|
+
describe 'users_id_user_delete test' do
|
93
|
+
it "should work" do
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# unit tests for users_id_user_get
|
99
|
+
# Get a user
|
100
|
+
#
|
101
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [String] :expand
|
104
|
+
# @return [User]
|
105
|
+
describe 'users_id_user_get test' do
|
106
|
+
it "should work" do
|
107
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# unit tests for users_id_user_profiles_get
|
112
|
+
# Get profiles
|
113
|
+
#
|
114
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
115
|
+
# @param [Hash] opts the optional parameters
|
116
|
+
# @option opts [String] :expand
|
117
|
+
# @return [InlineResponse20032]
|
118
|
+
describe 'users_id_user_profiles_get test' do
|
119
|
+
it "should work" do
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
# unit tests for users_id_user_profiles_id_profile_get
|
125
|
+
# Get a profile
|
126
|
+
#
|
127
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
128
|
+
# @param id_profile
|
129
|
+
# @param [Hash] opts the optional parameters
|
130
|
+
# @option opts [String] :expand
|
131
|
+
# @return [Profile]
|
132
|
+
describe 'users_id_user_profiles_id_profile_get test' do
|
133
|
+
it "should work" do
|
134
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
# unit tests for users_id_user_profiles_main_get
|
139
|
+
# Get the main profile
|
140
|
+
#
|
141
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
142
|
+
# @param [Hash] opts the optional parameters
|
143
|
+
# @option opts [String] :expand
|
144
|
+
# @return [Profile]
|
145
|
+
describe 'users_id_user_profiles_main_get test' do
|
146
|
+
it "should work" do
|
147
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
# unit tests for users_id_user_profiles_me_get
|
152
|
+
# Get my profile
|
153
|
+
#
|
154
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
155
|
+
# @param [Hash] opts the optional parameters
|
156
|
+
# @option opts [String] :expand
|
157
|
+
# @return [Profile]
|
158
|
+
describe 'users_id_user_profiles_me_get test' do
|
159
|
+
it "should work" do
|
160
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
# unit tests for users_id_user_token_post
|
165
|
+
# Create a token
|
166
|
+
# Create an access_token for this user and get it.<br><br>
|
167
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
168
|
+
# @param application application name
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @return [Object]
|
171
|
+
describe 'users_id_user_token_post test' do
|
172
|
+
it "should work" do
|
173
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
end
|
@@ -0,0 +1,246 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'json'
|
5
|
+
|
6
|
+
# Unit tests for BudgeaClient::WealthApi
|
7
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
8
|
+
# Please update as you see appropriate
|
9
|
+
describe 'WealthApi' do
|
10
|
+
before do
|
11
|
+
# run before each test
|
12
|
+
@instance = BudgeaClient::WealthApi.new
|
13
|
+
end
|
14
|
+
|
15
|
+
after do
|
16
|
+
# run after each test
|
17
|
+
end
|
18
|
+
|
19
|
+
describe 'test an instance of WealthApi' do
|
20
|
+
it 'should create an instance of WealthApi' do
|
21
|
+
expect(@instance).to be_instance_of(BudgeaClient::WealthApi)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
# unit tests for finance_securities_get
|
26
|
+
# Get securities
|
27
|
+
#
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [String] :expand
|
30
|
+
# @return [InlineResponse20014]
|
31
|
+
describe 'finance_securities_get test' do
|
32
|
+
it "should work" do
|
33
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
# unit tests for finance_securities_id_security_history_get
|
38
|
+
# Get connection logs
|
39
|
+
# Get logs about connections.<br><br>
|
40
|
+
# @param id_security
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [Integer] :limit limit number of results
|
43
|
+
# @option opts [Integer] :offset offset of first result
|
44
|
+
# @option opts [Date] :min_date minimal date
|
45
|
+
# @option opts [Date] :max_date maximum date
|
46
|
+
# @option opts [String] :period period to group logs
|
47
|
+
# @return [nil]
|
48
|
+
describe 'finance_securities_id_security_history_get test' do
|
49
|
+
it "should work" do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for users_id_user_accounts_id_account_investments_get
|
55
|
+
# Get investments
|
56
|
+
#
|
57
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
58
|
+
# @param id_account
|
59
|
+
# @param [Hash] opts the optional parameters
|
60
|
+
# @option opts [String] :expand
|
61
|
+
# @return [InlineResponse20019]
|
62
|
+
describe 'users_id_user_accounts_id_account_investments_get test' do
|
63
|
+
it "should work" do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# unit tests for users_id_user_accounts_id_account_investments_id_investment_history_get
|
69
|
+
# Get investment values
|
70
|
+
#
|
71
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
72
|
+
# @param id_account
|
73
|
+
# @param id_investment
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [String] :expand
|
76
|
+
# @return [InlineResponse20020]
|
77
|
+
describe 'users_id_user_accounts_id_account_investments_id_investment_history_get test' do
|
78
|
+
it "should work" do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# unit tests for users_id_user_accounts_id_account_investments_id_investment_security_history_get
|
84
|
+
# Get connection logs
|
85
|
+
# Get logs about connections.<br><br>
|
86
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
87
|
+
# @param id_account
|
88
|
+
# @param id_investment
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @option opts [Integer] :limit limit number of results
|
91
|
+
# @option opts [Integer] :offset offset of first result
|
92
|
+
# @option opts [Date] :min_date minimal date
|
93
|
+
# @option opts [Date] :max_date maximum date
|
94
|
+
# @option opts [String] :period period to group logs
|
95
|
+
# @return [nil]
|
96
|
+
describe 'users_id_user_accounts_id_account_investments_id_investment_security_history_get test' do
|
97
|
+
it "should work" do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# unit tests for users_id_user_connections_id_connection_accounts_id_account_investments_get
|
103
|
+
# Get investments
|
104
|
+
#
|
105
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
106
|
+
# @param id_connection
|
107
|
+
# @param id_account
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [String] :expand
|
110
|
+
# @return [InlineResponse20019]
|
111
|
+
describe 'users_id_user_connections_id_connection_accounts_id_account_investments_get test' do
|
112
|
+
it "should work" do
|
113
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# unit tests for users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get
|
118
|
+
# Get investment values
|
119
|
+
#
|
120
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
121
|
+
# @param id_connection
|
122
|
+
# @param id_account
|
123
|
+
# @param id_investment
|
124
|
+
# @param [Hash] opts the optional parameters
|
125
|
+
# @option opts [String] :expand
|
126
|
+
# @return [InlineResponse20020]
|
127
|
+
describe 'users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_history_get test' do
|
128
|
+
it "should work" do
|
129
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
# unit tests for users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get
|
134
|
+
# Get connection logs
|
135
|
+
# Get logs about connections.<br><br>
|
136
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
137
|
+
# @param id_connection
|
138
|
+
# @param id_account
|
139
|
+
# @param id_investment
|
140
|
+
# @param [Hash] opts the optional parameters
|
141
|
+
# @option opts [Integer] :limit limit number of results
|
142
|
+
# @option opts [Integer] :offset offset of first result
|
143
|
+
# @option opts [Date] :min_date minimal date
|
144
|
+
# @option opts [Date] :max_date maximum date
|
145
|
+
# @option opts [String] :period period to group logs
|
146
|
+
# @return [nil]
|
147
|
+
describe 'users_id_user_connections_id_connection_accounts_id_account_investments_id_investment_security_history_get test' do
|
148
|
+
it "should work" do
|
149
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# unit tests for users_id_user_connections_id_connection_investments_get
|
154
|
+
# Get investments
|
155
|
+
#
|
156
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
157
|
+
# @param id_connection
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @option opts [String] :expand
|
160
|
+
# @return [InlineResponse20019]
|
161
|
+
describe 'users_id_user_connections_id_connection_investments_get test' do
|
162
|
+
it "should work" do
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# unit tests for users_id_user_connections_id_connection_investments_id_investment_history_get
|
168
|
+
# Get investment values
|
169
|
+
#
|
170
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
171
|
+
# @param id_connection
|
172
|
+
# @param id_investment
|
173
|
+
# @param [Hash] opts the optional parameters
|
174
|
+
# @option opts [String] :expand
|
175
|
+
# @return [InlineResponse20020]
|
176
|
+
describe 'users_id_user_connections_id_connection_investments_id_investment_history_get test' do
|
177
|
+
it "should work" do
|
178
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# unit tests for users_id_user_connections_id_connection_investments_id_investment_security_history_get
|
183
|
+
# Get connection logs
|
184
|
+
# Get logs about connections.<br><br>
|
185
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
186
|
+
# @param id_connection
|
187
|
+
# @param id_investment
|
188
|
+
# @param [Hash] opts the optional parameters
|
189
|
+
# @option opts [Integer] :limit limit number of results
|
190
|
+
# @option opts [Integer] :offset offset of first result
|
191
|
+
# @option opts [Date] :min_date minimal date
|
192
|
+
# @option opts [Date] :max_date maximum date
|
193
|
+
# @option opts [String] :period period to group logs
|
194
|
+
# @return [nil]
|
195
|
+
describe 'users_id_user_connections_id_connection_investments_id_investment_security_history_get test' do
|
196
|
+
it "should work" do
|
197
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# unit tests for users_id_user_investments_get
|
202
|
+
# Get investments
|
203
|
+
#
|
204
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
205
|
+
# @param [Hash] opts the optional parameters
|
206
|
+
# @option opts [String] :expand
|
207
|
+
# @return [InlineResponse20019]
|
208
|
+
describe 'users_id_user_investments_get test' do
|
209
|
+
it "should work" do
|
210
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
# unit tests for users_id_user_investments_id_investment_history_get
|
215
|
+
# Get investment values
|
216
|
+
#
|
217
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
218
|
+
# @param id_investment
|
219
|
+
# @param [Hash] opts the optional parameters
|
220
|
+
# @option opts [String] :expand
|
221
|
+
# @return [InlineResponse20020]
|
222
|
+
describe 'users_id_user_investments_id_investment_history_get test' do
|
223
|
+
it "should work" do
|
224
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
# unit tests for users_id_user_investments_id_investment_security_history_get
|
229
|
+
# Get connection logs
|
230
|
+
# Get logs about connections.<br><br>
|
231
|
+
# @param id_user Hint: you can use 'me' or 'all'
|
232
|
+
# @param id_investment
|
233
|
+
# @param [Hash] opts the optional parameters
|
234
|
+
# @option opts [Integer] :limit limit number of results
|
235
|
+
# @option opts [Integer] :offset offset of first result
|
236
|
+
# @option opts [Date] :min_date minimal date
|
237
|
+
# @option opts [Date] :max_date maximum date
|
238
|
+
# @option opts [String] :period period to group logs
|
239
|
+
# @return [nil]
|
240
|
+
describe 'users_id_user_investments_id_investment_security_history_get test' do
|
241
|
+
it "should work" do
|
242
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
end
|
@@ -0,0 +1,216 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe BudgeaClient::ApiClient do
|
6
|
+
context 'initialization' do
|
7
|
+
context 'URL stuff' do
|
8
|
+
context 'host' do
|
9
|
+
it 'removes http from host' do
|
10
|
+
BudgeaClient.configure { |c| c.host = 'http://example.com' }
|
11
|
+
expect(BudgeaClient::Configuration.default.host).to eq('example.com')
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'removes https from host' do
|
15
|
+
BudgeaClient.configure { |c| c.host = 'https://wookiee.com' }
|
16
|
+
expect(BudgeaClient::ApiClient.default.config.host).to eq('wookiee.com')
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'removes trailing path from host' do
|
20
|
+
BudgeaClient.configure { |c| c.host = 'hobo.com/v4' }
|
21
|
+
expect(BudgeaClient::Configuration.default.host).to eq('hobo.com')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
context 'base_path' do
|
26
|
+
it "prepends a slash to base_path" do
|
27
|
+
BudgeaClient.configure { |c| c.base_path = 'v4/dog' }
|
28
|
+
expect(BudgeaClient::Configuration.default.base_path).to eq('/v4/dog')
|
29
|
+
end
|
30
|
+
|
31
|
+
it "doesn't prepend a slash if one is already there" do
|
32
|
+
BudgeaClient.configure { |c| c.base_path = '/v4/dog' }
|
33
|
+
expect(BudgeaClient::Configuration.default.base_path).to eq('/v4/dog')
|
34
|
+
end
|
35
|
+
|
36
|
+
it "ends up as a blank string if nil" do
|
37
|
+
BudgeaClient.configure { |c| c.base_path = nil }
|
38
|
+
expect(BudgeaClient::Configuration.default.base_path).to eq('')
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe "params_encoding in #build_request" do
|
45
|
+
let(:config) { BudgeaClient::Configuration.new }
|
46
|
+
let(:api_client) { BudgeaClient::ApiClient.new(config) }
|
47
|
+
|
48
|
+
it "defaults to nil" do
|
49
|
+
expect(BudgeaClient::Configuration.default.params_encoding).to eq(nil)
|
50
|
+
expect(config.params_encoding).to eq(nil)
|
51
|
+
|
52
|
+
request = api_client.build_request(:get, '/test')
|
53
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
54
|
+
end
|
55
|
+
|
56
|
+
it "can be customized" do
|
57
|
+
config.params_encoding = :multi
|
58
|
+
request = api_client.build_request(:get, '/test')
|
59
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe "timeout in #build_request" do
|
64
|
+
let(:config) { BudgeaClient::Configuration.new }
|
65
|
+
let(:api_client) { BudgeaClient::ApiClient.new(config) }
|
66
|
+
|
67
|
+
it "defaults to 0" do
|
68
|
+
expect(BudgeaClient::Configuration.default.timeout).to eq(0)
|
69
|
+
expect(config.timeout).to eq(0)
|
70
|
+
|
71
|
+
request = api_client.build_request(:get, '/test')
|
72
|
+
expect(request.options[:timeout]).to eq(0)
|
73
|
+
end
|
74
|
+
|
75
|
+
it "can be customized" do
|
76
|
+
config.timeout = 100
|
77
|
+
request = api_client.build_request(:get, '/test')
|
78
|
+
expect(request.options[:timeout]).to eq(100)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe "#deserialize" do
|
83
|
+
it "handles Array<Integer>" do
|
84
|
+
api_client = BudgeaClient::ApiClient.new
|
85
|
+
headers = {'Content-Type' => 'application/json'}
|
86
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
87
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
88
|
+
expect(data).to be_instance_of(Array)
|
89
|
+
expect(data).to eq([12, 34])
|
90
|
+
end
|
91
|
+
|
92
|
+
it "handles Array<Array<Integer>>" do
|
93
|
+
api_client = BudgeaClient::ApiClient.new
|
94
|
+
headers = {'Content-Type' => 'application/json'}
|
95
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
96
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
97
|
+
expect(data).to be_instance_of(Array)
|
98
|
+
expect(data).to eq([[12, 34], [56]])
|
99
|
+
end
|
100
|
+
|
101
|
+
it "handles Hash<String, String>" do
|
102
|
+
api_client = BudgeaClient::ApiClient.new
|
103
|
+
headers = {'Content-Type' => 'application/json'}
|
104
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
105
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
106
|
+
expect(data).to be_instance_of(Hash)
|
107
|
+
expect(data).to eq({:message => 'Hello'})
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
describe "#object_to_hash" do
|
112
|
+
it "ignores nils and includes empty arrays" do
|
113
|
+
# uncomment below to test object_to_hash for model
|
114
|
+
#api_client = BudgeaClient::ApiClient.new
|
115
|
+
#_model = BudgeaClient::ModelName.new
|
116
|
+
# update the model attribute below
|
117
|
+
#_model.id = 1
|
118
|
+
# update the expected value (hash) below
|
119
|
+
#expected = {id: 1, name: '', tags: []}
|
120
|
+
#expect(api_client.object_to_hash(_model)).to eq(expected)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
describe "#build_collection_param" do
|
125
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
126
|
+
let(:api_client) { BudgeaClient::ApiClient.new }
|
127
|
+
|
128
|
+
it "works for csv" do
|
129
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
130
|
+
end
|
131
|
+
|
132
|
+
it "works for ssv" do
|
133
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
134
|
+
end
|
135
|
+
|
136
|
+
it "works for tsv" do
|
137
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
138
|
+
end
|
139
|
+
|
140
|
+
it "works for pipes" do
|
141
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
142
|
+
end
|
143
|
+
|
144
|
+
it "works for multi" do
|
145
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
146
|
+
end
|
147
|
+
|
148
|
+
it "fails for invalid collection format" do
|
149
|
+
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
describe "#json_mime?" do
|
154
|
+
let(:api_client) { BudgeaClient::ApiClient.new }
|
155
|
+
|
156
|
+
it "works" do
|
157
|
+
expect(api_client.json_mime?(nil)).to eq false
|
158
|
+
expect(api_client.json_mime?('')).to eq false
|
159
|
+
|
160
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
161
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
162
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
163
|
+
|
164
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
165
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
166
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
describe "#select_header_accept" do
|
171
|
+
let(:api_client) { BudgeaClient::ApiClient.new }
|
172
|
+
|
173
|
+
it "works" do
|
174
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
175
|
+
expect(api_client.select_header_accept([])).to be_nil
|
176
|
+
|
177
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
178
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
179
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
180
|
+
|
181
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
182
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
describe "#select_header_content_type" do
|
187
|
+
let(:api_client) { BudgeaClient::ApiClient.new }
|
188
|
+
|
189
|
+
it "works" do
|
190
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
191
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
192
|
+
|
193
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
194
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
195
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
196
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
197
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
describe "#sanitize_filename" do
|
202
|
+
let(:api_client) { BudgeaClient::ApiClient.new }
|
203
|
+
|
204
|
+
it "works" do
|
205
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
206
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
207
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
208
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
209
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
210
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
211
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
212
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
213
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|