Beispiel #1
0
    def setUp(self):
        super(TestSwiftStore, self).setUp()
        self.flags(swift_password='******',
                   swift_auth_url='url',
                   group='powervm')

        self.swift_store = swift.SwiftNvramStore()
Beispiel #2
0
 def test_optional_options(self):
     """Test optional config values."""
     # Not in the sparse one from setUp()
     self.assertIsNone(self.swift_store.options['os_cacert'])
     # Create a new one with the optional values set
     self.flags(swift_cacert='/path/to/ca.pem', group='powervm')
     swift_store = swift.SwiftNvramStore()
     self.assertEqual('/path/to/ca.pem', swift_store.options['os_cacert'])