def test_no_available_ports(self): c = ApacheContainerCrawler() c.crawl() pass
def test_no_accessible_endpoint(self, *kwargs): c = ApacheContainerCrawler() with self.assertRaises(ConnectionError): c.crawl("mockcontainer")
def test_get_feature(self): c = ApacheContainerCrawler() self.assertEqual(c.get_feature(), 'apache')
def test_apache_container_crawler_docker(self, *args): c = ApacheContainerCrawler() emitted = c.crawl()[0] self.assertEqual(emitted[0], 'apache') self.assertIsInstance(emitted[1], ApacheFeature) self.assertEqual(emitted[2], 'application')
def test_none_apache_container(self): c = ApacheContainerCrawler() with self.assertRaises(CrawlError): c.crawl("mockcontainer")
def test_no_accessible_endpoint(self): c = ApacheContainerCrawler() with self.assertRaises(CrawlError): c.crawl("mockcontainer")
def test_no_available_port(self): c = ApacheContainerCrawler() with self.assertRaises(CrawlError): c.crawl("mockcontainer")
def test_get_metrics(self): c = ApacheContainerCrawler() emitted = c.crawl()[0] self.assertEqual(emitted[0], 'apache') self.assertIsInstance(emitted[1], ApacheFeature) self.assertEqual(emitted[2], 'application')