automation-test 1.16 → 1.17

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -29
  3. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/api_helper.rb +2 -2
  4. data/lib/apimatic_calculator_test/client.rb +35 -0
  5. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/configuration.rb +4 -3
  6. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/controllers/base_controller.rb +2 -2
  7. data/lib/apimatic_calculator_test/controllers/simple_calculator_controller.rb +53 -0
  8. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/exceptions/api_exception.rb +2 -2
  9. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/http/faraday_client.rb +2 -2
  10. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/http/http_call_back.rb +2 -2
  11. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/http/http_client.rb +2 -2
  12. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/http/http_method_enum.rb +2 -2
  13. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/http/http_request.rb +2 -2
  14. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/http/http_response.rb +2 -2
  15. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/models/base_model.rb +2 -2
  16. data/lib/apimatic_calculator_test/models/operation_type_enum.rb +23 -0
  17. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/utilities/date_time_helper.rb +2 -2
  18. data/lib/{coin_gecko_apiv3 → apimatic_calculator_test}/utilities/file_wrapper.rb +2 -2
  19. data/lib/apimatic_calculator_test.rb +39 -0
  20. metadata +20 -85
  21. data/lib/coin_gecko_apiv3/client.rb +0 -125
  22. data/lib/coin_gecko_apiv3/controllers/asset_platforms_controller.rb +0 -29
  23. data/lib/coin_gecko_apiv3/controllers/categories_controller.rb +0 -52
  24. data/lib/coin_gecko_apiv3/controllers/coins_controller.rb +0 -389
  25. data/lib/coin_gecko_apiv3/controllers/companies_beta_controller.rb +0 -35
  26. data/lib/coin_gecko_apiv3/controllers/contract_controller.rb +0 -119
  27. data/lib/coin_gecko_apiv3/controllers/derivatives_controller.rb +0 -112
  28. data/lib/coin_gecko_apiv3/controllers/events_controller.rb +0 -89
  29. data/lib/coin_gecko_apiv3/controllers/exchange_rates_controller.rb +0 -29
  30. data/lib/coin_gecko_apiv3/controllers/exchanges_controller.rb +0 -192
  31. data/lib/coin_gecko_apiv3/controllers/finance_controller.rb +0 -71
  32. data/lib/coin_gecko_apiv3/controllers/global_controller.rb +0 -29
  33. data/lib/coin_gecko_apiv3/controllers/indexes_controller.rb +0 -79
  34. data/lib/coin_gecko_apiv3/controllers/ping_controller.rb +0 -29
  35. data/lib/coin_gecko_apiv3/controllers/simple_controller.rb +0 -126
  36. data/lib/coin_gecko_apiv3/controllers/status_updates_controller.rb +0 -48
  37. data/lib/coin_gecko_apiv3/controllers/trending_controller.rb +0 -30
  38. data/lib/coin_gecko_apiv3.rb +0 -52
  39. data/test/controllers/controller_test_base.rb +0 -21
  40. data/test/controllers/test_asset_platforms_controller.rb +0 -25
  41. data/test/controllers/test_categories_controller.rb +0 -37
  42. data/test/controllers/test_coins_controller.rb +0 -27
  43. data/test/controllers/test_derivatives_controller.rb +0 -51
  44. data/test/controllers/test_events_controller.rb +0 -55
  45. data/test/controllers/test_exchange_rates_controller.rb +0 -26
  46. data/test/controllers/test_exchanges_controller.rb +0 -38
  47. data/test/controllers/test_finance_controller.rb +0 -43
  48. data/test/controllers/test_global_controller.rb +0 -26
  49. data/test/controllers/test_indexes_controller.rb +0 -38
  50. data/test/controllers/test_ping_controller.rb +0 -26
  51. data/test/controllers/test_simple_controller.rb +0 -25
  52. data/test/controllers/test_status_updates_controller.rb +0 -31
  53. data/test/controllers/test_trending_controller.rb +0 -25
  54. data/test/http_response_catcher.rb +0 -19
  55. data/test/test_helper.rb +0 -94
@@ -1,79 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module CoinGeckoApiv3
7
- # IndexesController
8
- class IndexesController < BaseController
9
- def initialize(config, http_call_back: nil)
10
- super(config, http_call_back: http_call_back)
11
- end
12
-
13
- # List all market indexes
14
- # @param [Integer] per_page Optional parameter: Total results per page
15
- # @param [Integer] page Optional parameter: Page through results
16
- # @return [void] response from the API call
17
- def listallmarketindexes(per_page: nil,
18
- page: nil)
19
- # Prepare query url.
20
- _query_builder = config.get_base_uri
21
- _query_builder << '/indexes'
22
- _query_builder = APIHelper.append_url_with_query_parameters(
23
- _query_builder,
24
- 'per_page' => per_page,
25
- 'page' => page
26
- )
27
- _query_url = APIHelper.clean_url _query_builder
28
-
29
- # Prepare and execute HttpRequest.
30
- _request = config.http_client.get(
31
- _query_url
32
- )
33
- _response = execute_request(_request)
34
- validate_response(_response)
35
- end
36
-
37
- # get market index by market id and index id
38
- # @param [String] market_id Required parameter: pass the market id (can be
39
- # obtained from /exchanges/list)
40
- # @param [String] id Required parameter: pass the index id (can be obtained
41
- # from /indexes/list)
42
- # @return [void] response from the API call
43
- def getmarketindexbymarketidandindexid(market_id,
44
- id)
45
- # Prepare query url.
46
- _query_builder = config.get_base_uri
47
- _query_builder << '/indexes/{market_id}/{id}'
48
- _query_builder = APIHelper.append_url_with_template_parameters(
49
- _query_builder,
50
- 'market_id' => { 'value' => market_id, 'encode' => true },
51
- 'id' => { 'value' => id, 'encode' => true }
52
- )
53
- _query_url = APIHelper.clean_url _query_builder
54
-
55
- # Prepare and execute HttpRequest.
56
- _request = config.http_client.get(
57
- _query_url
58
- )
59
- _response = execute_request(_request)
60
- validate_response(_response)
61
- end
62
-
63
- # list market indexes id and name
64
- # @return [void] response from the API call
65
- def listmarketindexesidandname
66
- # Prepare query url.
67
- _query_builder = config.get_base_uri
68
- _query_builder << '/indexes/list'
69
- _query_url = APIHelper.clean_url _query_builder
70
-
71
- # Prepare and execute HttpRequest.
72
- _request = config.http_client.get(
73
- _query_url
74
- )
75
- _response = execute_request(_request)
76
- validate_response(_response)
77
- end
78
- end
79
- end
@@ -1,29 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module CoinGeckoApiv3
7
- # PingController
8
- class PingController < BaseController
9
- def initialize(config, http_call_back: nil)
10
- super(config, http_call_back: http_call_back)
11
- end
12
-
13
- # Check API server status
14
- # @return [void] response from the API call
15
- def check_ap_iserverstatus
16
- # Prepare query url.
17
- _query_builder = config.get_base_uri
18
- _query_builder << '/ping'
19
- _query_url = APIHelper.clean_url _query_builder
20
-
21
- # Prepare and execute HttpRequest.
22
- _request = config.http_client.get(
23
- _query_url
24
- )
25
- _response = execute_request(_request)
26
- validate_response(_response)
27
- end
28
- end
29
- end
@@ -1,126 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module CoinGeckoApiv3
7
- # SimpleController
8
- class SimpleController < BaseController
9
- def initialize(config, http_call_back: nil)
10
- super(config, http_call_back: http_call_back)
11
- end
12
-
13
- # Get the current price of any cryptocurrencies in any other supported
14
- # currencies that you need.
15
- # @param [String] ids Required parameter: id of coins, comma-separated if
16
- # querying more than 1 coin *refers to <b>`coins/list`</b>
17
- # @param [String] vs_currencies Required parameter: vs_currency of coins,
18
- # comma-separated if querying more than 1 vs_currency *refers to
19
- # <b>`simple/supported_vs_currencies`</b>
20
- # @param [String] include_market_cap Optional parameter: <b>true/false</b>
21
- # to include market_cap, <b>default: false</b>
22
- # @param [String] include_24hr_vol Optional parameter: <b>true/false</b> to
23
- # include 24hr_vol, <b>default: false</b>
24
- # @param [String] include_24hr_change Optional parameter: <b>true/false</b>
25
- # to include 24hr_change, <b>default: false</b>
26
- # @param [String] include_last_updated_at Optional parameter:
27
- # <b>true/false</b> to include last_updated_at of price, <b>default:
28
- # false</b>
29
- # @return [void] response from the API call
30
- def getthecurrentpriceofanycryptocurrenciesinanyothersupportedcurrenciesthatyouneed(ids,
31
- vs_currencies,
32
- include_market_cap: nil,
33
- include_24hr_vol: nil,
34
- include_24hr_change: nil,
35
- include_last_updated_at: nil)
36
- # Prepare query url.
37
- _query_builder = config.get_base_uri
38
- _query_builder << '/simple/price'
39
- _query_builder = APIHelper.append_url_with_query_parameters(
40
- _query_builder,
41
- 'ids' => ids,
42
- 'vs_currencies' => vs_currencies,
43
- 'include_market_cap' => include_market_cap,
44
- 'include_24hr_vol' => include_24hr_vol,
45
- 'include_24hr_change' => include_24hr_change,
46
- 'include_last_updated_at' => include_last_updated_at
47
- )
48
- _query_url = APIHelper.clean_url _query_builder
49
-
50
- # Prepare and execute HttpRequest.
51
- _request = config.http_client.get(
52
- _query_url
53
- )
54
- _response = execute_request(_request)
55
- validate_response(_response)
56
- end
57
-
58
- # Get current price of tokens (using contract addresses) for a given
59
- # platform in any other currency that you need.
60
- # @param [String] id Required parameter: The id of the platform issuing
61
- # tokens (See asset_platforms endpoint for list of options)
62
- # @param [String] contract_addresses Required parameter: The contract
63
- # address of tokens, comma separated
64
- # @param [String] vs_currencies Required parameter: vs_currency of coins,
65
- # comma-separated if querying more than 1 vs_currency *refers to
66
- # <b>`simple/supported_vs_currencies`</b>
67
- # @param [String] include_market_cap Optional parameter: <b>true/false</b>
68
- # to include market_cap, <b>default: false</b>
69
- # @param [String] include_24hr_vol Optional parameter: <b>true/false</b> to
70
- # include 24hr_vol, <b>default: false</b>
71
- # @param [String] include_24hr_change Optional parameter: <b>true/false</b>
72
- # to include 24hr_change, <b>default: false</b>
73
- # @param [String] include_last_updated_at Optional parameter:
74
- # <b>true/false</b> to include last_updated_at of price, <b>default:
75
- # false</b>
76
- # @return [void] response from the API call
77
- def getcurrentpriceoftokens_usingcontractaddresses_foragivenplatforminanyothercurrencythatyouneed(id,
78
- contract_addresses,
79
- vs_currencies,
80
- include_market_cap: nil,
81
- include_24hr_vol: nil,
82
- include_24hr_change: nil,
83
- include_last_updated_at: nil)
84
- # Prepare query url.
85
- _query_builder = config.get_base_uri
86
- _query_builder << '/simple/token_price/{id}'
87
- _query_builder = APIHelper.append_url_with_template_parameters(
88
- _query_builder,
89
- 'id' => { 'value' => id, 'encode' => true }
90
- )
91
- _query_builder = APIHelper.append_url_with_query_parameters(
92
- _query_builder,
93
- 'contract_addresses' => contract_addresses,
94
- 'vs_currencies' => vs_currencies,
95
- 'include_market_cap' => include_market_cap,
96
- 'include_24hr_vol' => include_24hr_vol,
97
- 'include_24hr_change' => include_24hr_change,
98
- 'include_last_updated_at' => include_last_updated_at
99
- )
100
- _query_url = APIHelper.clean_url _query_builder
101
-
102
- # Prepare and execute HttpRequest.
103
- _request = config.http_client.get(
104
- _query_url
105
- )
106
- _response = execute_request(_request)
107
- validate_response(_response)
108
- end
109
-
110
- # Get list of supported_vs_currencies.
111
- # @return [void] response from the API call
112
- def getlistofsupported_vs_currencies
113
- # Prepare query url.
114
- _query_builder = config.get_base_uri
115
- _query_builder << '/simple/supported_vs_currencies'
116
- _query_url = APIHelper.clean_url _query_builder
117
-
118
- # Prepare and execute HttpRequest.
119
- _request = config.http_client.get(
120
- _query_url
121
- )
122
- _response = execute_request(_request)
123
- validate_response(_response)
124
- end
125
- end
126
- end
@@ -1,48 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module CoinGeckoApiv3
7
- # StatusUpdatesController
8
- class StatusUpdatesController < BaseController
9
- def initialize(config, http_call_back: nil)
10
- super(config, http_call_back: http_call_back)
11
- end
12
-
13
- # List all status_updates with data (description, category, created_at,
14
- # user, user_title and pin)
15
- # @param [String] category Optional parameter: Filtered by category (eg.
16
- # general, milestone, partnership, exchange_listing, software_release,
17
- # fund_movement, new_listings, event)
18
- # @param [String] project_type Optional parameter: Filtered by Project Type
19
- # (eg. coin, market). If left empty returns both status from coins and
20
- # markets.
21
- # @param [Integer] per_page Optional parameter: Total results per page
22
- # @param [Integer] page Optional parameter: Page through results
23
- # @return [void] response from the API call
24
- def listallstatus_updateswithdata_description_category_created_at_user_user_titleandpin(category: nil,
25
- project_type: nil,
26
- per_page: nil,
27
- page: nil)
28
- # Prepare query url.
29
- _query_builder = config.get_base_uri
30
- _query_builder << '/status_updates'
31
- _query_builder = APIHelper.append_url_with_query_parameters(
32
- _query_builder,
33
- 'category' => category,
34
- 'project_type' => project_type,
35
- 'per_page' => per_page,
36
- 'page' => page
37
- )
38
- _query_url = APIHelper.clean_url _query_builder
39
-
40
- # Prepare and execute HttpRequest.
41
- _request = config.http_client.get(
42
- _query_url
43
- )
44
- _response = execute_request(_request)
45
- validate_response(_response)
46
- end
47
- end
48
- end
@@ -1,30 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module CoinGeckoApiv3
7
- # TrendingController
8
- class TrendingController < BaseController
9
- def initialize(config, http_call_back: nil)
10
- super(config, http_call_back: http_call_back)
11
- end
12
-
13
- # Top-7 trending coins on CoinGecko as searched by users in the last 24
14
- # hours (Ordered by most popular first)
15
- # @return [void] response from the API call
16
- def gettrendingsearchcoins_top_7_on_coin_geckointhelast24hours
17
- # Prepare query url.
18
- _query_builder = config.get_base_uri
19
- _query_builder << '/search/trending'
20
- _query_url = APIHelper.clean_url _query_builder
21
-
22
- # Prepare and execute HttpRequest.
23
- _request = config.http_client.get(
24
- _query_url
25
- )
26
- _response = execute_request(_request)
27
- validate_response(_response)
28
- end
29
- end
30
- end
@@ -1,52 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require 'date'
7
- require 'json'
8
- require 'faraday'
9
- require 'certifi'
10
- require 'logging'
11
-
12
- require_relative 'coin_gecko_apiv3/api_helper'
13
- require_relative 'coin_gecko_apiv3/client'
14
-
15
- # Utilities
16
- require_relative 'coin_gecko_apiv3/utilities/file_wrapper'
17
- require_relative 'coin_gecko_apiv3/utilities/date_time_helper'
18
-
19
- # Http
20
- require_relative 'coin_gecko_apiv3/http/http_call_back'
21
- require_relative 'coin_gecko_apiv3/http/http_client'
22
- require_relative 'coin_gecko_apiv3/http/faraday_client'
23
- require_relative 'coin_gecko_apiv3/http/http_method_enum'
24
- require_relative 'coin_gecko_apiv3/http/http_request'
25
- require_relative 'coin_gecko_apiv3/http/http_response'
26
-
27
- # Models
28
- require_relative 'coin_gecko_apiv3/models/base_model'
29
-
30
- # Exceptions
31
- require_relative 'coin_gecko_apiv3/exceptions/api_exception'
32
-
33
- require_relative 'coin_gecko_apiv3/configuration'
34
-
35
- # Controllers
36
- require_relative 'coin_gecko_apiv3/controllers/base_controller'
37
- require_relative 'coin_gecko_apiv3/controllers/ping_controller'
38
- require_relative 'coin_gecko_apiv3/controllers/simple_controller'
39
- require_relative 'coin_gecko_apiv3/controllers/coins_controller'
40
- require_relative 'coin_gecko_apiv3/controllers/contract_controller'
41
- require_relative 'coin_gecko_apiv3/controllers/asset_platforms_controller'
42
- require_relative 'coin_gecko_apiv3/controllers/categories_controller'
43
- require_relative 'coin_gecko_apiv3/controllers/exchanges_controller'
44
- require_relative 'coin_gecko_apiv3/controllers/finance_controller'
45
- require_relative 'coin_gecko_apiv3/controllers/indexes_controller'
46
- require_relative 'coin_gecko_apiv3/controllers/derivatives_controller'
47
- require_relative 'coin_gecko_apiv3/controllers/status_updates_controller'
48
- require_relative 'coin_gecko_apiv3/controllers/events_controller'
49
- require_relative 'coin_gecko_apiv3/controllers/exchange_rates_controller'
50
- require_relative 'coin_gecko_apiv3/controllers/trending_controller'
51
- require_relative 'coin_gecko_apiv3/controllers/global_controller'
52
- require_relative 'coin_gecko_apiv3/controllers/companies_beta_controller'
@@ -1,21 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require 'json'
7
- require 'minitest/autorun'
8
- require 'minitest/hell'
9
- require 'minitest/pride'
10
- require 'minitest/proveit'
11
- require 'coin_gecko_apiv3'
12
- require_relative '../test_helper'
13
- require_relative '../http_response_catcher'
14
-
15
- class ControllerTestBase < Minitest::Test
16
- parallelize_me!
17
- include CoinGeckoApiv3
18
-
19
- # Create configuration and set any test parameters
20
- CONFIG = Configuration.new
21
- end
@@ -1,25 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require_relative 'controller_test_base'
7
-
8
- class AssetPlatformsControllerTests < ControllerTestBase
9
- # Called only once for the class before any test has executed
10
- def setup
11
- @response_catcher = HttpResponseCatcher.new
12
- @controller = AssetPlatformsController.new CONFIG, http_call_back: @response_catcher
13
- end
14
-
15
- # List all asset platforms
16
- def test_listallassetplatforms_blockchainnetworks()
17
-
18
- # Perform the API call through the SDK function
19
- @controller.listallassetplatforms_blockchainnetworks()
20
-
21
- # Test response code
22
- assert_equal(200, @response_catcher.response.status_code)
23
- end
24
-
25
- end
@@ -1,37 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require_relative 'controller_test_base'
7
-
8
- class CategoriesControllerTests < ControllerTestBase
9
- # Called only once for the class before any test has executed
10
- def setup
11
- @response_catcher = HttpResponseCatcher.new
12
- @controller = CategoriesController.new CONFIG, http_call_back: @response_catcher
13
- end
14
-
15
- # List all categories
16
- def test_listallcategories()
17
-
18
- # Perform the API call through the SDK function
19
- @controller.listallcategories()
20
-
21
- # Test response code
22
- assert_equal(200, @response_catcher.response.status_code)
23
- end
24
-
25
- # List all categories with market data
26
- def test_listallcategorieswithmarketdata()
27
- # Parameters for the API call
28
- order = nil
29
-
30
- # Perform the API call through the SDK function
31
- @controller.listallcategorieswithmarketdata(order: order)
32
-
33
- # Test response code
34
- assert_equal(200, @response_catcher.response.status_code)
35
- end
36
-
37
- end
@@ -1,27 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require_relative 'controller_test_base'
7
-
8
- class CoinsControllerTests < ControllerTestBase
9
- # Called only once for the class before any test has executed
10
- def setup
11
- @response_catcher = HttpResponseCatcher.new
12
- @controller = CoinsController.new CONFIG, http_call_back: @response_catcher
13
- end
14
-
15
- # Use this to obtain all the coins' id in order to make API calls
16
- def test_listallsupportedcoinsid_nameandsymbol_nopaginationrequired()
17
- # Parameters for the API call
18
- include_platform = nil
19
-
20
- # Perform the API call through the SDK function
21
- @controller.listallsupportedcoinsid_nameandsymbol_nopaginationrequired(include_platform: include_platform)
22
-
23
- # Test response code
24
- assert_equal(200, @response_catcher.response.status_code)
25
- end
26
-
27
- end
@@ -1,51 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require_relative 'controller_test_base'
7
-
8
- class DerivativesControllerTests < ControllerTestBase
9
- # Called only once for the class before any test has executed
10
- def setup
11
- @response_catcher = HttpResponseCatcher.new
12
- @controller = DerivativesController.new CONFIG, http_call_back: @response_catcher
13
- end
14
-
15
- # List all derivative tickers
16
- def test_listallderivativetickers()
17
- # Parameters for the API call
18
- include_tickers = nil
19
-
20
- # Perform the API call through the SDK function
21
- @controller.listallderivativetickers(include_tickers: include_tickers)
22
-
23
- # Test response code
24
- assert_equal(200, @response_catcher.response.status_code)
25
- end
26
-
27
- # List all derivative exchanges
28
- def test_listallderivativeexchanges()
29
- # Parameters for the API call
30
- order = nil
31
- per_page = nil
32
- page = nil
33
-
34
- # Perform the API call through the SDK function
35
- @controller.listallderivativeexchanges(order: order, per_page: per_page, page: page)
36
-
37
- # Test response code
38
- assert_equal(200, @response_catcher.response.status_code)
39
- end
40
-
41
- # List all derivative exchanges name and identifier
42
- def test_listallderivativeexchangesnameandidentifier()
43
-
44
- # Perform the API call through the SDK function
45
- @controller.listallderivativeexchangesnameandidentifier()
46
-
47
- # Test response code
48
- assert_equal(200, @response_catcher.response.status_code)
49
- end
50
-
51
- end
@@ -1,55 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require_relative 'controller_test_base'
7
-
8
- class EventsControllerTests < ControllerTestBase
9
- # Called only once for the class before any test has executed
10
- def setup
11
- @response_catcher = HttpResponseCatcher.new
12
- @controller = EventsController.new CONFIG, http_call_back: @response_catcher
13
- end
14
-
15
- # Get events, paginated by 100
16
- #
17
- def test_getevents_paginatedby100()
18
- # Parameters for the API call
19
- country_code = nil
20
- type = nil
21
- page = nil
22
- upcoming_events_only = nil
23
- from_date = nil
24
- to_date = nil
25
-
26
- # Perform the API call through the SDK function
27
- @controller.getevents_paginatedby100(country_code: country_code, type: type, page: page, upcoming_events_only: upcoming_events_only, from_date: from_date, to_date: to_date)
28
-
29
- # Test response code
30
- assert_equal(200, @response_catcher.response.status_code)
31
- end
32
-
33
- # Get list of event countries
34
- #
35
- def test_getlistofeventcountries()
36
-
37
- # Perform the API call through the SDK function
38
- @controller.getlistofeventcountries()
39
-
40
- # Test response code
41
- assert_equal(200, @response_catcher.response.status_code)
42
- end
43
-
44
- # Get list of event types
45
- #
46
- def test_getlistofeventstypes()
47
-
48
- # Perform the API call through the SDK function
49
- @controller.getlistofeventstypes()
50
-
51
- # Test response code
52
- assert_equal(200, @response_catcher.response.status_code)
53
- end
54
-
55
- end
@@ -1,26 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require_relative 'controller_test_base'
7
-
8
- class ExchangeRatesControllerTests < ControllerTestBase
9
- # Called only once for the class before any test has executed
10
- def setup
11
- @response_catcher = HttpResponseCatcher.new
12
- @controller = ExchangeRatesController.new CONFIG, http_call_back: @response_catcher
13
- end
14
-
15
- # Get BTC-to-Currency exchange rates
16
- #
17
- def test_get_btc_to_currencyexchangerates()
18
-
19
- # Perform the API call through the SDK function
20
- @controller.get_btc_to_currencyexchangerates()
21
-
22
- # Test response code
23
- assert_equal(200, @response_catcher.response.status_code)
24
- end
25
-
26
- end
@@ -1,38 +0,0 @@
1
- # coin_gecko_apiv3
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require_relative 'controller_test_base'
7
-
8
- class ExchangesControllerTests < ControllerTestBase
9
- # Called only once for the class before any test has executed
10
- def setup
11
- @response_catcher = HttpResponseCatcher.new
12
- @controller = ExchangesController.new CONFIG, http_call_back: @response_catcher
13
- end
14
-
15
- # List all exchanges
16
- def test_listallexchanges()
17
- # Parameters for the API call
18
- per_page = nil
19
- page = nil
20
-
21
- # Perform the API call through the SDK function
22
- @controller.listallexchanges(per_page: per_page, page: page)
23
-
24
- # Test response code
25
- assert_equal(200, @response_catcher.response.status_code)
26
- end
27
-
28
- # Use this to obtain all the markets' id in order to make API calls
29
- def test_listallsupportedmarketsidandname_nopaginationrequired()
30
-
31
- # Perform the API call through the SDK function
32
- @controller.listallsupportedmarketsidandname_nopaginationrequired()
33
-
34
- # Test response code
35
- assert_equal(200, @response_catcher.response.status_code)
36
- end
37
-
38
- end