summaryrefslogtreecommitdiff
path: root/keystoneclient/contrib
diff options
context:
space:
mode:
authorSteve Martinelli <stevemar@ca.ibm.com>2015-12-15 18:00:16 -0500
committerSteve Martinelli <stevemar@ca.ibm.com>2016-03-10 03:51:01 +0000
commitef13bd8cf6c6e46f4ce04fa3a21552913417b586 (patch)
tree80119db045b13244f9d13b87dc73913216d20c35 /keystoneclient/contrib
parent9b028b5cdd1b0ef7260fa530a5a5925d78f81646 (diff)
downloadpython-keystoneclient-ef13bd8cf6c6e46f4ce04fa3a21552913417b586.tar.gz
remove CLI from keystoneclient
the CLI has been deprecated for a long time, and many docs and install guides recommend using OSC instead of `keystone`. - removes CLI - removes man page from docs - removes CLI tests - removes `bootstrap` from contrib - removes entrypoint from setup.cfg implements bp: remove-cli Change-Id: Icbe15814bc4faf33f513f9654440068795eae807
Diffstat (limited to 'keystoneclient/contrib')
-rw-r--r--keystoneclient/contrib/bootstrap/__init__.py0
-rw-r--r--keystoneclient/contrib/bootstrap/shell.py40
2 files changed, 0 insertions, 40 deletions
diff --git a/keystoneclient/contrib/bootstrap/__init__.py b/keystoneclient/contrib/bootstrap/__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/keystoneclient/contrib/bootstrap/__init__.py
+++ /dev/null
diff --git a/keystoneclient/contrib/bootstrap/shell.py b/keystoneclient/contrib/bootstrap/shell.py
deleted file mode 100644
index 9a4ed9f..0000000
--- a/keystoneclient/contrib/bootstrap/shell.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# Licensed under the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
-
-from keystoneclient import utils
-from keystoneclient.v2_0 import client
-
-
-@utils.arg('--user-name', metavar='<user-name>', default='admin', dest='user',
- help='The name of the user to be created (default="admin").')
-@utils.arg('--pass', metavar='<password>', required=True, dest='passwd',
- help='The password for the new user.')
-@utils.arg('--role-name', metavar='<role-name>', default='admin', dest='role',
- help='The name of the role to be created and granted to the user '
- '(default="admin").')
-@utils.arg('--tenant-name', metavar='<tenant-name>', default='admin',
- dest='tenant',
- help='The name of the tenant to be created (default="admin").')
-def do_bootstrap(kc, args):
- """Grants a new role to a new user on a new tenant, after creating each."""
- tenant = kc.tenants.create(tenant_name=args.tenant)
- role = kc.roles.create(name=args.role)
- user = kc.users.create(name=args.user, password=args.passwd, email=None)
- kc.roles.add_user_role(user=user, role=role, tenant=tenant)
-
- # verify the result
- user_client = client.Client(
- username=args.user,
- password=args.passwd,
- tenant_name=args.tenant,
- auth_url=kc.management_url)
- user_client.authenticate()