soar-registry-identity 6.0.0 → 6.0.1

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
  SHA1:
3
- metadata.gz: 76cb81c870c7512a071ef0d9aecb4e0ad9bbac2b
4
- data.tar.gz: c4614569d7cc44d86ef6896bb383d88b511c072c
3
+ metadata.gz: 6d74255d5ef004f45a6ff993c3e091fe0ce25642
4
+ data.tar.gz: 070ab8ac8d2dc8ac7661b4c4d362e3761b2a559e
5
5
  SHA512:
6
- metadata.gz: '02285d3db306fb50b1e030927eff663ff27c3ab082cae04f268a50353e60029d1b384a9e09159384e8ff464b9fcec50cd30a2d1e3240359d184d2f59aea3c220'
7
- data.tar.gz: aaf2a6134a659f5e71edb578ef150bb6601288cd6c35578e3be94635d575d5e8c14fe6e629bbcc95775fdb751b187bc6c1262d715e13778e3977ae40e19a4a7c
6
+ metadata.gz: ee3aca71e277683eff3f11aaddaabbbe084f23abcf8dbc891562a75053638a2048a27fab4364b4adf730518b4e4d049b368be8f23cd37e6353629706253abe3d
7
+ data.tar.gz: e966b1a027bedfeb919cf51e88d85e7495aec640e6d1d1fac3f1ff3f53a26f5e52fa5249c7b1e95088cd44828e0a74929b932a544d61c5ac2e569fd7418e1d79
@@ -0,0 +1,33 @@
1
+ @identity_attributes
2
+ Feature:
3
+ As a service
4
+ In order to probe an identity
5
+ I want to request attributes
6
+
7
+ Scenario: Identity and roles
8
+ Given an identity directory
9
+ And the identity registry contains an identity
10
+ And a roles directory
11
+ And the roles directory contains roles
12
+ And an identity registry
13
+ When I request the attributes of an identity
14
+ Then the attributes of the identity are returned
15
+
16
+ @future
17
+ Scenario: No roles
18
+ Given an identity directory
19
+ And the identity registry contains an identity
20
+ And a roles directory
21
+ And an identity registry
22
+ When I request the attributes of an identity
23
+ Then the attributes of the identity are returned
24
+
25
+ Scenario: No identity or roles
26
+ Given an identity directory
27
+ And a roles directory
28
+ And an identity registry
29
+ When I request the attributes of an identity
30
+ Then an identity error is thrown
31
+
32
+
33
+
@@ -0,0 +1,35 @@
1
+ @role_attributes
2
+ Feature:
3
+ As a service
4
+ In order to authorize an identity
5
+ I want to request attributes for a role
6
+
7
+ Scenario: Role with attributes
8
+ Given an identity directory
9
+ And the identity registry contains an identity
10
+ And a roles directory
11
+ And the roles directory contains a role with attributes
12
+ And an identity registry
13
+ When I request the attributes of a role
14
+ Then a role with attributes is returned
15
+
16
+ Scenario: Just a role
17
+ Given an identity directory
18
+ And the identity registry contains an identity
19
+ And a roles directory
20
+ And the roles directory contains roles
21
+ And an identity registry
22
+ When I request the attributes of a role
23
+ Then a role with empty attributes is returned
24
+
25
+ Scenario: No roles
26
+ Given an identity directory
27
+ And the identity registry contains an identity
28
+ And a roles directory
29
+ And an identity registry
30
+ When I request the attributes of a role
31
+ Then nil is returned
32
+
33
+
34
+
35
+
@@ -0,0 +1,32 @@
1
+ @roles
2
+ Feature:
3
+ As a service
4
+ In order to authorize an identity
5
+ I want to request a list of roles
6
+
7
+ Scenario: Identity and roles
8
+ Given an identity directory
9
+ And the identity registry contains an identity
10
+ And a roles directory
11
+ And the roles directory contains roles
12
+ And an identity registry
13
+ When I request a list of roles
14
+ Then a list of roles is returned
15
+
16
+ Scenario: No roles
17
+ Given an identity directory
18
+ And a roles directory
19
+ And the identity registry contains an identity
20
+ And an identity registry
21
+ When I request a list of roles
22
+ Then an empty list is returned
23
+
24
+ Scenario: No identity or roles
25
+ Given an identity directory
26
+ And a roles directory
27
+ And an identity registry
28
+ When I request a list of roles
29
+ Then an empty list is returned
30
+
31
+
32
+
@@ -0,0 +1,7 @@
1
+ When(/^I request the attributes of an identity$/) do
2
+ @orchestrator.get_identity_attributes
3
+ end
4
+
5
+ Then(/^the attributes of the identity are returned$/) do
6
+ expect(@orchestrator.identity_attributes?).to eq(true)
7
+ end
@@ -0,0 +1,20 @@
1
+ Given(/^the roles directory contains a role with attributes$/) do
2
+ @orchestrator.given_role_with_attributes
3
+ end
4
+
5
+ When(/^I request the attributes of a role$/) do
6
+ @orchestrator.get_role_attributes
7
+ end
8
+
9
+ Then(/^nil is returned$/) do
10
+ expect(@orchestrator.nil?).to eq(true)
11
+ end
12
+
13
+ Then(/^a role with attributes is returned$/) do
14
+ expect(@orchestrator.role_with_attributes?).to eq(true)
15
+ end
16
+
17
+ Then(/^a role with empty attributes is returned$/) do
18
+ expect(@orchestrator.role_with_empty_attributes?).to eq(true)
19
+ end
20
+
@@ -0,0 +1,36 @@
1
+ Given(/^the roles directory contains roles$/) do
2
+ @orchestrator.given_roles
3
+ end
4
+
5
+ Given(/^an identity directory$/) do
6
+ @orchestrator.given_identity_directory
7
+ end
8
+
9
+ Given(/^a roles directory$/) do
10
+ @orchestrator.given_roles_directory
11
+ end
12
+
13
+ Given(/^an identity registry$/) do
14
+ @orchestrator.given_identity_registry
15
+ end
16
+
17
+ Given(/^the identity registry contains an identity$/) do
18
+ @orchestrator.given_identity
19
+ end
20
+
21
+ When(/^I request a list of roles$/) do
22
+ @orchestrator.get_roles
23
+ end
24
+
25
+ Then(/^an empty list is returned$/) do
26
+ expect(@orchestrator.no_roles?).to eq(true)
27
+ end
28
+
29
+ Then(/^an identity error is thrown$/) do
30
+ expect(@orchestrator.identity_error?).to eq(true)
31
+ end
32
+
33
+ Then(/^a list of roles is returned$/) do
34
+ expect(@orchestrator.roles?).to eq(true)
35
+ end
36
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soar-registry-identity
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Mulder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-28 00:00:00.000000000 Z
11
+ date: 2017-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: soar_idm
@@ -59,6 +59,12 @@ extensions: []
59
59
  extra_rdoc_files: []
60
60
  files:
61
61
  - README.md
62
+ - features/get_identity_attributes_by_uuid.feature
63
+ - features/get_role_attributes_by_uuid.feature
64
+ - features/get_roles_by_uuid.feature
65
+ - features/step_definitions/get_identity_attributes_by_uuid.rb
66
+ - features/step_definitions/get_role_attributes_by_uuid.rb
67
+ - features/step_definitions/get_roles_by_uuid_steps.rb
62
68
  - lib/soar/registry/identity.rb
63
69
  - lib/soar/registry/identity/error.rb
64
70
  - lib/soar/registry/identity/factory.rb