"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/test_contrib_simple_cert.py" between
keystone-16.0.1.tar.gz and keystone-17.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Ussuri" series (latest release).

test_contrib_simple_cert.py  (keystone-16.0.1):test_contrib_simple_cert.py  (keystone-17.0.0)
skipping to change at line 13 skipping to change at line 13
# a copy of the License at # a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from six.moves import http_client import http.client
from keystone.tests.unit import test_v3 from keystone.tests.unit import test_v3
class BaseTestCase(test_v3.RestfulTestCase): class BaseTestCase(test_v3.RestfulTestCase):
CA_PATH = '/v3/OS-SIMPLE-CERT/ca' CA_PATH = '/v3/OS-SIMPLE-CERT/ca'
CERT_PATH = '/v3/OS-SIMPLE-CERT/certificates' CERT_PATH = '/v3/OS-SIMPLE-CERT/certificates'
class TestSimpleCert(BaseTestCase): class TestSimpleCert(BaseTestCase):
def request_cert(self, path): def request_cert(self, path):
self.request(app=self.public_app, self.request(app=self.public_app,
method='GET', method='GET',
path=path, path=path,
expected_status=http_client.GONE) expected_status=http.client.GONE)
def test_ca_cert(self): def test_ca_cert(self):
self.request_cert(self.CA_PATH) self.request_cert(self.CA_PATH)
def test_signing_cert(self): def test_signing_cert(self):
self.request_cert(self.CERT_PATH) self.request_cert(self.CERT_PATH)
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)