Esempio n. 1
0
    def test_environments(self):
        collection = EnvironmentCollection(self._client, "url/")
        res = collection._new({"name":"env_name"})

        # Settings
        self._test_settings(res)

        # Hosts
        host_coll = res.hosts()
        host = host_coll._new({"name":"host_name"})
        self._expected_url = "url/" + res.identifier + "/hosts/" + host.identifier
        host.update()
Esempio n. 2
0
    def test_environments(self):
        collection = EnvironmentCollection(self._client, "url/")
        res = collection._new({"name": "env_name"})

        # Settings
        self._test_settings(res)

        # Hosts
        host_coll = res.hosts()
        host = host_coll._new({"name": "host_name"})
        self._expected_url = "url/" + res.identifier + "/hosts/" + host.identifier
        host.update()
Esempio n. 3
0
 def test_environments(self):
     collection = EnvironmentCollection(None, "")
     res = collection._new({"name":"name"})
     self.assertTrue(isinstance(res, Environment))
Esempio n. 4
0
 def test_environments(self):
     collection = EnvironmentCollection(None, "")
     res = collection._new({"name": "name"})
     self.assertTrue(isinstance(res, Environment))