conjur-api 5.2.0 → 5.3.3

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 (53) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +10 -0
  3. data/.github/CODEOWNERS +10 -0
  4. data/.github/ISSUE_TEMPLATE/bug.md +42 -0
  5. data/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
  6. data/.github/PULL_REQUEST_TEMPLATE.md +21 -0
  7. data/.gitignore +1 -0
  8. data/.gitleaks.toml +219 -0
  9. data/.overcommit.yml +16 -0
  10. data/.rubocop.yml +3 -0
  11. data/.rubocop_settings.yml +86 -0
  12. data/.rubocop_todo.yml +709 -0
  13. data/CHANGELOG.md +348 -173
  14. data/CONTRIBUTING.md +141 -0
  15. data/Gemfile +1 -1
  16. data/Jenkinsfile +27 -29
  17. data/LICENSE +202 -0
  18. data/README.md +19 -126
  19. data/SECURITY.md +42 -0
  20. data/bin/parse-changelog.sh +12 -0
  21. data/ci/codeclimate.dockerfile +6 -0
  22. data/conjur-api.gemspec +4 -1
  23. data/docker-compose.yml +2 -0
  24. data/features/authenticators.feature +33 -0
  25. data/features/support/env.rb +2 -0
  26. data/features/update_password.feature +2 -2
  27. data/features_v4/support/env.rb +2 -0
  28. data/lib/conjur-api/version.rb +1 -1
  29. data/lib/conjur/acts_as_role.rb +15 -19
  30. data/lib/conjur/api.rb +2 -0
  31. data/lib/conjur/api/authenticators.rb +35 -0
  32. data/lib/conjur/api/host_factories.rb +20 -19
  33. data/lib/conjur/{cast.rb → api/ldap_sync.rb} +14 -17
  34. data/lib/conjur/api/resources.rb +15 -19
  35. data/lib/conjur/api/router/v5.rb +39 -7
  36. data/lib/conjur/base_object.rb +18 -20
  37. data/lib/conjur/build_object.rb +19 -21
  38. data/lib/conjur/cert_utils.rb +16 -0
  39. data/lib/conjur/configuration.rb +2 -8
  40. data/lib/conjur/has_attributes.rb +6 -3
  41. data/lib/conjur/id.rb +22 -19
  42. data/lib/conjur/role_grant.rb +13 -18
  43. data/spec/api/host_factories_spec.rb +34 -0
  44. data/spec/base_object_spec.rb +14 -0
  45. data/spec/cert_utils_spec.rb +92 -0
  46. data/spec/id_spec.rb +29 -0
  47. data/spec/ldap_sync_spec.rb +21 -0
  48. data/spec/spec_helper.rb +3 -0
  49. data/spec/uri_escape_spec.rb +14 -2
  50. data/test.sh +23 -1
  51. metadata +34 -12
  52. data/LICENSE.md +0 -195
  53. data/spec/cast_spec.rb +0 -21
@@ -1,21 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Conjur::Cast do
4
- let!(:object) {
5
- Object.new.tap do |obj|
6
- class << obj
7
- include Conjur::Cast
8
- end
9
- end
10
- }
11
-
12
- it 'String casts to itself' do
13
- expect(object.send(:cast_to_id, "foo")).to eq("foo")
14
- end
15
- it 'Id casts to to_s' do
16
- expect(object.send(:cast_to_id, "foo")).to eq("foo")
17
- end
18
- it 'Array casts via #join' do
19
- expect(object.send(:cast_to_id, [ "foo", "bar" ])).to eq("foo:bar")
20
- end
21
- end