X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FCrudLibrary.py;h=baaf5f4547f30e12bdc45e503e3993a226607636;hb=refs%2Fchanges%2F17%2F90617%2F7;hp=d5979ea5853dce6731bbecfd7856dcf243015a4f;hpb=05b470e7f3b3e677b6667be7b48a50716d21708c;p=integration%2Ftest.git diff --git a/csit/libraries/CrudLibrary.py b/csit/libraries/CrudLibrary.py index d5979ea585..baaf5f4547 100644 --- a/csit/libraries/CrudLibrary.py +++ b/csit/libraries/CrudLibrary.py @@ -242,7 +242,7 @@ def testlongevity(inputtime, port, *ips): resp = getCars(ip, port, 0) if resp.status_code == 200: print("Pass: car data available after addition") - if resp.content.find("manufacturer100") == -1: + if resp.text.find("manufacturer100") == -1: print("Fail: last car is not there") else: print("Pass: car data matches") @@ -254,7 +254,7 @@ def testlongevity(inputtime, port, *ips): resp = getPersons(ip, port, 0) if resp.status_code == 200: print("Pass: people data available after addition") - if resp.content.find("user100") == -1: + if resp.text.find("user100") == -1: print("Fail: last person is not there") else: print("Pass: person data matches") @@ -267,7 +267,7 @@ def testlongevity(inputtime, port, *ips): resp = getCarPersonMappings(ip, port, 0) if resp.status_code == 200: print("Pass: car person data available after addition") - if resp.content.find("user100") == -1: + if resp.text.find("user100") == -1: print("Fail: last car person is not there") else: print("Pass: car person data matches")