4b8759864856647071253bfddfd84a5019bcc48c,testing/scripts/test_rolling_updates.py,TestRollingHttp,test_rolling_update10,#TestRollingHttp#,64

Before Change


        tester.test_rolling_update9()

    def test_rolling_update10(self):
        tester = RollingTests()
        tester.test_rolling_update10()


class RollingTests(object):

After Change


        assert r.json()["data"]["tensor"]["values"] == [1.0,2.0,3.0,4.0]
        run("kubectl apply -f ../resources/graph6svc.json", shell=True, check=True)
        i = 0
        for i in range(50):
            r = rest_request_ambassador("mymodel", "seldon", API_AMBASSADOR)
            print("Status code", r.status_code)
            assert r.status_code == 200
            res = r.json()
            print(res)
            assert (("complex-model" in res["meta"]["requestPath"] and res["meta"]["requestPath"]["complex-model"] == "seldonio/fixed-model:0.1" and res["data"]["tensor"]["values"] == [1.0,2.0,3.0,4.0]) or (res["meta"]["requestPath"]["complex-model"] == "seldonio/fixed-model:0.2" and res["data"]["tensor"]["values"] == [5.0,6.0,7.0,8.0]))
            if (not r.status_code == 200) or (res["data"]["tensor"]["values"] == [5.0,6.0,7.0,8.0]):
                break
            time.sleep(1)
        assert i < 100
        print("Success for test_rolling_update10")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 27

Instances


Project Name: SeldonIO/seldon-core
Commit Name: 4b8759864856647071253bfddfd84a5019bcc48c
Time: 2019-09-11
Author: cc@seldon.io
File Name: testing/scripts/test_rolling_updates.py
Class Name: TestRollingHttp
Method Name: test_rolling_update10


Project Name: SeldonIO/seldon-core
Commit Name: 4b8759864856647071253bfddfd84a5019bcc48c
Time: 2019-09-11
Author: cc@seldon.io
File Name: testing/scripts/test_rolling_updates.py
Class Name: TestRollingHttp
Method Name: test_rolling_update5


Project Name: SeldonIO/seldon-core
Commit Name: 4b8759864856647071253bfddfd84a5019bcc48c
Time: 2019-09-11
Author: cc@seldon.io
File Name: testing/scripts/test_rolling_updates.py
Class Name: TestRollingHttp
Method Name: test_rolling_update7


Project Name: SeldonIO/seldon-core
Commit Name: 4b8759864856647071253bfddfd84a5019bcc48c
Time: 2019-09-11
Author: cc@seldon.io
File Name: testing/scripts/test_rolling_updates.py
Class Name: TestRollingHttp
Method Name: test_rolling_update6