コード例 #1
0
 def test_tomcat_container_noport(self, *args):
     c = TomcatContainerCrawler()
     c.crawl(1234)
     pass
コード例 #2
0
 def test_none_tomcat_container(self, *args):
     options = {"password": "******", "user": "******"}
     c = TomcatContainerCrawler()
     with self.assertRaises(ConnectionError):
         c.crawl(1234, **options)
コード例 #3
0
 def test_get_feature(self):
     c = TomcatContainerCrawler()
     self.assertEqual(c.get_feature(), 'tomcat')
コード例 #4
0
 def test_tomcat_container_fordocker(self, *args):
     c = TomcatContainerCrawler()
     options = {"password": "******", "user": "******"}
     emitted = list(c.crawl(**options))
     self.assertEqual(emitted[0][0], 'tomcat_jvm')
     self.assertEqual(emitted[0][2], 'application')
コード例 #5
0
 def test_no_available_port(self):
     c = TomcatContainerCrawler()
     with self.assertRaises(CrawlError):
         c.crawl("mockcontainer")
コード例 #6
0
 def test_none_tomcat_container(self):
     c = TomcatContainerCrawler()
     with self.assertRaises(CrawlError):
         c.crawl("mockcontainer")
コード例 #7
0
 def test_get_metrics(self):
     c = TomcatContainerCrawler()
     options = {"password": "******", "user": "******"}
     emitted = list(c.crawl(**options))
     self.assertEqual(emitted[0][0], 'tomcat_jvm')
     self.assertEqual(emitted[0][2], 'application')
コード例 #8
0
 def test_get_feature(self):
     c = TomcatContainerCrawler()
     self.assertEqual(c.get_feature(), 'tomcat')
コード例 #9
0
ファイル: test_app_tomcat.py プロジェクト: CCI-MOC/ABMI
 def test_none_tomcat_container(self, *args):
     options = {"password": "******", "user": "******"}
     c = TomcatContainerCrawler()
     with self.assertRaises(ConnectionError):
         c.crawl(1234, **options)
コード例 #10
0
ファイル: test_app_tomcat.py プロジェクト: CCI-MOC/ABMI
 def test_tomcat_container_noport(self, *args):
     c = TomcatContainerCrawler()
     c.crawl(1234)
     pass
コード例 #11
0
ファイル: test_app_tomcat.py プロジェクト: CCI-MOC/ABMI
 def test_tomcat_container_fordocker(self, *args):
     c = TomcatContainerCrawler()
     options = {"password": "******", "user": "******"}
     emitted = list(c.crawl(**options))
     self.assertEqual(emitted[0][0], 'tomcat_jvm')
     self.assertEqual(emitted[0][2], 'application')