

def test_with_v3_auth(self):
    self.store.ref_params = {
        'ref1': {
            'auth_address': 'authurl.com',
            'auth_version': '3',
            'user': 'user:pass',
            'key': 'password',
            'user_domain_id': 'default',
            'user_domain_name': 'ignored',
            'project_domain_id': 'default',
            'project_domain_name': 'ignored',
        },
    }
    self.store.configure()
    connection = self.store.get_connection(self.location)
    self.assertEqual('3', connection.auth_version)
    self.assertEqual(connection.os_options, {
        'service_type': 'object-store',
        'endpoint_type': 'publicURL',
        'user_domain_id': 'default',
        'user_domain_name': 'ignored',
        'project_domain_id': 'default',
        'project_domain_name': 'ignored',
    })

dataset/ETHPy150Open openstack/glance_store/glance_store/tests/unit/test_swift_store.py TestSingleTenantStoreConnections.test_with_v3_auth/original