INTTEST-65: use resp.text instead of .content 82/86682/1
authorJamo Luhrsen <jluhrsen@gmail.com>
Fri, 3 Jan 2020 01:23:22 +0000 (17:23 -0800)
committerJamo Luhrsen <jluhrsen@gmail.com>
Fri, 3 Jan 2020 01:50:57 +0000 (17:50 -0800)
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 <jluhrsen@gmail.com>
csit/suites/integration/basic/restconf_modules.robot

index 4d9c1d4353cc80d45f36e0724aebd2c801ef82b1..b4811b1caff8999c9c5c3c11eca9f904d1bc65f4 100644 (file)
@@ -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