mxhero-api 0.1.21 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/directories.rb +4 -0
- data/mxhero-api.gemspec +2 -2
- data/test/test_directories.rb +16 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTU2MzgzYTcyNzVhODRmOTM5MGU5MDZkN2Y0ZmVjM2JhYjg0YjA2Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjQ5MDE2MmNlYjE2YjJhOGY3ZDQ4NmMxMjhjMjk5MWRhYzMzNjY4MQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzJlZGNjZTUzZmZkNGViY2VkY2Q2ZjA5ZjkwYzE5MGRhY2VlMDE4Yzk2OWM1
|
10
|
+
N2RlMmJhMjA1YzI1MzczMzQwMzY3OWJiZjdjYWFjMDllNDE1YzJmMjVhN2Vl
|
11
|
+
ZjFlNDkzMDEwZDc2ZDY2YmNhNmIzZDYyZDQzNGNhNThiN2E4OTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGY4NjVjOWUzYTI1ZDQ1OWExZDZiOWJiNzU3ZmQ4NmU1M2ZjOTkzN2Y5ZDY3
|
14
|
+
NzUzZTM0M2UzMjMxNjcwN2M4MjI0NTFjNjVlNjM3MTNiNmUyOGIyYzQyM2Mz
|
15
|
+
ZDgzNjllMzMwZGM2ZTI2NjJkNDVjNjk5ZjkwYzRhYTdiMWNmMzM=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.22
|
data/lib/directories.rb
CHANGED
data/mxhero-api.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: mxhero-api 0.1.
|
2
|
+
# stub: mxhero-api 0.1.22 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "mxhero-api"
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.22"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.authors = ["Maximiliano Dello Russo", "Juan Pablo Royo", "mxHero"]
|
data/test/test_directories.rb
CHANGED
@@ -92,5 +92,21 @@ class DirectoriesTest < MiniTest::Unit::TestCase
|
|
92
92
|
assert_equal expected, directory.next_update.to_s #23-09-2013 12:22
|
93
93
|
assert_equal expected, directory.last_update.to_s #23-09-2013 12:22
|
94
94
|
end
|
95
|
+
|
96
|
+
def test_update_properties
|
97
|
+
directory = MxHero::API::Directory.new domain: domain,
|
98
|
+
type: 'gapps', address: nil, port: nil, ssl: false,
|
99
|
+
user: 'test_user', password: 'password', filter: nil,
|
100
|
+
base: nil, next_update: 1379949740000, last_update: 1379949740000,
|
101
|
+
override: false, dn_authenticate: nil
|
102
|
+
changes = {
|
103
|
+
type: 'ldap', address: 'ldap.mxhero.com', port: 1234, ssl: true,
|
104
|
+
user: 'mxhero_user', password: 'xxx', filter: 'filter',
|
105
|
+
base: 'base', next_update: Date.new, last_update: nil,
|
106
|
+
override: true, dn_authenticate: 'dn_autheticate message'
|
107
|
+
}
|
108
|
+
directory.update_properties changes
|
109
|
+
changes.keys.each { |prop| assert_equal changes[prop], directory.send(prop) }
|
110
|
+
end
|
95
111
|
end
|
96
112
|
|