Beispiel #1
0
    def __init__(self, base_url):

        verify_url(base_url)

        self.base_url = base_url
        self.session = JolokiaSession()
Beispiel #2
0
    def test_weird_machiney_url(self):

        args = ['http://url-23497fdca787d87b.az.example.com']

        assert verify_url(*args) is True
Beispiel #3
0
    def test_well_formed(self):

        args = ['http://localhost:8080/jolokia']

        assert verify_url(*args) is True
Beispiel #4
0
    def test_well_formed_with_non_alpha_chars(self):

        args = ['http://localhost:8080/joloki-1.0.0']

        assert verify_url(*args) is True
Beispiel #5
0
    def __init__(self, base_url, username=None, password=None):

        verify_url(base_url)

        self.base_url = base_url
        self.session = JolokiaSession(username, password)