"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/test_healthcheck.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_healthcheck.py  (keystone-16.0.1):test_healthcheck.py  (keystone-17.0.0)
skipping to change at line 15 skipping to change at line 15
# #
# 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, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. # implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from six.moves import http_client import http.client
from keystone.tests.unit import rest from keystone.tests.unit import rest
class HealthCheckTestCase(rest.RestfulTestCase): class HealthCheckTestCase(rest.RestfulTestCase):
def test_get_healthcheck(self): def test_get_healthcheck(self):
with self.test_client() as c: with self.test_client() as c:
resp = c.get('/healthcheck', expected_status_code=http_client.OK) resp = c.get('/healthcheck', expected_status_code=http.client.OK)
# healthcheck is not supposed to return any data # healthcheck is not supposed to return any data
self.assertEqual(0, resp.content_length) self.assertEqual(0, resp.content_length)
 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)