diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-04-02 13:31:25 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-04-02 13:31:25 +0200 |
commit | 47c2a0e71d1d0e46fc9fcdc01f22557bfbfc3794 (patch) | |
tree | ba37a0c18e2e0d57fe1b473e8406c5ccd083aa97 /service/test/unit/bitmask_libraries | |
parent | 2afbf19730d5810c61b8b478ff228bef88fca968 (diff) |
Don't try to write certs to installation folder.
- User running the agent might not have the rights to do this
Diffstat (limited to 'service/test/unit/bitmask_libraries')
-rw-r--r-- | service/test/unit/bitmask_libraries/test_certs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/unit/bitmask_libraries/test_certs.py b/service/test/unit/bitmask_libraries/test_certs.py index ba56d5c2..17daa69b 100644 --- a/service/test/unit/bitmask_libraries/test_certs.py +++ b/service/test/unit/bitmask_libraries/test_certs.py @@ -12,12 +12,12 @@ class CertsTest(unittest.TestCase): def test_that_which_bootstrap_cert_bundle_returns_byte_string(self, mock_isdir, mock_isfile): mock_isfile.return_value = True mock_isdir.return_value = True - config = MagicMock(bootstrap_ca_cert_bundle=AUTO_DETECT_CA_BUNDLE, certs_home='/some/path') + config = MagicMock(bootstrap_ca_cert_bundle=AUTO_DETECT_CA_BUNDLE, leap_home='/leap/home', certs_home='/some/path') provider = MagicMock(server_name=u'test.leap.net', config=config) bundle = which_bootstrap_CA_bundle(provider) - self.assertEqual('/some/path/test.leap.net.ca.crt', bundle) + self.assertEqual('/leap/home/providers/test.leap.net/test.leap.net.ca.crt', bundle) self.assertEqual(str, type(bundle)) @patch('pixelated.bitmask_libraries.certs.os.path.isfile') |