socialcast 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/socialcast/command_line/ldap_connector.rb +95 -42
- data/lib/socialcast/command_line/provision_photo.rb +8 -8
- data/lib/socialcast/command_line/provision_user.rb +4 -4
- data/lib/socialcast/command_line/provisioner.rb +3 -11
- data/lib/socialcast/command_line/version.rb +1 -1
- data/spec/fixtures/ldap_with_multiple_connection_mappings.yml +2 -0
- data/spec/fixtures/ldap_with_profile_photo.yml +12 -0
- data/spec/fixtures/ldap_without_options.yml +34 -0
- data/spec/socialcast/command_line/cli_spec.rb +37 -41
- data/spec/socialcast/command_line/ldap_connector_spec.rb +354 -84
- data/spec/socialcast/command_line/provision_photo_spec.rb +147 -72
- data/spec/socialcast/command_line/provision_user_spec.rb +100 -35
- data/spec/spec_helper.rb +2 -2
- metadata +4 -2
data/spec/spec_helper.rb
CHANGED
@@ -32,8 +32,8 @@ RSpec.configure do |config|
|
|
32
32
|
return result, exit_status
|
33
33
|
end
|
34
34
|
|
35
|
-
def create_entry(entry_attributes)
|
36
|
-
Net::LDAP::Entry.new("dc=example,dc=com").tap do |e|
|
35
|
+
def create_entry(cn, entry_attributes)
|
36
|
+
Net::LDAP::Entry.new("cn=#{cn},dc=example,dc=com").tap do |e|
|
37
37
|
entry_attributes.each_pair do |attr, value|
|
38
38
|
e[attr] = value
|
39
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Sonnek
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-06-
|
13
|
+
date: 2014-06-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -246,6 +246,7 @@ files:
|
|
246
246
|
- spec/fixtures/ldap_with_roles_without_account_type.yml
|
247
247
|
- spec/fixtures/ldap_with_unique_identifier.yml
|
248
248
|
- spec/fixtures/ldap_without_account_type_or_roles.yml
|
249
|
+
- spec/fixtures/ldap_without_options.yml
|
249
250
|
- spec/fixtures/ldap_without_permission_mappings.yml
|
250
251
|
- spec/fixtures/test_images/test-gif-image.gif
|
251
252
|
- spec/fixtures/test_images/test-jpg-image.jpg
|
@@ -303,6 +304,7 @@ test_files:
|
|
303
304
|
- spec/fixtures/ldap_with_roles_without_account_type.yml
|
304
305
|
- spec/fixtures/ldap_with_unique_identifier.yml
|
305
306
|
- spec/fixtures/ldap_without_account_type_or_roles.yml
|
307
|
+
- spec/fixtures/ldap_without_options.yml
|
306
308
|
- spec/fixtures/ldap_without_permission_mappings.yml
|
307
309
|
- spec/fixtures/test_images/test-gif-image.gif
|
308
310
|
- spec/fixtures/test_images/test-jpg-image.jpg
|