perf_check 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perf_check/test_case.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d34aaf3aa40817cfe8ac6f6e00357da051c6855
|
4
|
+
data.tar.gz: 158f5996b44d75d5999909952715068f1f5f3984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff7b9258d900af3f851ffa546b05851b49995861e31c3e866d82c47141ba21a54a694bf08d2da8bebd615fddcf601d710521d44aee1e10baa811c3b0d3ca98b0
|
7
|
+
data.tar.gz: edd58cb96e37aa5dfbb1dd3125d737f42a04f0db52d52e0880289131dd0e4a347ee68eb91fba25a3f9622e485880e0760a959080195b1015890551ba6f7f7dcf
|
data/lib/perf_check/test_case.rb
CHANGED
@@ -35,14 +35,13 @@ class PerfCheck
|
|
35
35
|
end
|
36
36
|
|
37
37
|
unless options.http_statuses.include? profile.response_code
|
38
|
-
File.open("
|
38
|
+
File.open("tmp/perf_check/failed_request.html", 'w') do |error_dump|
|
39
39
|
error_dump.write(profile.response_body)
|
40
40
|
end
|
41
41
|
error = sprintf("\t%2i:\tFAILED! (HTTP %d)", i, profile.response_code)
|
42
42
|
puts(error.red.bold)
|
43
43
|
puts("\t The server responded with a non-2xx status for this request.")
|
44
|
-
|
45
|
-
puts("/perf_check_failed_request.html".blue)
|
44
|
+
puts("\t The response has been written to tmp/perf_check/failed_request.html")
|
46
45
|
exit(1)
|
47
46
|
end
|
48
47
|
|