This is an automated email from the ASF dual-hosted git repository. dubeejw pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git
The following commit(s) were added to refs/heads/master by this push: new 8a23d9f Remove test for included packages in python image. (#3385) 8a23d9f is described below commit 8a23d9ff80973af804fa5c72c8fee13be981011c Author: rodric rabbah <rod...@gmail.com> AuthorDate: Fri Mar 2 14:17:42 2018 -0500 Remove test for included packages in python image. (#3385) We don't do similar tests for other runtimes and with the separation of the runtimes into their own repos and with fewer packages going forward, I think these tests do not make sense to keep. --- .../PythonActionContainerTests.scala | 59 ---------------------- 1 file changed, 59 deletions(-) diff --git a/tests/src/test/scala/actionContainers/PythonActionContainerTests.scala b/tests/src/test/scala/actionContainers/PythonActionContainerTests.scala index 1e4f1bc..cb880be 100644 --- a/tests/src/test/scala/actionContainers/PythonActionContainerTests.scala +++ b/tests/src/test/scala/actionContainers/PythonActionContainerTests.scala @@ -380,63 +380,4 @@ class PythonActionContainerTests extends BasicActionRunnerTests with WskActorSys e should include("Traceback") }) } - - it should "be able to import additional packages as installed in the image" in { - val (out, err) = withActionContainer() { c => - val code = """ - |from bs4 import BeautifulSoup - |from dateutil.parser import * - |import httplib2 - |from lxml import etree - |import requests - |from scrapy.item import Item, Field - |import simplejson as json - |from twisted.internet import protocol, reactor, endpoints - |import socket - |from kafka import BrokerConnection - | - |def main(args): - | socket.setdefaulttimeout(120) - | b = BeautifulSoup('<html><head><title>python action test</title></head></html>', 'html.parser') - | h = httplib2.Http().request('https://openwhisk.ng.bluemix.net/api/v1')[0] - | t = parse('2016-02-22 11:59:00 EST') - | r = requests.get('https://openwhisk.ng.bluemix.net/api/v1') - | j = json.dumps({'foo':'bar'}, separators = (',', ':')) - | kafka = BrokerConnection("it works", 9093, None) - | - | return { - | "bs4": str(b.title), - | "httplib2": h.status, - | "dateutil": t.strftime("%A"), - | "lxml": etree.Element("root").tag, - | "json": j, - | "request": r.status_code, - | "kafka_python": kafka.host - | } - """.stripMargin - - val (initCode, _) = c.init(initPayload(code)) - initCode should be(200) - - val (runCode, runRes) = c.run(runPayload(JsObject())) - runCode should be(200) // action writer returning an error is OK - - runRes shouldBe defined - runRes should be( - Some(JsObject( - "bs4" -> "<title>python action test</title>".toJson, - "httplib2" -> 200.toJson, - "dateutil" -> "Monday".toJson, - "lxml" -> "root".toJson, - "json" -> JsObject("foo" -> "bar".toJson).compactPrint.toJson, - "request" -> 200.toJson, - "kafka_python" -> "it works".toJson))) - } - - checkStreams(out, err, { - case (o, e) => - o shouldBe empty - e shouldBe empty - }) - } } -- To stop receiving notification emails like this one, please contact dube...@apache.org.