soar-registry-identity 4.0.3 → 5.0.0

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.
@@ -0,0 +1,86 @@
1
+ module Soar
2
+ module Registry
3
+ module Identity
4
+ module Test
5
+ class Orchestrator
6
+
7
+ def initialize(provider)
8
+ @provider = provider
9
+ end
10
+
11
+ ####### givens ######
12
+
13
+ def given_roles
14
+ @provider.given_roles
15
+ end
16
+
17
+ def given_identity_directory
18
+ @provider.given_identity_directory
19
+ end
20
+
21
+ def given_roles_directory
22
+ @provider.given_roles_directory
23
+ end
24
+
25
+ def given_identity
26
+ @provider.given_identity
27
+ end
28
+
29
+ def given_identity_registry
30
+ @provider.given_identity_registry
31
+ end
32
+
33
+ def given_role_with_attributes
34
+ @provider.given_role_with_attributes
35
+ end
36
+
37
+ ####### whens ######
38
+
39
+ def get_roles
40
+ @provider.get_roles
41
+ end
42
+
43
+ def get_role_attributes
44
+ @provider.get_role_attributes
45
+ end
46
+
47
+ def get_identity_attributes
48
+ @provider.get_identity_attributes
49
+ end
50
+
51
+ ####### thens ######
52
+ #
53
+ def role_with_empty_attributes?
54
+ @provider.role_with_empty_attributes?
55
+ end
56
+
57
+ def identity_attributes?
58
+ @provider.identity_attributes?
59
+ end
60
+
61
+ def role_with_attributes?
62
+ @provider.role_with_attributes?
63
+ end
64
+
65
+ def roles?
66
+ @provider.roles?
67
+ end
68
+
69
+ def no_roles?
70
+ @provider.no_roles?
71
+ end
72
+
73
+ def identity_error?
74
+ @provider.identity_error?
75
+ end
76
+
77
+ def nil?
78
+ @provider.nil?
79
+ end
80
+
81
+ end
82
+
83
+ end
84
+ end
85
+ end
86
+ end
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: 4.0.3
4
+ version: 5.0.0
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-02-24 00:00:00.000000000 Z
11
+ date: 2017-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: soar_idm
@@ -30,20 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 5.0.1
33
+ version: '6.0'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
38
  - - "~>"
42
39
  - !ruby/object:Gem::Version
43
- version: '5.0'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 5.0.1
40
+ version: '6.0'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: object_selector
49
43
  requirement: !ruby/object:Gem::Requirement
@@ -74,9 +68,11 @@ files:
74
68
  - lib/soar/registry/identity/provider/customer/uuid.rb
75
69
  - lib/soar/registry/identity/provider/staff/email.rb
76
70
  - lib/soar/registry/identity/provider/staff/uuid.rb
77
- - lib/soar/registry/identity/test/fixtures/customer/identities.json
78
- - lib/soar/registry/identity/test/fixtures/roles.json
79
- - lib/soar/registry/identity/test/fixtures/staff/identities.json
71
+ - lib/soar/registry/identity/test/fixtures/client_table.sql
72
+ - lib/soar/registry/identity/test/fixtures/roles_table.json
73
+ - lib/soar/registry/identity/test/orchestration_provider/customer/uuid.rb
74
+ - lib/soar/registry/identity/test/orchestration_provider/staff/uuid.rb
75
+ - lib/soar/registry/identity/test/orchestrator.rb
80
76
  homepage: https://gitlab.host-h.net/registries/identity
81
77
  licenses:
82
78
  - MIT
@@ -97,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
93
  version: '0'
98
94
  requirements: []
99
95
  rubyforge_project:
100
- rubygems_version: 2.5.1
96
+ rubygems_version: 2.5.2
101
97
  signing_key:
102
98
  specification_version: 4
103
99
  summary: Identity Registry
@@ -1,18 +0,0 @@
1
- [
2
- {
3
- "ID": 1,
4
- "Notifyemail_Invoice": "identity1@example.com",
5
- "Client_Number": "C123456789"
6
- },
7
- {
8
- "ID": 2,
9
- "Notifyemail_Invoice": "identity2@example.com",
10
- "Client_Number": "C135791113"
11
- },
12
- {
13
- "ID": 3,
14
- "Notifyemail_Invoice": "identity3@example.com",
15
- "Client_Number": "C2468101214"
16
- }
17
- ]
18
-
@@ -1,52 +0,0 @@
1
- [
2
- {
3
- "identity_uuid": "62936e70-1815-439b-bf89-8492855a7e6b",
4
- "role": "staff",
5
- "attributes": {
6
- "department": "technical"
7
- }
8
- },
9
- {
10
- "identity_uuid": "62936e70-1815-439b-bf89-8492855a7e6b",
11
- "role": "configuration_publisher",
12
- "attributes": {
13
- "configuration_identifiers": ["*"]
14
- }
15
- },
16
- {
17
- "identity_uuid": "43353f18-8afe-11e6-ae22-56b6b6499611",
18
- "role": "staff",
19
- "attributes": {
20
- "department": "technical"
21
- }
22
- },
23
- {
24
- "identity_uuid": "43353f18-8afe-11e6-ae22-56b6b6499611",
25
- "role": "configuration_consumer",
26
- "attributes": {
27
- "configuration_identifiers": ["*"]
28
- }
29
- },
30
- {
31
- "identity_uuid": "820d5660-2204-4f7d-8c04-746313439b81",
32
- "role": "staff",
33
- "attributes": {
34
- "department": "technical"
35
- }
36
- },
37
- {
38
- "identity_uuid": "820d5660-2204-4f7d-8c04-746313439b81",
39
- "role": "configuration_publisher",
40
- "attributes": {
41
- "configuration_identifiers": ["*"]
42
- }
43
- },
44
- {
45
- "identity_uuid": "820d5660-2204-4f7d-8c04-746313439b81",
46
- "role": "configuration_consumer",
47
- "attributes": {
48
- "configuration_identifiers": ["*"]
49
- }
50
- }
51
- ]
52
-
@@ -1,22 +0,0 @@
1
- [
2
- {
3
- "entryuuid": "62936e70-1815-439b-bf89-8492855a7e6b",
4
- "mail": "test+publisher@hetzner.co.za",
5
- "group": "Technical"
6
- },
7
- {
8
- "entryuuid": "43353f18-8afe-11e6-ae22-56b6b6499611",
9
- "mail": "test+consumer@hetzner.co.za",
10
- "group": "Support"
11
- },
12
- {
13
- "entryuuid": "820d5660-2204-4f7d-8c04-746313439b81",
14
- "mail": "admin@hetzner.co.za",
15
- "group": "Technical"
16
- },
17
- {
18
- "entryuuid": "1ff472a6-8df3-4f13-82c3-89fde26db3cf",
19
- "mail": "none@example.com"
20
- }
21
- ]
22
-