~ubuntu-branches/ubuntu/wily/keystone/wily

« back to all changes in this revision

Viewing changes to keystone/tests/test_ssl.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-10-02 11:46:14 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20131002114614-pw4xkjdvowr9u34w
Tags: 1:2013.2~rc1-0ubuntu1
* New upstream version.
* debian/control:
  - Add versioned dependencies to python-pbr, python-dogpile.cache,
    python-oslo.config, python-webob, python-pam, python-sqlalchemy,
    python-testtools, and python-requests.
  - Added python-greenlet, python-requests, python-netifaces,
    and python-setuptools as a build dependency.
  - Dropped python-swift, python-unittest, python-d2to1,
    as a build dependency.
  - Bumped versioned depends for python-keystoneclient.
* debian/patches/disable-oauth2.patch: Refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
2
2
 
3
 
# Copyright 2012 OpenStack LLC
 
3
# Copyright 2012 OpenStack Foundation
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
18
18
import os
19
19
import ssl
20
20
 
21
 
from keystone.tests import core as test
22
 
 
23
21
from keystone.common import environment
24
22
from keystone import config
 
23
from keystone import tests
 
24
 
25
25
 
26
26
CONF = config.CONF
27
27
 
28
 
CERTDIR = test.rootdir("examples/pki/certs")
29
 
KEYDIR = test.rootdir("examples/pki/private")
 
28
CERTDIR = tests.rootdir("examples/pki/certs")
 
29
KEYDIR = tests.rootdir("examples/pki/private")
30
30
CERT = os.path.join(CERTDIR, 'ssl_cert.pem')
31
31
KEY = os.path.join(KEYDIR, 'ssl_key.pem')
32
32
CA = os.path.join(CERTDIR, 'cacert.pem')
33
33
CLIENT = os.path.join(CERTDIR, 'middleware.pem')
34
34
 
35
35
 
36
 
class SSLTestCase(test.TestCase):
 
36
class SSLTestCase(tests.TestCase):
37
37
    def setUp(self):
38
38
        super(SSLTestCase, self).setUp()
39
39
        self.load_backends()