[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] storm/org/nongnu/storm/http/client testSimpleHT...
From: |
Hermanni Hyytiälä |
Subject: |
[Gzz-commits] storm/org/nongnu/storm/http/client testSimpleHT... |
Date: |
Mon, 28 Apr 2003 09:44:08 -0400 |
CVSROOT: /cvsroot/storm
Module name: storm
Changes by: Hermanni Hyytiälä <address@hidden> 03/04/28 09:44:08
Modified files:
org/nongnu/storm/http/client: testSimpleHTTPClient.test
Log message:
Create broken requests
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/storm/storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test.diff?tr1=1.6&tr2=1.7&r1=text&r2=text
Patches:
Index: storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test
diff -u storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test:1.6
storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test:1.7
--- storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test:1.6 Mon Apr
28 09:21:39 2003
+++ storm/org/nongnu/storm/http/client/testSimpleHTTPClient.test Mon Apr
28 09:44:08 2003
@@ -34,8 +34,6 @@
host3 = "kanetti1390.kanetti.com"
port = 5555
-request = "rewrite/urn:x-storm:1.0:text/plain,\
-dvi7nrvd36pnprsmg4x55klqnqzvfgkc.f2aagxw4lfv7smbyzpm5tpf6ypajrdvh6ndqfky"
protocol1 = "HTTP/1.1"
protocol2 = "HTTP/1.0"
@@ -64,25 +62,21 @@
print "HTTP proxy thread started..."
- #Create HTTP connection to localhost
- httpconn = org.nongnu.storm.http.client.HTTPConnection(host0, port)
-
-
- # Perform GET request using the ID of created block
- print "Perform GET request(s)..."
- req = httpconn.newRequest("GET", "rewrite/" + blockid, protocol2,
java.lang.Boolean.FALSE)
- # Add more requests here...
+ # Perform GET requests using the ID of created block
+ print "Perform GET request(s)..."
+ getlist = ["///rewrite/" + blockid, blockid, "foo" + blockid,
"rewrite/" + blockid]
-
- resp = httpconn.send(req)
- print resp.status, resp.reason
-
- # Conditions here...
- assert resp.status == 200
+ for reqs in getlist:
+ #Create HTTP connection to localhost
+ httpconn = org.nongnu.storm.http.client.HTTPConnection(host0,
port)
+ req = httpconn.newRequest("GET", reqs, protocol2,
java.lang.Boolean.FALSE)
+ resp = httpconn.send(req)
+ print resp.status, resp.reason
+ # Conditions here...
+ # assert resp.status == 200
httpconn.close
- if serverthread.isAlive() == 1:
- print serverthread.isAlive()
- serverthread.interrupt()
- print "HTTP proxy thread stopped..."
+ if serverthread.isAlive() == 1:
+ serverthread.interrupt()
+ print "HTTP proxy thread stopped..."