netid-tools 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/VERSION +1 -1
- data/netid-tools.gemspec +1 -1
- data/spec/netid_tools_spec.rb +4 -4
- metadata +2 -2
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.3
|
data/netid-tools.gemspec
CHANGED
data/spec/netid_tools_spec.rb
CHANGED
@@ -163,7 +163,7 @@ describe Netid do
|
|
163
163
|
end
|
164
164
|
|
165
165
|
context "#check_quota" do
|
166
|
-
default_quota_return_objects =
|
166
|
+
default_quota_return_objects = "/cg32/rw00/derp\n/hw00/w00/ferp"
|
167
167
|
it "returns an object of results on success" do
|
168
168
|
mock_system_response("\nuser uid 1 2 3\nheader a b c\nfilesystem usage quota limit files limit",default_quota_return_objects)
|
169
169
|
@netid.check_quota.should be_true
|
@@ -194,17 +194,17 @@ describe Netid do
|
|
194
194
|
end
|
195
195
|
it "will translate cluster shortnames into full path, if available" do
|
196
196
|
mock_system_response("\nuser uid 1 2 3\nheader a b c\n/cg32 usage quota limit files limit\n/hw00 usage quota limit grace files limit",
|
197
|
-
|
197
|
+
"/cg32/rw00/derp\n/hw00/w00/ferp")
|
198
198
|
@netid.check_quota.response.should eq [%w(/cg32/rw00/derp usage quota limit n/a files limit), %w(/hw00/w00/ferp usage quota limit grace files limit)]
|
199
199
|
end
|
200
200
|
it "will fall back to cluster shortnames if full path not found" do
|
201
201
|
mock_system_response("\nuser uid 1 2 3\nheader a b c\n/cg32 usage quota limit files limit\n/hw00 usage quota limit grace files limit",
|
202
|
-
|
202
|
+
"/cg31/rw00/derp\n/hwdoop/w00/ferp")
|
203
203
|
@netid.check_quota.response.should eq [%w(/cg32 usage quota limit n/a files limit), %w(/hw00 usage quota limit grace files limit)]
|
204
204
|
end
|
205
205
|
it "will handle mixed matching and unmatching clusters" do
|
206
206
|
mock_system_response("\nuser uid 1 2 3\nheader a b c\n/cg32 usage quota limit files limit\n/hw00 usage quota limit grace files limit",
|
207
|
-
|
207
|
+
"/cg31/rw00/derp\n/hw00/w00/ferp")
|
208
208
|
@netid.check_quota.response.should eq [%w(/cg32 usage quota limit n/a files limit), %w(/hw00/w00/ferp usage quota limit grace files limit)]
|
209
209
|
end
|
210
210
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netid-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -229,7 +229,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
segments:
|
231
231
|
- 0
|
232
|
-
hash:
|
232
|
+
hash: 2948455287693453037
|
233
233
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
234
234
|
none: false
|
235
235
|
requirements:
|