| package(default_visibility = ["//visibility:public"]) |
| |
| pex_library( |
| name = "instance-network-mock", |
| srcs = ["mock_generator.py"], |
| deps = [ |
| "//heron/instance/tests/python:instance-tests-py", |
| ], |
| reqs = [ |
| "mock==1.0.1" |
| ] |
| ) |
| |
| pex_library( |
| name = "instance-network-mock-client", |
| srcs = ["mock_generator_client.py"], |
| deps = [ |
| "//heron/instance/tests/python:instance-tests-py", |
| ], |
| reqs = [ |
| "mock==1.0.1" |
| ] |
| ) |
| |
| pex_pytest( |
| name = "st_stmgrcli_unittest", |
| srcs = ["st_stmgr_client_unittest.py"], |
| deps = [ |
| ":instance-network-mock-client", |
| ":instance-network-mock", |
| "//heron/instance/src/python:instance-py", |
| ], |
| reqs = [ |
| "py==1.4.34", |
| "pytest==3.2.2", |
| "unittest2==1.1.0", |
| ], |
| size = "small", |
| ) |
| |
| pex_pytest( |
| name = "metricsmgr_client_unittest", |
| srcs = ["metricsmgr_client_unittest.py"], |
| deps = [ |
| ":pytest-network-py", |
| "//heron/instance/tests/python:instance-tests-py", |
| "//heron/instance/src/python:instance-py", |
| ], |
| reqs = [ |
| "py==1.4.34", |
| "pytest==3.2.2", |
| "unittest2==1.1.0", |
| ], |
| size = "small", |
| ) |
| |
| pex_library( |
| name = "pytest-network-py", |
| srcs = ["mock_generator.py"], |
| deps = [ |
| ":instance-network-mock-client", |
| ], |
| reqs = [ |
| "py==1.4.34", |
| "pytest==3.2.2", |
| "unittest2==1.1.0", |
| ], |
| ) |
| |
| pex_pytest( |
| name = "protocol_unittest", |
| srcs = ["protocol_unittest.py"], |
| deps = [ |
| ":pytest-network-py", |
| "//heron/instance/tests/python:instance-tests-py", |
| "//heron/instance/src/python:instance-py", |
| ], |
| reqs = [ |
| "py==1.4.34", |
| "pytest==3.2.2", |
| "unittest2==1.1.0", |
| ], |
| size = "small", |
| ) |
| |
| pex_pytest( |
| name = "heron_client_unittest", |
| srcs = ["heron_client_unittest.py"], |
| deps = [ |
| ":pytest-network-py", |
| "//heron/instance/tests/python:instance-tests-py", |
| "//heron/instance/src/python:instance-py", |
| ], |
| reqs = [ |
| "py==1.4.34", |
| "pytest==3.2.2", |
| "unittest2==1.1.0", |
| "mock==1.0.1", |
| ], |
| size = "small", |
| ) |
| |
| pex_pytest( |
| name = "gateway_looper_unittest", |
| srcs = ["gateway_looper_unittest.py"], |
| deps = [ |
| "//heron/instance/src/python:instance-py", |
| ], |
| reqs = [ |
| "py==1.4.34", |
| "pytest==3.2.2", |
| "unittest2==1.1.0", |
| ], |
| size = "small", |
| ) |
| |
| pex_pytest( |
| name = "event_looper_unittest", |
| srcs = ["event_looper_unittest.py"], |
| deps = [ |
| "//heron/instance/src/python:instance-py", |
| ], |
| reqs = [ |
| "py==1.4.34", |
| "pytest==3.2.2", |
| "unittest2==1.1.0", |
| ], |
| size = "small", |
| ) |