(self)
| 65 | |
| 66 | @requires_api_version('1.24') |
| 67 | def test_list_services(self): |
| 68 | services = self.client.services() |
| 69 | assert isinstance(services, list) |
| 70 | |
| 71 | test_services = self.client.services(filters={'name': 'dockerpytest_'}) |
| 72 | assert len(test_services) == 0 |
| 73 | self.create_simple_service() |
| 74 | test_services = self.client.services(filters={'name': 'dockerpytest_'}) |
| 75 | assert len(test_services) == 1 |
| 76 | assert 'dockerpytest_' in test_services[0]['Spec']['Name'] |
| 77 | |
| 78 | @requires_api_version('1.24') |
| 79 | def test_list_services_filter_by_label(self): |
nothing calls this directly
no test coverage detected