Skip to content

Commit

Permalink
Add httpstep test 'params' renderable
Browse files Browse the repository at this point in the history
  • Loading branch information
mx-mad committed May 13, 2014
1 parent 45e72e5 commit daeac8c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions master/buildbot/test/unit/test_steps_http.py
Expand Up @@ -21,6 +21,8 @@
from twisted.trial import unittest
from twisted.web.resource import Resource
from twisted.web.server import Site
from buildbot.process import properties

try:
import txrequests
assert txrequests
Expand Down Expand Up @@ -106,3 +108,13 @@ def test_header(self):
self.expectLogfile('log', "URL: %s\nStatus: 200\n ------ Content ------\nTrue" % (url, ))
self.expectOutcome(result=SUCCESS, status_text=["Status", "code:", '200'])
return self.runStep()


def test_params_renderable(self):
url = self.getURL()
self.setupStep(http.GET(url, params=properties.Property("x")))
self.properties.setProperty('x', {'param_1': 'param_1','param_2':2}, 'here')
self.expectLogfile('log', "URL: %s\nStatus: 200\n ------ Content ------\nOK" % (url, ))
self.expectLogfile('content', "OK")
self.expectOutcome(result=SUCCESS, status_text=["Status", "code:", '200'])
return self.runStep()

0 comments on commit daeac8c

Please sign in to comment.