From 89b88a0a23561f0bda62338b394ec41655679b2d Mon Sep 17 00:00:00 2001 From: Jamo Luhrsen Date: Thu, 2 Jan 2020 17:23:22 -0800 Subject: [PATCH] INTTEST-65: use resp.text instead of .content when running with python3, .content may not come in pure str() format and python3 is a little more restrictive with that. but the requests library will always send back resp.text as a string which is what Should Contain is looking at Change-Id: Ic6b02c058d702bdb4192ebe701ac8f68af7158b7 Signed-off-by: Jamo Luhrsen --- csit/suites/integration/basic/restconf_modules.robot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csit/suites/integration/basic/restconf_modules.robot b/csit/suites/integration/basic/restconf_modules.robot index 4d9c1d4353..b4811b1caf 100644 --- a/csit/suites/integration/basic/restconf_modules.robot +++ b/csit/suites/integration/basic/restconf_modules.robot @@ -11,4 +11,4 @@ Get Controller Modules ${resp} = RequestsLibrary.Get_Request session ${MODULES_API} BuiltIn.Log ${resp.content} BuiltIn.Should_Be_Equal ${resp.status_code} ${200} - BuiltIn.Should_Contain ${resp.content} ietf-restconf + BuiltIn.Should_Contain ${resp.text} ietf-restconf -- 2.36.6