Пример #1
0
    def setUp(self):

        mc = services.mc_mock.Client(["localhost:11211"], 1)

        mc.set("test_token", {"test_cloud": {"username": "******"}}, None)

        self.auth = KeystoneProxy("test_cloud",
                                  "test_token",
                                  mc,
                                  eucarc_path="tukey_middleware/tests/data/%s")
Пример #2
0
class KeystoneProxyTestCase(unittest.TestCase):

    def setUp(self):

        mc = services.mc_mock.Client(["localhost:11211"], 1)

        mc.set("test_token", {"test_cloud": {"username": "******"}}, None)

        self.auth = KeystoneProxy("test_cloud", "test_token", mc,
                eucarc_path="tukey_middleware/tests/data/%s")

    def test_host(self):
        assert self.auth.host() == "127.0.0.3"

    def test_path(self):
        assert self.auth.path() == "/services/Eucalyptus"
Пример #3
0
class KeystoneProxyTestCase(unittest.TestCase):
    def setUp(self):

        mc = services.mc_mock.Client(["localhost:11211"], 1)

        mc.set("test_token", {"test_cloud": {"username": "******"}}, None)

        self.auth = KeystoneProxy("test_cloud",
                                  "test_token",
                                  mc,
                                  eucarc_path="tukey_middleware/tests/data/%s")

    def test_host(self):
        assert self.auth.host() == "127.0.0.3"

    def test_path(self):
        assert self.auth.path() == "/services/Eucalyptus"
Пример #4
0
    def setUp(self):

        mc = services.mc_mock.Client(["localhost:11211"], 1)

        mc.set("test_token", {"test_cloud": {"username": "******"}}, None)

        self.auth = KeystoneProxy("test_cloud", "test_token", mc,
                eucarc_path="tukey_middleware/tests/data/%s")