hoodoo 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmIwZDk4ODJmMWM2MGQ0MjIwNWMwYTRjZTZlZjE3NDM5NWUxOTgzYg==
4
+ ODNjYzEzYzhiMTY1OTlkMjBkNDBlMmQ0MzNhYzAyZDJhNTFlMzBhNA==
5
5
  data.tar.gz: !binary |-
6
- MDA4ODMwYjc2Zjc1MTQ1Njk0YzMxNzRiMTFjMDRkYTdmMTI2MTA3YQ==
6
+ M2I5ZmQyMmU0YTljY2JkNmE1ZGU4YzhhMzdmMzcxMDVmMGZiNzY2Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzRlYzJiNDcyMjcxNzg1NWI0MGU2Y2IyMTFmZTI5Y2I4NTkxNGE1YmZkZWM2
10
- ZWM4MmZhNzZkNjNhZmY0ZDM5Mjg5Mjg4NDgzYTM0YzExNDAwNDk0MDkwODIz
11
- MThkNGYwMWM3Njg3ZGQwNmIyMjM3ZjcxMzg5MDU2YzZiMzk0NmE=
9
+ NGY3NjZhYzM5MDVkODhkMGQ5MzQ5NzY2MmQ1Y2I0YTRlYWI1NDI4MGU0YTc5
10
+ NjJkNDZmODE4NTRkODA3ZGY0N2M0OWY5NmZjNTFiNzk0YzQxODVmM2RlZDc4
11
+ YmViMDFkMWY0MzZlNThkMzk0MWY5ZDRjM2Q1MTRlMTI5YmY4NmE=
12
12
  data.tar.gz: !binary |-
13
- YWViZTVjNDRkZTM1ZTYzZmRlYjg5YmU2YThjYTNjN2RhYTAyZGNmNjQxZmY2
14
- NDQ3ZDM2MmVmMGRmMzg2YWI1MTk5NDJlNWVkZWM2ZmNlNDZmYmM5NjUwMjYw
15
- MzI1MzAxMDQ4MTMwY2JmN2NiNTI1ZTk0MmM1NTE2ZTU2NGU4ZTE=
13
+ NTQ4OWZjYjA5Y2ZhOWIzN2NkODM4NWUwZTc5MDdiOGE0OTVhNGMxNjY5NzIy
14
+ MTgwYWExNDk4M2NjNWQ4MDU3ZDJjNzk2Y2ZjYmQyNmU1Y2M2NzhhMDAxNDc3
15
+ YjkyNmIxYTZjZDNlZGNhMDRmNTc2MDQxNWI3NjFlMDg3ZTIzNzQ=
@@ -1174,8 +1174,6 @@ module Hoodoo; module Services
1174
1174
  data[ :payload ][ :body ] = body
1175
1175
  end
1176
1176
 
1177
- data[ :session ] = interaction.context.session.to_h unless interaction.context.session.nil?
1178
-
1179
1177
  @@logger.report(
1180
1178
  :info,
1181
1179
  :Middleware,
@@ -12,6 +12,6 @@ module Hoodoo
12
12
  # The Hoodoo gem version. If this changes, ensure that the date in
13
13
  # "hoodoo.gemspec" is correct and run "bundle install" (or "update").
14
14
  #
15
- VERSION = '1.6.0'
15
+ VERSION = '1.6.1'
16
16
 
17
17
  end
@@ -386,16 +386,20 @@ describe Hoodoo::Services::Middleware do
386
386
  get '/v1/test_log/hello', nil, { 'CONTENT_TYPE' => 'application/json; charset=utf-8' }
387
387
 
388
388
  inbound, result, outbound = get_data_for( :show )
389
- data = result.first[ :data ]
390
389
 
391
- expect( data[ :session ][ 'session_id' ] ).to be_present
392
- expect( data[ :session ][ 'caller_id' ] ).to be_present
393
- expect( data[ :session ][ 'caller_version' ] ).to be_present
394
- expect( data[ :session ][ 'caller_identity_name' ] ).to be_present
395
- expect( data[ :session ][ 'identity' ] ).to be_present
390
+ ( inbound + result + outbound ).each do | log_packet |
391
+ data = log_packet[ :data ]
392
+ next unless data.has_key?( :session )
396
393
 
397
- expect( data[ :session ][ 'permissions' ] ).to_not be_present
398
- expect( data[ :session ][ 'scoping' ] ).to_not be_present
394
+ expect( data[ :session ][ 'session_id' ] ).to be_present
395
+ expect( data[ :session ][ 'caller_id' ] ).to be_present
396
+ expect( data[ :session ][ 'caller_version' ] ).to be_present
397
+ expect( data[ :session ][ 'caller_identity_name' ] ).to be_present
398
+ expect( data[ :session ][ 'identity' ] ).to be_present
399
+
400
+ expect( data[ :session ][ 'permissions' ] ).to_not be_present
401
+ expect( data[ :session ][ 'scoping' ] ).to_not be_present
402
+ end
399
403
  end
400
404
  end
401
405
 
@@ -413,15 +417,19 @@ describe Hoodoo::Services::Middleware do
413
417
  get '/v1/test_log/hello', nil, { 'CONTENT_TYPE' => 'application/json; charset=utf-8' }
414
418
 
415
419
  inbound, result, outbound = get_data_for( :show )
416
- data = result.first[ :data ]
417
-
418
- expect( data[ :session ][ 'session_id' ] ).to be_present
419
- expect( data[ :session ][ 'caller_id' ] ).to be_present
420
- expect( data[ :session ][ 'caller_version' ] ).to be_present
421
- expect( data[ :session ][ 'caller_identity_name' ] ).to be_present
422
- expect( data[ :session ][ 'identity' ] ).to be_present
423
- expect( data[ :session ][ 'permissions' ] ).to be_present
424
- expect( data[ :session ][ 'scoping' ] ).to be_present
420
+
421
+ ( inbound + result + outbound ).each do | log_packet |
422
+ data = log_packet[ :data ]
423
+ next unless data.has_key?( :session )
424
+
425
+ expect( data[ :session ][ 'session_id' ] ).to be_present
426
+ expect( data[ :session ][ 'caller_id' ] ).to be_present
427
+ expect( data[ :session ][ 'caller_version' ] ).to be_present
428
+ expect( data[ :session ][ 'caller_identity_name' ] ).to be_present
429
+ expect( data[ :session ][ 'identity' ] ).to be_present
430
+ expect( data[ :session ][ 'permissions' ] ).to be_present
431
+ expect( data[ :session ][ 'scoping' ] ).to be_present
432
+ end
425
433
  end
426
434
  end
427
435
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoodoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loyalty New Zealand