From 9bfd0058a38bca88dbbcd4cb05864d6522a5994a Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Fri, 26 Feb 2016 13:07:13 -0600 Subject: [PATCH] Fix doc build warnings The documentation build was printing warnigs like doc/source/auth-totp.rst:111: SEVERE: Title level inconsistent: Tokens ====== This is because subtitle is being used incorrectly, see[1]. The subtitles are changed to section headers instead. [1] http://docutils.sourceforge.net/docs/user/rst/quickstart.html#document-title-subtitle Also corrected these warnings: keystone/tests/unit/test_v3_assignment.py:docstring of keystone.tests.unit.test_v3_assignment.ImpliedRolesTests. test_list_role_assignments_with_implied_roles:9: ERROR: Unexpected indentation. keystone/keystone/tests/unit/test_v3_assignment.py:docstring of keystone.tests.unit.test_v3_assignment.ImpliedRolesTests. test_list_role_assignments_with_implied_roles:10: WARNING: Block quote ends without a blank line; unexpected unindent. Change-Id: Ib88dbc7a31a6aed8048966574ac998b5332862c7 --- doc/source/auth-totp.rst | 11 +++-------- keystone/tests/unit/test_v3_assignment.py | 1 + 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/doc/source/auth-totp.rst b/doc/source/auth-totp.rst index 50cb637526..4e81757fbd 100644 --- a/doc/source/auth-totp.rst +++ b/doc/source/auth-totp.rst @@ -15,9 +15,8 @@ Time-based One-time Password (TOTP) =================================== ----------------- Configuring TOTP ----------------- +================ TOTP is not enabled in Keystone by default. To enable it add the ``totp`` authentication method to the ``[auth]`` section in ``keystone.conf``: @@ -101,18 +100,14 @@ In Google Authenticator app click on 'Set up account' and then click on 'Scan a barcode', and then scan the 'totp.png' image. This should create a new TOTP entry in the application. ----------------------- Authenticate with TOTP ----------------------- +====================== Google Authenticator will generate a 6 digit PIN (passcode) every few seconds. Use the passcode and your user ID to authenticate using the ``totp`` method. Tokens -====== - -Default scope -------------- +------ Get a token with default scope (may be unscoped) using totp: diff --git a/keystone/tests/unit/test_v3_assignment.py b/keystone/tests/unit/test_v3_assignment.py index 0f0a69c948..9e3e69c2a0 100644 --- a/keystone/tests/unit/test_v3_assignment.py +++ b/keystone/tests/unit/test_v3_assignment.py @@ -2542,6 +2542,7 @@ class ImpliedRolesTests(test_v3.RestfulTestCase, test_v3.AssignmentTestMixin, """Call ``GET /role_assignments`` with implied role grant. Test Plan: + - Create a domain with a user and a project - Create 3 roles - Role 0 implies role 1 and role 1 implies role 2