finapps 6.12.0 → 6.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/finapps/rest/client.rb +1 -1
- data/lib/finapps/rest/query/users.rb +10 -0
- data/lib/finapps/version.rb +1 -1
- data/lib/finapps.rb +1 -0
- data/spec/rest/query/users_spec.rb +23 -0
- data/spec/support/fake_api.rb +2 -0
- data/spec/support/fixtures/query/users.json +21 -0
- data/spec/support/routes/query_users.rb +14 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d750e401b5d936b5b67144236c47a9969d1007e2777232171b4831b4bebe2b08
|
4
|
+
data.tar.gz: 3120e93e8acbd4a3b40e946788ab93e86ce064e9530c378d6cf49a91c8826461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 800464206ab8c445fa2fe12c7bd2c2a12d74a7fbc8cf384a0fc0573807deb3d4c70115f4eb0f6f930f66cb3c0f777251510903859885c6087cc46cae7501dd59
|
7
|
+
data.tar.gz: de98785d634e7846cc32dc1fa36f5fdca31443cb379b8cc09d15c780e7a53a8dab9e84ebc0cd7a8458a8afac43cc0309d8c89e3d275d1401efd61298d100e1eb
|
data/lib/finapps/rest/client.rb
CHANGED
data/lib/finapps/version.rb
CHANGED
data/lib/finapps.rb
CHANGED
@@ -59,6 +59,7 @@ require 'finapps/rest/verix/verix_documents'
|
|
59
59
|
|
60
60
|
require 'finapps/rest/query/base'
|
61
61
|
require 'finapps/rest/query/screenings'
|
62
|
+
require 'finapps/rest/query/users'
|
62
63
|
|
63
64
|
require 'finapps/utils/query_builder'
|
64
65
|
require 'finapps/version' unless defined?(FinApps::VERSION)
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helpers/client'
|
4
|
+
require 'spec_helpers/api_request'
|
5
|
+
|
6
|
+
RSpec.describe FinApps::REST::Query::Users do
|
7
|
+
include SpecHelpers::Client
|
8
|
+
|
9
|
+
subject(:create) { described_class.new(client).create('string') }
|
10
|
+
|
11
|
+
describe '#create' do
|
12
|
+
context 'when valid tenant token is provided' do
|
13
|
+
it_behaves_like 'an API request'
|
14
|
+
it_behaves_like 'a successful request'
|
15
|
+
it 'sends the params in the body of the request' do
|
16
|
+
create
|
17
|
+
url = "#{versioned_api_path}/query/users"
|
18
|
+
|
19
|
+
expect(WebMock).to have_requested(:post, url).with(body: 'string')
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/spec/support/fake_api.rb
CHANGED
@@ -9,6 +9,7 @@ require_relative 'routes/edm_transmissions'
|
|
9
9
|
require_relative 'routes/locations'
|
10
10
|
require_relative 'routes/screening_metadatas'
|
11
11
|
require_relative 'routes/query_screenings'
|
12
|
+
require_relative 'routes/query_users'
|
12
13
|
require_relative 'routes/states'
|
13
14
|
|
14
15
|
module Fake
|
@@ -30,6 +31,7 @@ module Fake
|
|
30
31
|
include DocumentsUploadsRoutes
|
31
32
|
include LocationsRoutes
|
32
33
|
include QueryScreeningRoutes
|
34
|
+
include QueryUserRoutes
|
33
35
|
include ScreeningsRoutes
|
34
36
|
include ScreeningMetadatasRoutes
|
35
37
|
include StateRoutes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"auth0_id": "string",
|
4
|
+
"date_created": "2022-06-20T21:02:25Z",
|
5
|
+
"date_modified": "2022-06-20T21:02:25Z",
|
6
|
+
"email": "string",
|
7
|
+
"external_id": "string",
|
8
|
+
"first_name": "string",
|
9
|
+
"language": "string",
|
10
|
+
"last_name": "string",
|
11
|
+
"locations": [],
|
12
|
+
"memo": "string",
|
13
|
+
"metadata": {},
|
14
|
+
"phone": [],
|
15
|
+
"postal_code": "string",
|
16
|
+
"public_id": "string",
|
17
|
+
"role": 0,
|
18
|
+
"tenant_id": "string",
|
19
|
+
"type": "string"
|
20
|
+
}
|
21
|
+
]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: finapps_core
|
@@ -298,6 +298,7 @@ files:
|
|
298
298
|
- lib/finapps/rest/products.rb
|
299
299
|
- lib/finapps/rest/query/base.rb
|
300
300
|
- lib/finapps/rest/query/screenings.rb
|
301
|
+
- lib/finapps/rest/query/users.rb
|
301
302
|
- lib/finapps/rest/screening_metadatas.rb
|
302
303
|
- lib/finapps/rest/screenings.rb
|
303
304
|
- lib/finapps/rest/sessions.rb
|
@@ -351,6 +352,7 @@ files:
|
|
351
352
|
- spec/rest/products_spec.rb
|
352
353
|
- spec/rest/query/base_spec.rb
|
353
354
|
- spec/rest/query/screenings_spec.rb
|
355
|
+
- spec/rest/query/users_spec.rb
|
354
356
|
- spec/rest/screening_metadatas_spec.rb
|
355
357
|
- spec/rest/screenings_spec.rb
|
356
358
|
- spec/rest/sessions_spec.rb
|
@@ -421,6 +423,7 @@ files:
|
|
421
423
|
- spec/support/fixtures/portfolios_consumers.json
|
422
424
|
- spec/support/fixtures/products.json
|
423
425
|
- spec/support/fixtures/query/screenings.json
|
426
|
+
- spec/support/fixtures/query/users.json
|
424
427
|
- spec/support/fixtures/resource.json
|
425
428
|
- spec/support/fixtures/resource_not_found.json
|
426
429
|
- spec/support/fixtures/resources.json
|
@@ -453,6 +456,7 @@ files:
|
|
453
456
|
- spec/support/routes/edm_transmissions.rb
|
454
457
|
- spec/support/routes/locations.rb
|
455
458
|
- spec/support/routes/query_screenings.rb
|
459
|
+
- spec/support/routes/query_users.rb
|
456
460
|
- spec/support/routes/screening_metadatas.rb
|
457
461
|
- spec/support/routes/states.rb
|
458
462
|
- spec/support/screenings_routes.rb
|