hoodoo 3.4.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbc50d3fd1b87a58487f9a6a66cf49e73fe76f6bc41d391ae7c05b448a096240
4
- data.tar.gz: 7d3d152f93a6608d000658bfe825db320595986a27aee6c752b2b4456e85f771
3
+ metadata.gz: d0ce9b935640b43e6a2e65428781f655eec52f069b2d9c604cd0c0e52089779b
4
+ data.tar.gz: 137774dd9fc3a5b5580e9864b0955ff36c17d29d3c5c45dccb5063e501a02f05
5
5
  SHA512:
6
- metadata.gz: 7f9e701b77432904595dd51d472e1ef993fd88bcae49dcd317134d05750a6f8731f3d7e441824e1bf0cfa4faa58a97c3a9c697362d2dd5cf71f42b7e8ff9b03e
7
- data.tar.gz: 3e208273d9c442ad5c38c1a1de446229787a53d58fe3c5bd5c490c75c60f50afdbbf7d6d829880002afa01f48cee65cc97891c9bd39a67f7fea1a913f3283512
6
+ metadata.gz: ddb038ba26da7edd8ed67fd4f9e88ecb789ebe5f5d0985fed3c957ee059178ce6a09c0450e7fde9a8eaef12922211f0d4e70e56f660855051e5c6247d21f114a
7
+ data.tar.gz: fbb195e8d45f3e68cb562f31283b7ed2c5bc44a66564bf5273bb3871af4d572d4ad7ef454f010a32807f0e4671a9fcc0af3ea269dccd3f84e2025d59c00878f8
@@ -19,6 +19,7 @@ module Hoodoo
19
19
  internationalised
20
20
 
21
21
  text :authentication_secret
22
+ text :authentication_secret_parameter_store_path, :required => false
22
23
  text :name
23
24
  uuid :fingerprint, :required => false
24
25
 
@@ -12,11 +12,11 @@ module Hoodoo
12
12
  # The Hoodoo gem version. If this changes, be sure to re-run
13
13
  # <tt>bundle install</tt> or <tt>bundle update</tt>.
14
14
  #
15
- VERSION = '3.4.0'
15
+ VERSION = '3.5.0'
16
16
 
17
17
  # The Hoodoo gem date. If this changes, be sure to re-run
18
18
  # <tt>bundle install</tt> or <tt>bundle update</tt>.
19
19
  #
20
- DATE = '2023-08-16'
20
+ DATE = '2024-01-25'
21
21
 
22
22
  end
@@ -6,9 +6,10 @@ describe Hoodoo::Data::Resources::Caller do
6
6
 
7
7
  expect(schema.is_internationalised?()).to eq(true)
8
8
 
9
- expect(schema.properties.count).to eq(6)
9
+ expect(schema.properties.count).to eq(7)
10
10
 
11
11
  expect(schema.properties['authentication_secret']).to be_a(Hoodoo::Presenters::Text)
12
+ expect(schema.properties['authentication_secret_parameter_store_path']).to be_a(Hoodoo::Presenters::Text)
12
13
  expect(schema.properties['name']).to be_a(Hoodoo::Presenters::Text)
13
14
  expect(schema.properties['fingerprint']).to be_a(Hoodoo::Presenters::UUID)
14
15
  expect(schema.properties['identity']).to be_a(Hoodoo::Presenters::Hash)
@@ -63,6 +64,7 @@ describe Hoodoo::Data::Resources::Caller do
63
64
  json = described_class.render(
64
65
  {
65
66
  "name" => "Test Caller",
67
+ "authentication_secret_parameter_store_path" => "/path/to/secret",
66
68
  "identity" => {
67
69
  "array" => [],
68
70
  "integer" => 1,
@@ -99,6 +101,7 @@ describe Hoodoo::Data::Resources::Caller do
99
101
  'created_at' => Hoodoo::Utilities.standard_datetime( created_at ),
100
102
  'kind' => 'Caller',
101
103
  "name" => "Test Caller",
104
+ "authentication_secret_parameter_store_path" => "/path/to/secret",
102
105
  "identity" => {
103
106
  "array" => [],
104
107
  "integer" => 1,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoodoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Loyalty New Zealand
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-16 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dalli
@@ -615,126 +615,126 @@ signing_key:
615
615
  specification_version: 4
616
616
  summary: Opinionated APIs
617
617
  test_files:
618
- - spec/utilities/uuid_spec.rb
619
618
  - spec/utilities/utilities_spec.rb
620
- - spec/new_relic/agent/method_tracer.rb
621
- - spec/new_relic/agent/logger.rb
622
- - spec/new_relic/agent/transaction.rb
623
- - spec/active/active_record/secure_spec.rb
624
- - spec/active/active_record/manually_dated_spec.rb
625
- - spec/active/active_record/uuid_spec.rb
626
- - spec/active/active_record/security_helper_spec.rb
627
- - spec/active/active_record/finder_spec.rb
628
- - spec/active/active_record/dated_spec.rb
629
- - spec/active/active_record/writer_spec.rb
630
- - spec/active/active_record/support_spec.rb
631
- - spec/active/active_record/creator_spec.rb
632
- - spec/active/active_record/search_helper_spec.rb
633
- - spec/active/active_record/base_spec.rb
634
- - spec/active/active_record/error_mapping_shared_context.rb
635
- - spec/active/active_record/error_mapping_spec.rb
636
- - spec/active/active_record/translated_spec.rb
637
- - spec/transient_store/transient_store/redis_spec.rb
638
- - spec/transient_store/transient_store/memcached_spec.rb
639
- - spec/transient_store/transient_store/mocks/redis_spec.rb
640
- - spec/transient_store/transient_store/mocks/dalli_client_spec.rb
641
- - spec/transient_store/transient_store/base_spec.rb
642
- - spec/transient_store/transient_store/memcached_redis_mirror_spec.rb
643
- - spec/transient_store/transient_store_spec.rb
619
+ - spec/utilities/uuid_spec.rb
620
+ - spec/errors/errors_spec.rb
621
+ - spec/errors/error_descriptions_spec.rb
622
+ - spec/services/middleware/middleware_assumed_identity_spec.rb
623
+ - spec/services/middleware/string_inquirer_spec.rb
624
+ - spec/services/middleware/middleware_public_spec.rb
625
+ - spec/services/middleware/middleware_exotic_communication_spec.rb
626
+ - spec/services/middleware/middleware_cors_spec.rb
627
+ - spec/services/middleware/middleware_multi_remote_spec.rb
628
+ - spec/services/middleware/middleware_dated_at_spec.rb
629
+ - spec/services/middleware/endpoints/inter_resource_local_spec.rb
630
+ - spec/services/middleware/endpoints/inter_resource_remote_spec.rb
631
+ - spec/services/middleware/middleware_create_update_spec.rb
632
+ - spec/services/middleware/amqp_log_writer_spec.rb
633
+ - spec/services/middleware/middleware_spec.rb
634
+ - spec/services/middleware/middleware_permissions_spec.rb
635
+ - spec/services/middleware/middleware_logging_spec.rb
636
+ - spec/services/middleware/exception_reporting/exception_reporting_spec.rb
637
+ - spec/services/middleware/exception_reporting/reporters/airbrake_reporter_spec.rb
638
+ - spec/services/middleware/exception_reporting/base_reporter_spec.rb
639
+ - spec/services/middleware/middleware_multi_local_spec.rb
640
+ - spec/services/services/response_spec.rb
641
+ - spec/services/services/implementation_spec.rb
642
+ - spec/services/services/permissions_spec.rb
643
+ - spec/services/services/request_spec.rb
644
+ - spec/services/services/session_spec.rb
645
+ - spec/services/services/interface_spec.rb
646
+ - spec/services/services/context_spec.rb
647
+ - spec/services/services/application_spec.rb
648
+ - spec/services/discovery/discovery_spec.rb
649
+ - spec/services/discovery/discoverers/by_drb/by_drb_spec.rb
650
+ - spec/services/discovery/discoverers/by_drb/drb_server_spec.rb
651
+ - spec/services/discovery/discoverers/by_flux_spec.rb
652
+ - spec/services/discovery/discoverers/by_convention_spec.rb
653
+ - spec/services/discovery/results/for_remote_spec.rb
654
+ - spec/services/discovery/results/for_http_spec.rb
655
+ - spec/services/discovery/results/for_local_spec.rb
656
+ - spec/services/discovery/results/for_amqp_spec.rb
657
+ - spec/communicators/pool_spec.rb
658
+ - spec/communicators/slow_spec.rb
659
+ - spec/communicators/fast_spec.rb
660
+ - spec/client/augmented_hash_spec.rb
661
+ - spec/client/augmented_array_spec.rb
662
+ - spec/client/paginated_enumeration_spec.rb
663
+ - spec/client/endpoint/endpoint_spec.rb
664
+ - spec/client/endpoint/endpoints/http_based_spec.rb
665
+ - spec/client/endpoint/endpoints/http_spec.rb
666
+ - spec/client/endpoint/endpoints/not_found_spec.rb
667
+ - spec/client/endpoint/endpoints/auto_session_spec.rb
668
+ - spec/client/endpoint/endpoints/amqp_spec.rb
669
+ - spec/client/headers_spec.rb
670
+ - spec/client/augmented_base_spec.rb
671
+ - spec/client/client_spec.rb
644
672
  - spec/integration/service_actions_spec.rb
673
+ - spec/shared_examples/middleware_amqp.rb
674
+ - spec/ddtrace.rb
645
675
  - spec/spec_helper.rb
646
- - spec/presenters/types/uuid_spec.rb
676
+ - spec/presenters/embedding_spec.rb
677
+ - spec/presenters/common_resource_fields_spec.rb
678
+ - spec/presenters/types/hash_spec.rb
679
+ - spec/presenters/types/array_spec.rb
647
680
  - spec/presenters/types/date_time_spec.rb
648
681
  - spec/presenters/types/tags_spec.rb
682
+ - spec/presenters/types/enum_spec.rb
683
+ - spec/presenters/types/string_spec.rb
684
+ - spec/presenters/types/float_spec.rb
685
+ - spec/presenters/types/object_spec.rb
686
+ - spec/presenters/types/field_spec.rb
687
+ - spec/presenters/types/uuid_spec.rb
688
+ - spec/presenters/types/boolean_spec.rb
649
689
  - spec/presenters/types/integer_spec.rb
650
- - spec/presenters/types/array_spec.rb
651
690
  - spec/presenters/types/decimal_spec.rb
652
- - spec/presenters/types/float_spec.rb
653
691
  - spec/presenters/types/date_spec.rb
654
- - spec/presenters/types/enum_spec.rb
655
- - spec/presenters/types/object_spec.rb
656
- - spec/presenters/types/string_spec.rb
657
692
  - spec/presenters/types/text_spec.rb
658
- - spec/presenters/types/hash_spec.rb
659
- - spec/presenters/types/boolean_spec.rb
660
- - spec/presenters/types/field_spec.rb
661
- - spec/presenters/common_resource_fields_spec.rb
662
- - spec/presenters/base_dsl_spec.rb
663
- - spec/presenters/base_spec.rb
664
- - spec/presenters/embedding_spec.rb
665
693
  - spec/presenters/walk_spec.rb
694
+ - spec/presenters/base_spec.rb
695
+ - spec/presenters/base_dsl_spec.rb
696
+ - spec/logger/logger_spec.rb
666
697
  - spec/logger/slow_writer_spec.rb
667
- - spec/logger/fast_writer_spec.rb
668
- - spec/logger/writers/file_writer_spec.rb
669
698
  - spec/logger/writers/log_entries_dot_com_writer_spec.rb
670
699
  - spec/logger/writers/stream_writer_spec.rb
671
- - spec/logger/logger_spec.rb
700
+ - spec/logger/writers/file_writer_spec.rb
701
+ - spec/logger/fast_writer_spec.rb
702
+ - spec/monkey/monkey_spec.rb
703
+ - spec/monkey/patch/datadog_traced_amqp_spec.rb
704
+ - spec/monkey/patch/newrelic_traced_amqp_spec.rb
705
+ - spec/monkey/patch/newrelic_middleware_analytics_spec.rb
706
+ - spec/newrelic_rpm.rb
707
+ - spec/active/active_record/writer_spec.rb
708
+ - spec/active/active_record/security_helper_spec.rb
709
+ - spec/active/active_record/manually_dated_spec.rb
710
+ - spec/active/active_record/error_mapping_spec.rb
711
+ - spec/active/active_record/translated_spec.rb
712
+ - spec/active/active_record/error_mapping_shared_context.rb
713
+ - spec/active/active_record/search_helper_spec.rb
714
+ - spec/active/active_record/uuid_spec.rb
715
+ - spec/active/active_record/creator_spec.rb
716
+ - spec/active/active_record/support_spec.rb
717
+ - spec/active/active_record/finder_spec.rb
718
+ - spec/active/active_record/secure_spec.rb
719
+ - spec/active/active_record/base_spec.rb
720
+ - spec/active/active_record/dated_spec.rb
672
721
  - spec/files/regenerate.rb
673
- - spec/data/types/error_primitive_spec.rb
674
- - spec/data/types/permissions_spec.rb
722
+ - spec/transient_store/transient_store/mocks/redis_spec.rb
723
+ - spec/transient_store/transient_store/mocks/dalli_client_spec.rb
724
+ - spec/transient_store/transient_store/redis_spec.rb
725
+ - spec/transient_store/transient_store/memcached_redis_mirror_spec.rb
726
+ - spec/transient_store/transient_store/base_spec.rb
727
+ - spec/transient_store/transient_store/memcached_spec.rb
728
+ - spec/transient_store/transient_store_spec.rb
729
+ - spec/data/types/permissions_full_spec.rb
675
730
  - spec/data/types/permissions_resources_spec.rb
731
+ - spec/data/types/permissions_spec.rb
676
732
  - spec/data/types/permissions_defaults_spec.rb
677
- - spec/data/types/permissions_full_spec.rb
678
- - spec/data/resources/errors_spec.rb
733
+ - spec/data/types/error_primitive_spec.rb
679
734
  - spec/data/resources/log_spec.rb
680
- - spec/data/resources/session_spec.rb
735
+ - spec/data/resources/errors_spec.rb
681
736
  - spec/data/resources/caller_spec.rb
682
- - spec/newrelic_rpm.rb
683
- - spec/communicators/slow_spec.rb
684
- - spec/communicators/pool_spec.rb
685
- - spec/communicators/fast_spec.rb
686
- - spec/client/augmented_hash_spec.rb
687
- - spec/client/client_spec.rb
688
- - spec/client/augmented_base_spec.rb
689
- - spec/client/endpoint/endpoint_spec.rb
690
- - spec/client/endpoint/endpoints/auto_session_spec.rb
691
- - spec/client/endpoint/endpoints/http_spec.rb
692
- - spec/client/endpoint/endpoints/amqp_spec.rb
693
- - spec/client/endpoint/endpoints/not_found_spec.rb
694
- - spec/client/endpoint/endpoints/http_based_spec.rb
695
- - spec/client/augmented_array_spec.rb
696
- - spec/client/headers_spec.rb
697
- - spec/client/paginated_enumeration_spec.rb
698
- - spec/monkey/patch/newrelic_traced_amqp_spec.rb
699
- - spec/monkey/patch/datadog_traced_amqp_spec.rb
700
- - spec/monkey/patch/newrelic_middleware_analytics_spec.rb
701
- - spec/monkey/monkey_spec.rb
702
- - spec/ddtrace.rb
703
- - spec/services/middleware/middleware_exotic_communication_spec.rb
704
- - spec/services/middleware/endpoints/inter_resource_remote_spec.rb
705
- - spec/services/middleware/endpoints/inter_resource_local_spec.rb
706
- - spec/services/middleware/exception_reporting/base_reporter_spec.rb
707
- - spec/services/middleware/exception_reporting/exception_reporting_spec.rb
708
- - spec/services/middleware/exception_reporting/reporters/airbrake_reporter_spec.rb
709
- - spec/services/middleware/middleware_create_update_spec.rb
710
- - spec/services/middleware/middleware_public_spec.rb
711
- - spec/services/middleware/middleware_assumed_identity_spec.rb
712
- - spec/services/middleware/middleware_cors_spec.rb
713
- - spec/services/middleware/middleware_logging_spec.rb
714
- - spec/services/middleware/string_inquirer_spec.rb
715
- - spec/services/middleware/middleware_dated_at_spec.rb
716
- - spec/services/middleware/middleware_multi_remote_spec.rb
717
- - spec/services/middleware/middleware_multi_local_spec.rb
718
- - spec/services/middleware/middleware_permissions_spec.rb
719
- - spec/services/middleware/middleware_spec.rb
720
- - spec/services/middleware/amqp_log_writer_spec.rb
721
- - spec/services/discovery/results/for_http_spec.rb
722
- - spec/services/discovery/results/for_amqp_spec.rb
723
- - spec/services/discovery/results/for_local_spec.rb
724
- - spec/services/discovery/results/for_remote_spec.rb
725
- - spec/services/discovery/discoverers/by_flux_spec.rb
726
- - spec/services/discovery/discoverers/by_drb/by_drb_spec.rb
727
- - spec/services/discovery/discoverers/by_drb/drb_server_spec.rb
728
- - spec/services/discovery/discoverers/by_convention_spec.rb
729
- - spec/services/discovery/discovery_spec.rb
730
- - spec/services/services/implementation_spec.rb
731
- - spec/services/services/interface_spec.rb
732
- - spec/services/services/request_spec.rb
733
- - spec/services/services/application_spec.rb
734
- - spec/services/services/response_spec.rb
735
- - spec/services/services/permissions_spec.rb
736
- - spec/services/services/context_spec.rb
737
- - spec/services/services/session_spec.rb
738
- - spec/shared_examples/middleware_amqp.rb
739
- - spec/errors/error_descriptions_spec.rb
740
- - spec/errors/errors_spec.rb
737
+ - spec/data/resources/session_spec.rb
738
+ - spec/new_relic/agent/logger.rb
739
+ - spec/new_relic/agent/transaction.rb
740
+ - spec/new_relic/agent/method_tracer.rb