コード例 #1
0
ファイル: test_swift.py プロジェクト: esberglu/nova-powervm
    def setUp(self):
        super(TestSwiftStore, self).setUp()
        self.flags(swift_password='******',
                   swift_auth_url='url',
                   group='powervm')

        self.swift_store = swift.SwiftNvramStore()
コード例 #2
0
ファイル: test_swift.py プロジェクト: andymcc/nova-powervm
 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'])