cdnetworks-client 1.1.0 → 1.1.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50e8eeb665f8b3e41ffd0b0bedde921461054f21
|
4
|
+
data.tar.gz: 8f98b1be2e0c9c31ea851a7e6766c4640ea4c213
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc818105a242ade3027b56d928ba3ae2bd6bd2468aa291792358ca1235bf6861e49ada1cf273fbfca66aae26fcc37cb86a5feb8fd33fe458162bcca76b21c515
|
7
|
+
data.tar.gz: e06898e2bc26113e18f5a101bb8e237b787eaff77785bab245e47e68384f68a747daca1f759f8b1de99ab5e1d986caa8509668446341dc1f955ff10d75331a8b
|
@@ -445,6 +445,13 @@ describe CdnetworksClient do
|
|
445
445
|
it "returns bandwidth usage for a given time period" do
|
446
446
|
expect(@cdn_api.bandwidth_usage @fake_service, start_time, end_time).to eq expected_bandwidth
|
447
447
|
end
|
448
|
+
|
449
|
+
it "returns 0 for service with no traffic in given range (cdnetworks returns 404)" do
|
450
|
+
resp = JSON.pretty_unparse(trafficResponse: {returnCode: 404})
|
451
|
+
stub_request(:post, "#{@url}/api/rest/traffic/edge").to_return(body: resp)
|
452
|
+
|
453
|
+
expect(@cdn_api.bandwidth_usage @fake_service, start_time, end_time).to eq(0)
|
454
|
+
end
|
448
455
|
end
|
449
456
|
end
|
450
457
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cdnetworks-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nell Shamrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|