1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
diff --git a/heatclient/tests/unit/test_common_http.py b/heatclient/tests/unit/test_common_http.py
index bb2fa20..309db93 100644
--- a/heatclient/tests/unit/test_common_http.py
+++ b/heatclient/tests/unit/test_common_http.py
@@ -624,15 +624,6 @@ class HttpClientTest(testtools.TestCase):
self.assertEqual(200, resp.status_code)
self.assertEqual({}, body)
- def test_get_system_ca_file(self):
- chosen = '/etc/ssl/certs/ca-certificates.crt'
- self.m.StubOutWithMock(os.path, 'exists')
- os.path.exists(chosen).AndReturn(chosen)
- self.m.ReplayAll()
-
- ca = http.get_system_ca_file()
- self.assertEqual(chosen, ca)
-
def test_insecure_verify_cert_None(self):
client = http.HTTPClient('https://foo', insecure=True)
self.assertFalse(client.verify_cert)
diff --git a/heatclient/tests/unit/test_shell.py b/heatclient/tests/unit/test_shell.py
index 0e4bf03..dad8a9f 100644
--- a/heatclient/tests/unit/test_shell.py
+++ b/heatclient/tests/unit/test_shell.py
@@ -3449,34 +3449,6 @@ class ShellTestResources(ShellBase):
def test_resource_list_no_resource_name(self):
self._test_resource_list(False)
- def test_resource_list_empty(self):
- self.register_keystone_auth_fixture()
- resp_dict = {"resources": []}
- resp = fakes.FakeHTTPResponse(
- 200,
- 'OK',
- {'content-type': 'application/json'},
- jsonutils.dumps(resp_dict))
- stack_id = 'teststack/1'
- http.SessionClient.request(
- '/stacks/%s/resources' % (
- stack_id), 'GET').AndReturn(resp)
-
- self.m.ReplayAll()
-
- resource_list_text = self.shell('resource-list {0}'.format(stack_id))
-
- self.assertEqual('''\
-+---------------+----------------------+---------------+-----------------+\
---------------+
-| resource_name | physical_resource_id | resource_type | resource_status |\
- updated_time |
-+---------------+----------------------+---------------+-----------------+\
---------------+
-+---------------+----------------------+---------------+-----------------+\
---------------+
-''', resource_list_text)
-
def test_resource_list_nested(self):
self.register_keystone_auth_fixture()
resp_dict = {"resources": [{
|