コード例 #1
0
ファイル: testhttp.py プロジェクト: sw0x2A/Diamond-1
    def setUp(self):
        config = get_collector_config('HttpCollector', {
            'req_vhost': 'www.my_server.com',
            'req_url': ['http://www.my_server.com/']
        })

        self.collector = HttpCollector(config, None)
コード例 #2
0
ファイル: testhttp.py プロジェクト: Blueshoe/Diamond
    def setUp(self):
        config = get_collector_config(
            'HttpCollector', {
                'req_vhost':
                'www.my_server.com',
                'req_urls_and_teststrings':
                ['http://www.my_server.com/', 'keep out']
            })

        self.collector = HttpCollector(config, None)