@@ -113,7 +113,7 @@ def generate_client
113113 stub_request ( :get , uri_template ) . to_return { |request | { body : INFO_CONTENT , status : 200 } }
114114
115115 client = generate_client
116- response = client . get_number_of_units
116+ response = client . get_aggregation_info
117117
118118 expect ( response ) . to be_a ( Net ::HTTPOK )
119119 result = JSON . parse ( response . body )
@@ -130,15 +130,15 @@ def generate_client
130130 client = generate_client
131131
132132 # first page
133- response = client . get_unit_names
133+ response = client . get_aggregation_list
134134
135135 expect ( response ) . to be_a ( Net ::HTTPOK )
136136 result = JSON . parse ( response . body )
137137 expect ( result [ 'customAggregationUnits' ] ) . to eq [ "test1" , "test2" , "test3" ]
138138 expect ( result [ 'next' ] ) . to eq "jxEWCEEP"
139139
140140 # second page
141- response = client . get_unit_names ( start : result [ 'next' ] )
141+ response = client . get_aggregation_list ( start : result [ 'next' ] )
142142
143143 expect ( response ) . to be_a ( Net ::HTTPOK )
144144 result = JSON . parse ( response . body )
@@ -158,13 +158,13 @@ def generate_client
158158 client = generate_client
159159
160160 # without any other conditions
161- response = client . get_unit_names ( limit : 2 )
161+ response = client . get_aggregation_list ( limit : 2 )
162162 result = JSON . parse ( response . body )
163163 expect ( response ) . to be_a ( Net ::HTTPOK )
164164 expect ( result [ 'customAggregationUnits' ] ) . to eq [ "test7" , "test8" ]
165165
166166 # with other conditions
167- response = client . get_unit_names ( start : 'foo' , limit : 2 )
167+ response = client . get_aggregation_list ( start : 'foo' , limit : 2 )
168168 result = JSON . parse ( response . body )
169169 expect ( response ) . to be_a ( Net ::HTTPOK )
170170 expect ( result [ 'customAggregationUnits' ] ) . to eq [ "test7" , "test8" ]
0 commit comments