initial version

This commit is contained in:
Liam Young 2015-12-07 10:37:06 +00:00
commit 3ff28b362e
12435 changed files with 1517812 additions and 0 deletions

3
.tox/lint/.tox-config1 Normal file
View File

@ -0,0 +1,3 @@
00000000000000000000000000000000 /usr/bin/python2.7
2.1.1 0 0
00000000000000000000000000000000 -r/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/test-requirements.txt

80
.tox/lint/bin/activate Normal file
View File

@ -0,0 +1,80 @@
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly
deactivate () {
unset pydoc
# reset old environment variables
if [ -n "$_OLD_VIRTUAL_PATH" ] ; then
PATH="$_OLD_VIRTUAL_PATH"
export PATH
unset _OLD_VIRTUAL_PATH
fi
if [ -n "$_OLD_VIRTUAL_PYTHONHOME" ] ; then
PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
export PYTHONHOME
unset _OLD_VIRTUAL_PYTHONHOME
fi
# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "$BASH" -o -n "$ZSH_VERSION" ] ; then
hash -r 2>/dev/null
fi
if [ -n "$_OLD_VIRTUAL_PS1" ] ; then
PS1="$_OLD_VIRTUAL_PS1"
export PS1
unset _OLD_VIRTUAL_PS1
fi
unset VIRTUAL_ENV
if [ ! "$1" = "nondestructive" ] ; then
# Self destruct!
unset -f deactivate
fi
}
# unset irrelevant variables
deactivate nondestructive
VIRTUAL_ENV="/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint"
export VIRTUAL_ENV
_OLD_VIRTUAL_PATH="$PATH"
PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH
# unset PYTHONHOME if set
# this will fail if PYTHONHOME is set to the empty string (which is bad anyway)
# could use `if (set -u; : $PYTHONHOME) ;` in bash
if [ -n "$PYTHONHOME" ] ; then
_OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME"
unset PYTHONHOME
fi
if [ -z "$VIRTUAL_ENV_DISABLE_PROMPT" ] ; then
_OLD_VIRTUAL_PS1="$PS1"
if [ "x" != x ] ; then
PS1="$PS1"
else
if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then
# special case for Aspen magic directories
# see http://www.zetadev.com/software/aspen/
PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1"
else
PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1"
fi
fi
export PS1
fi
alias pydoc="python -m pydoc"
# This should detect bash and zsh, which have a hash command that must
# be called to get it to forget past commands. Without forgetting
# past commands the $PATH changes we made may not be respected
if [ -n "$BASH" -o -n "$ZSH_VERSION" ] ; then
hash -r 2>/dev/null
fi

View File

@ -0,0 +1,42 @@
# This file must be used with "source bin/activate.csh" *from csh*.
# You cannot run it directly.
# Created by Davide Di Blasi <davidedb@gmail.com>.
alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc'
# Unset irrelevant variables.
deactivate nondestructive
setenv VIRTUAL_ENV "/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint"
set _OLD_VIRTUAL_PATH="$PATH"
setenv PATH "$VIRTUAL_ENV/bin:$PATH"
if ("" != "") then
set env_name = ""
else
if (`basename "$VIRTUAL_ENV"` == "__") then
# special case for Aspen magic directories
# see http://www.zetadev.com/software/aspen/
set env_name = `basename \`dirname "$VIRTUAL_ENV"\``
else
set env_name = `basename "$VIRTUAL_ENV"`
endif
endif
# Could be in a non-interactive environment,
# in which case, $prompt is undefined and we wouldn't
# care about the prompt anyway.
if ( $?prompt ) then
set _OLD_VIRTUAL_PROMPT="$prompt"
set prompt = "[$env_name] $prompt"
endif
unset env_name
alias pydoc python -m pydoc
rehash

View File

@ -0,0 +1,74 @@
# This file must be used with "source bin/activate.fish" *from fish* (http://fishshell.com)
# you cannot run it directly
function deactivate -d "Exit virtualenv and return to normal shell environment"
# reset old environment variables
if test -n "$_OLD_VIRTUAL_PATH"
set -gx PATH $_OLD_VIRTUAL_PATH
set -e _OLD_VIRTUAL_PATH
end
if test -n "$_OLD_VIRTUAL_PYTHONHOME"
set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME
set -e _OLD_VIRTUAL_PYTHONHOME
end
if test -n "$_OLD_FISH_PROMPT_OVERRIDE"
# set an empty local fish_function_path, so fish_prompt doesn't automatically reload
set -l fish_function_path
# erase the virtualenv's fish_prompt function, and restore the original
functions -e fish_prompt
functions -c _old_fish_prompt fish_prompt
functions -e _old_fish_prompt
set -e _OLD_FISH_PROMPT_OVERRIDE
end
set -e VIRTUAL_ENV
if test "$argv[1]" != "nondestructive"
# Self destruct!
functions -e deactivate
end
end
# unset irrelevant variables
deactivate nondestructive
set -gx VIRTUAL_ENV "/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint"
set -gx _OLD_VIRTUAL_PATH $PATH
set -gx PATH "$VIRTUAL_ENV/bin" $PATH
# unset PYTHONHOME if set
if set -q PYTHONHOME
set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME
set -e PYTHONHOME
end
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
# fish uses a function instead of an env var to generate the prompt.
# copy the current fish_prompt function as the function _old_fish_prompt
functions -c fish_prompt _old_fish_prompt
# with the original prompt function copied, we can override with our own.
function fish_prompt
# Prompt override?
if test -n ""
printf "%s%s" "" (set_color normal)
_old_fish_prompt
return
end
# ...Otherwise, prepend env
set -l _checkbase (basename "$VIRTUAL_ENV")
if test $_checkbase = "__"
# special case for Aspen magic directories
# see http://www.zetadev.com/software/aspen/
printf "%s[%s]%s " (set_color -b blue white) (basename (dirname "$VIRTUAL_ENV")) (set_color normal)
_old_fish_prompt
else
printf "%s(%s)%s" (set_color -b blue white) (basename "$VIRTUAL_ENV") (set_color normal)
_old_fish_prompt
end
end
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
end

View File

@ -0,0 +1,34 @@
"""By using execfile(this_file, dict(__file__=this_file)) you will
activate this virtualenv environment.
This can be used when you must use an existing Python interpreter, not
the virtualenv bin/python
"""
try:
__file__
except NameError:
raise AssertionError(
"You must run this like execfile('path/to/activate_this.py', dict(__file__='path/to/activate_this.py'))")
import sys
import os
old_os_path = os.environ['PATH']
os.environ['PATH'] = os.path.dirname(os.path.abspath(__file__)) + os.pathsep + old_os_path
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if sys.platform == 'win32':
site_packages = os.path.join(base, 'Lib', 'site-packages')
else:
site_packages = os.path.join(base, 'lib', 'python%s' % sys.version[:3], 'site-packages')
prev_sys_path = list(sys.path)
import site
site.addsitedir(site_packages)
sys.real_prefix = sys.prefix
sys.prefix = base
# Move the added items to the front of the path:
new_sys_path = []
for item in list(sys.path):
if item not in prev_sys_path:
new_sys_path.append(item)
sys.path.remove(item)
sys.path[:0] = new_sys_path

133
.tox/lint/bin/bzr Executable file
View File

@ -0,0 +1,133 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# Copyright (C) 2005-2012 Canonical Ltd
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
from __future__ import absolute_import
"""Bazaar -- a free distributed version-control tool"""
import os
import sys
import warnings
# update this on each release
_script_version = (2, 6, 0)
NEED_VERS = (2, 6)
if sys.version_info < NEED_VERS:
sys.stderr.write("bzr: error: cannot find a suitable python interpreter\n")
sys.stderr.write(" (need %d.%d or later)\n" % NEED_VERS)
sys.exit(1)
profiling = False
if '--profile-imports' in sys.argv:
import profile_imports
profile_imports.install()
profiling = True
if os.name == "posix":
import locale
try:
locale.setlocale(locale.LC_ALL, '')
except locale.Error, e:
sys.stderr.write('bzr: warning: %s\n'
' bzr could not set the application locale.\n'
' Although this should be no problem for bzr itself, it might\n'
' cause problems with some plugins. To investigate the issue,\n'
' look at the output of the locale(1p) tool.\n' % e)
# Use better default than ascii with posix filesystems that deal in bytes
# natively even when the C locale or no locale at all is given. Note that
# we need an immortal string for the hack, hence the lack of a hyphen.
sys._bzr_default_fs_enc = "utf8"
# The python2.6 release includes some libraries that have deprecation warnings
# against the interpreter - see https://bugs.launchpad.net/bzr/+bug/387139
warnings.filterwarnings('ignore',
r"(struct integer overflow masking is deprecated|"
r"'L' format requires 0 <= number <= 4294967295)",
DeprecationWarning,
'gzip',
)
# instruct bzrlib/__init__.py to install lazy_regex
sys._bzr_lazy_regex = True
try:
import bzrlib
except ImportError, e:
sys.stderr.write("bzr: ERROR: "
"Couldn't import bzrlib and dependencies.\n"
"Please check the directory containing bzrlib is on your PYTHONPATH.\n"
"\n")
raise
if bzrlib.version_info[:3] != _script_version:
sys.stderr.write(
"bzr: WARNING: bzrlib version doesn't match the bzr program.\n"
"This may indicate an installation problem.\n"
"bzrlib is version %s from %s\n"
"bzr is version %s from %s\n" % (
bzrlib._format_version_tuple(bzrlib.version_info),
bzrlib.__path__[0],
bzrlib._format_version_tuple(_script_version),
__file__))
import bzrlib.inspect_for_copy
bzrlib.inspect_for_copy.import_copy_with_hacked_inspect()
import bzrlib.breakin
bzrlib.breakin.hook_debugger_to_signal()
import bzrlib.decorators
if ('--lsprof' in sys.argv
or '--lsprof-file' in sys.argv
or '--profile' in sys.argv
or '--lsprof-timed' in sys.argv):
bzrlib.decorators.use_pretty_decorators()
else:
bzrlib.decorators.use_fast_decorators()
import bzrlib.commands
import bzrlib.trace
if __name__ == '__main__':
library_state = bzrlib.initialize()
library_state.__enter__()
try:
exit_val = bzrlib.commands.main()
if profiling:
profile_imports.log_stack_info(sys.stderr)
finally:
library_state.__exit__(None, None, None)
# By this point we really have completed everything we want to do, and
# there's no point doing any additional cleanup. Abruptly exiting here
# stops any background threads getting into trouble as code is unloaded,
# and it may also be slightly faster, through avoiding gc of objects that
# are just about to be discarded anyhow. This does mean that atexit hooks
# won't run but we don't use them. Also file buffers won't be flushed,
# but our policy is to always close files from a finally block. -- mbp 20070215
sys.exitfunc()
os._exit(exit_val)
else:
raise ImportError("The bzr script cannot be imported.")

10
.tox/lint/bin/charm Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm')()
)

10
.tox/lint/bin/charm-add Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-add'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-add')()
)

10
.tox/lint/bin/charm-build Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-build'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-build')()
)

10
.tox/lint/bin/charm-compose Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-compose'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-compose')()
)

10
.tox/lint/bin/charm-create Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-create'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-create')()
)

10
.tox/lint/bin/charm-generate Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-generate'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-generate')()
)

10
.tox/lint/bin/charm-get Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-get'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-get')()
)

10
.tox/lint/bin/charm-getall Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-getall'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-getall')()
)

10
.tox/lint/bin/charm-help Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-help'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-help')()
)

10
.tox/lint/bin/charm-info Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-info'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-info')()
)

10
.tox/lint/bin/charm-inspect Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-inspect'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-inspect')()
)

10
.tox/lint/bin/charm-layers Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-layers'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-layers')()
)

10
.tox/lint/bin/charm-list Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-list'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-list')()
)

10
.tox/lint/bin/charm-promulgate Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-promulgate'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-promulgate')()
)

10
.tox/lint/bin/charm-proof Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-proof'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-proof')()
)

10
.tox/lint/bin/charm-refresh Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-refresh'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-refresh')()
)

10
.tox/lint/bin/charm-review Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-review'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-review')()
)

View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-review-queue'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-review-queue')()
)

10
.tox/lint/bin/charm-search Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-search'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-search')()
)

10
.tox/lint/bin/charm-subscribers Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-subscribers'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-subscribers')()
)

10
.tox/lint/bin/charm-test Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-test'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-test')()
)

View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-unpromulgate'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-unpromulgate')()
)

10
.tox/lint/bin/charm-update Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-update'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-update')()
)

10
.tox/lint/bin/charm-version Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','charm-version'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'charm-version')()
)

3
.tox/lint/bin/cheetah Executable file
View File

@ -0,0 +1,3 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
from Cheetah.CheetahWrapper import _cheetah
_cheetah()

6
.tox/lint/bin/cheetah-analyze Executable file
View File

@ -0,0 +1,6 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
from Cheetah import DirectiveAnalyzer
if __name__ == '__main__':
DirectiveAnalyzer.main()

3
.tox/lint/bin/cheetah-compile Executable file
View File

@ -0,0 +1,3 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
from Cheetah.CheetahWrapper import _cheetah_compile
_cheetah_compile()

11
.tox/lint/bin/easy_install Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
.tox/lint/bin/easy_install-2.7 Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
.tox/lint/bin/flake8 Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from flake8.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

14
.tox/lint/bin/getchangeset Executable file
View File

@ -0,0 +1,14 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# Copyright 2015 Canonical Ltd.
# Licensed under the AGPLv3, see LICENCE file for details.
from __future__ import unicode_literals
import sys
from jujubundlelib import cli
if __name__ == '__main__':
sys.exit(cli.get_changeset(sys.argv[1:]))

10
.tox/lint/bin/juju-bundle Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','juju-bundle'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'juju-bundle')()
)

10
.tox/lint/bin/juju-charm Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','juju-charm'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'juju-charm')()
)

10
.tox/lint/bin/juju-test Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'charm-tools==1.10.0','console_scripts','juju-test'
__requires__ = 'charm-tools==1.10.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('charm-tools==1.10.0', 'console_scripts', 'juju-test')()
)

10
.tox/lint/bin/keyring Executable file
View File

@ -0,0 +1,10 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# EASY-INSTALL-ENTRY-SCRIPT: 'keyring==5.7','console_scripts','keyring'
__requires__ = 'keyring==5.7'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('keyring==5.7', 'console_scripts', 'keyring')()
)

34
.tox/lint/bin/markdown_py Executable file
View File

@ -0,0 +1,34 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
"""
Python Markdown, the Command Line Script
========================================
This is the command line script for Python Markdown.
Basic use from the command line:
markdown source.txt > destination.html
Run "markdown --help" to see more options.
See markdown/__init__.py for information on using Python Markdown as a module.
## Authors and License
Started by [Manfred Stienstra](http://www.dwerg.net/). Continued and
maintained by [Yuri Takhteyev](http://www.freewisdom.org), [Waylan
Limberg](http://achinghead.com/) and [Artem Yunusov](http://blog.splyer.com).
Contact: markdown@freewisdom.org
Copyright 2007, 2008 The Python Markdown Project (v. 1.7 and later)
Copyright 200? Django Software Foundation (OrderedDict implementation)
Copyright 2004, 2005, 2006 Yuri Takhteyev (v. 0.2-1.6b)
Copyright 2004 Manfred Stienstra (the original version)
License: BSD (see docs/LICENSE for details).
"""
if __name__ == '__main__':
from markdown.__main__ import run
run()

11
.tox/lint/bin/ostestr Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from os_testr.os_testr import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
.tox/lint/bin/pbr Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pbr.cmd.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
.tox/lint/bin/pep8 Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pep8 import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(_main())

11
.tox/lint/bin/pip Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
.tox/lint/bin/pip2 Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
.tox/lint/bin/pip2.7 Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
.tox/lint/bin/pybabel Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from babel.messages.frontend import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

11
.tox/lint/bin/pyflakes Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pyflakes.api import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

1
.tox/lint/bin/python Symbolic link
View File

@ -0,0 +1 @@
python2.7

1
.tox/lint/bin/python2 Symbolic link
View File

@ -0,0 +1 @@
python2.7

BIN
.tox/lint/bin/python2.7 Executable file

Binary file not shown.

42
.tox/lint/bin/subunit-1to2 Executable file
View File

@ -0,0 +1,42 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2013 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
#
"""Convert a version 1 subunit stream to version 2 stream."""
from optparse import OptionParser
import sys
from testtools import ExtendedToStreamDecorator
from subunit import StreamResultToBytes
from subunit.filters import find_stream, run_tests_from_stream
def make_options(description):
parser = OptionParser(description=__doc__)
return parser
def main():
parser = make_options(__doc__)
(options, args) = parser.parse_args()
run_tests_from_stream(find_stream(sys.stdin, args),
ExtendedToStreamDecorator(StreamResultToBytes(sys.stdout)))
sys.exit(0)
if __name__ == '__main__':
main()

53
.tox/lint/bin/subunit-2to1 Executable file
View File

@ -0,0 +1,53 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2013 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
#
"""Convert a version 2 subunit stream to a version 1 stream."""
from optparse import OptionParser
import sys
from testtools import (
StreamToExtendedDecorator,
StreamResultRouter,
)
from subunit import ByteStreamToStreamResult, TestProtocolClient
from subunit.filters import find_stream, run_tests_from_stream
from subunit.test_results import CatFiles
def make_options(description):
parser = OptionParser(description=__doc__)
return parser
def main():
parser = make_options(__doc__)
(options, args) = parser.parse_args()
case = ByteStreamToStreamResult(
find_stream(sys.stdin, args), non_subunit_name='stdout')
result = StreamToExtendedDecorator(TestProtocolClient(sys.stdout))
result = StreamResultRouter(result)
cat = CatFiles(sys.stdout)
result.add_rule(cat, 'test_id', test_id=None)
result.startTestRun()
case.run(result)
result.stopTestRun()
sys.exit(0)
if __name__ == '__main__':
main()

165
.tox/lint/bin/subunit-filter Executable file
View File

@ -0,0 +1,165 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 200-2013 Robert Collins <robertc@robertcollins.net>
# (C) 2009 Martin Pool
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
#
"""Filter a subunit stream to include/exclude tests.
The default is to strip successful tests.
Tests can be filtered by Python regular expressions with --with and --without,
which match both the test name and the error text (if any). The result
contains tests which match any of the --with expressions and none of the
--without expressions. For case-insensitive matching prepend '(?i)'.
Remember to quote shell metacharacters.
"""
from optparse import OptionParser
import sys
import re
from testtools import ExtendedToStreamDecorator, StreamToExtendedDecorator
from subunit import (
DiscardStream,
ProtocolTestCase,
StreamResultToBytes,
read_test_list,
)
from subunit.filters import filter_by_result, find_stream
from subunit.test_results import (
and_predicates,
make_tag_filter,
TestResultFilter,
)
def make_options(description):
parser = OptionParser(description=__doc__)
parser.add_option("--error", action="store_false",
help="include errors", default=False, dest="error")
parser.add_option("-e", "--no-error", action="store_true",
help="exclude errors", dest="error")
parser.add_option("--failure", action="store_false",
help="include failures", default=False, dest="failure")
parser.add_option("-f", "--no-failure", action="store_true",
help="exclude failures", dest="failure")
parser.add_option("--passthrough", action="store_false",
help="Forward non-subunit input as 'stdout'.", default=False,
dest="no_passthrough")
parser.add_option("--no-passthrough", action="store_true",
help="Discard all non subunit input.", default=False,
dest="no_passthrough")
parser.add_option("-s", "--success", action="store_false",
help="include successes", dest="success")
parser.add_option("--no-success", action="store_true",
help="exclude successes", default=True, dest="success")
parser.add_option("--no-skip", action="store_true",
help="exclude skips", dest="skip")
parser.add_option("--xfail", action="store_false",
help="include expected falures", default=True, dest="xfail")
parser.add_option("--no-xfail", action="store_true",
help="exclude expected falures", default=True, dest="xfail")
parser.add_option(
"--with-tag", type=str,
help="include tests with these tags", action="append", dest="with_tags")
parser.add_option(
"--without-tag", type=str,
help="exclude tests with these tags", action="append", dest="without_tags")
parser.add_option("-m", "--with", type=str,
help="regexp to include (case-sensitive by default)",
action="append", dest="with_regexps")
parser.add_option("--fixup-expected-failures", type=str,
help="File with list of test ids that are expected to fail; on failure "
"their result will be changed to xfail; on success they will be "
"changed to error.", dest="fixup_expected_failures", action="append")
parser.add_option("--without", type=str,
help="regexp to exclude (case-sensitive by default)",
action="append", dest="without_regexps")
parser.add_option("-F", "--only-genuine-failures", action="callback",
callback=only_genuine_failures_callback,
help="Only pass through failures and exceptions.")
return parser
def only_genuine_failures_callback(option, opt, value, parser):
parser.rargs.insert(0, '--no-passthrough')
parser.rargs.insert(0, '--no-xfail')
parser.rargs.insert(0, '--no-skip')
parser.rargs.insert(0, '--no-success')
def _compile_re_from_list(l):
return re.compile("|".join(l), re.MULTILINE)
def _make_regexp_filter(with_regexps, without_regexps):
"""Make a callback that checks tests against regexps.
with_regexps and without_regexps are each either a list of regexp strings,
or None.
"""
with_re = with_regexps and _compile_re_from_list(with_regexps)
without_re = without_regexps and _compile_re_from_list(without_regexps)
def check_regexps(test, outcome, err, details, tags):
"""Check if this test and error match the regexp filters."""
test_str = str(test) + outcome + str(err) + str(details)
if with_re and not with_re.search(test_str):
return False
if without_re and without_re.search(test_str):
return False
return True
return check_regexps
def _make_result(output, options, predicate):
"""Make the result that we'll send the test outcomes to."""
fixup_expected_failures = set()
for path in options.fixup_expected_failures or ():
fixup_expected_failures.update(read_test_list(path))
return StreamToExtendedDecorator(TestResultFilter(
ExtendedToStreamDecorator(
StreamResultToBytes(output)),
filter_error=options.error,
filter_failure=options.failure,
filter_success=options.success,
filter_skip=options.skip,
filter_xfail=options.xfail,
filter_predicate=predicate,
fixup_expected_failures=fixup_expected_failures))
def main():
parser = make_options(__doc__)
(options, args) = parser.parse_args()
regexp_filter = _make_regexp_filter(
options.with_regexps, options.without_regexps)
tag_filter = make_tag_filter(options.with_tags, options.without_tags)
filter_predicate = and_predicates([regexp_filter, tag_filter])
filter_by_result(
lambda output_to: _make_result(sys.stdout, options, filter_predicate),
output_path=None,
passthrough=(not options.no_passthrough),
forward=False,
protocol_version=2,
input_stream=find_stream(sys.stdin, args))
sys.exit(0)
if __name__ == '__main__':
main()

60
.tox/lint/bin/subunit-ls Executable file
View File

@ -0,0 +1,60 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2008 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
#
"""List tests in a subunit stream."""
from optparse import OptionParser
import sys
from testtools import (
CopyStreamResult, StreamToExtendedDecorator, StreamResultRouter,
StreamSummary)
from subunit import ByteStreamToStreamResult
from subunit.filters import find_stream, run_tests_from_stream
from subunit.test_results import (
CatFiles,
TestIdPrintingResult,
)
parser = OptionParser(description=__doc__)
parser.add_option("--times", action="store_true",
help="list the time each test took (requires a timestamped stream)",
default=False)
parser.add_option("--exists", action="store_true",
help="list tests that are reported as existing (as well as ran)",
default=False)
parser.add_option("--no-passthrough", action="store_true",
help="Hide all non subunit input.", default=False, dest="no_passthrough")
(options, args) = parser.parse_args()
test = ByteStreamToStreamResult(
find_stream(sys.stdin, args), non_subunit_name="stdout")
result = TestIdPrintingResult(sys.stdout, options.times, options.exists)
if not options.no_passthrough:
result = StreamResultRouter(result)
cat = CatFiles(sys.stdout)
result.add_rule(cat, 'test_id', test_id=None)
summary = StreamSummary()
result = CopyStreamResult([result, summary])
result.startTestRun()
test.run(result)
result.stopTestRun()
if summary.wasSuccessful():
exit_code = 0
else:
exit_code = 1
sys.exit(exit_code)

48
.tox/lint/bin/subunit-notify Executable file
View File

@ -0,0 +1,48 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2010 Jelmer Vernooij <jelmer@samba.org>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
#
"""Notify the user of a finished test run."""
import pygtk
pygtk.require('2.0')
import pynotify
from testtools import StreamToExtendedDecorator
from subunit import TestResultStats
from subunit.filters import run_filter_script
if not pynotify.init("Subunit-notify"):
sys.exit(1)
def notify_of_result(result):
result = result.decorated
if result.failed_tests > 0:
summary = "Test run failed"
else:
summary = "Test run successful"
body = "Total tests: %d; Passed: %d; Failed: %d" % (
result.total_tests,
result.passed_tests,
result.failed_tests,
)
nw = pynotify.Notification(summary, body)
nw.show()
run_filter_script(
lambda output:StreamToExtendedDecorator(TestResultStats(output)),
__doc__, notify_of_result, protocol_version=2)

23
.tox/lint/bin/subunit-output Executable file
View File

@ -0,0 +1,23 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2013 Subunit Contributors
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
"""A command-line tool to generate a subunit result byte-stream."""
from subunit._output import output_main
if __name__ == '__main__':
exit(output_main())

32
.tox/lint/bin/subunit-stats Executable file
View File

@ -0,0 +1,32 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
#
"""Filter a subunit stream to get aggregate statistics."""
import sys
from testtools import StreamToExtendedDecorator
from subunit import TestResultStats
from subunit.filters import run_filter_script
result = TestResultStats(sys.stdout)
def show_stats(r):
r.decorated.formatStats()
run_filter_script(
lambda output:StreamToExtendedDecorator(result),
__doc__, show_stats, protocol_version=2, passthrough_subunit=False)

27
.tox/lint/bin/subunit-tags Executable file
View File

@ -0,0 +1,27 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
#
"""A filter to change tags on a subunit stream.
subunit-tags foo -> adds foo
subunit-tags foo -bar -> adds foo and removes bar
"""
import sys
from subunit import tag_stream
sys.exit(tag_stream(sys.stdin, sys.stdout, sys.argv[1:]))

11
.tox/lint/bin/subunit-trace Executable file
View File

@ -0,0 +1,11 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from os_testr.subunit_trace import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

26
.tox/lint/bin/subunit2csv Executable file
View File

@ -0,0 +1,26 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is d on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
#
"""Turn a subunit stream into a CSV"""
from testtools import StreamToExtendedDecorator
from subunit.filters import run_filter_script
from subunit.test_results import CsvResult
run_filter_script(lambda output:StreamToExtendedDecorator(CsvResult(output)),
__doc__, protocol_version=2)

240
.tox/lint/bin/subunit2gtk Executable file
View File

@ -0,0 +1,240 @@
#!/home/ubuntu/features/layers/openstack-charm-layer-dev/interfaces/keystone/.tox/lint/bin/python2.7
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2009 Robert Collins <robertc@robertcollins.net>
#
# Licensed under either the Apache License, Version 2.0 or the BSD 3-clause
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# license you chose for the specific language governing permissions and
# limitations under that license.
#
### The GTK progress bar __init__ function is derived from the pygtk tutorial:
# The PyGTK Tutorial is Copyright (C) 2001-2005 John Finlay.
#
# The GTK Tutorial is Copyright (C) 1997 Ian Main.
#
# Copyright (C) 1998-1999 Tony Gale.
#
# Permission is granted to make and distribute verbatim copies of this manual
# provided the copyright notice and this permission notice are preserved on all
# copies.
#
# Permission is granted to copy and distribute modified versions of this
# document under the conditions for verbatim copying, provided that this
# copyright notice is included exactly as in the original, and that the entire
# resulting derived work is distributed under the terms of a permission notice
# identical to this one.
#
# Permission is granted to copy and distribute translations of this document
# into another language, under the above conditions for modified versions.
#
# If you are intending to incorporate this document into a published work,
# please contact the maintainer, and we will make an effort to ensure that you
# have the most up to date information available.
#
# There is no guarantee that this document lives up to its intended purpose.
# This is simply provided as a free resource. As such, the authors and
# maintainers of the information provided within can not make any guarantee
# that the information is even accurate.
"""Display a subunit stream in a gtk progress window."""
import sys
import threading
import unittest
import pygtk
pygtk.require('2.0')
import gtk, gtk.gdk, gobject
from testtools import StreamToExtendedDecorator
from subunit import (
PROGRESS_POP,
PROGRESS_PUSH,
PROGRESS_SET,
ByteStreamToStreamResult,
)
from subunit.progress_model import ProgressModel
class GTKTestResult(unittest.TestResult):
def __init__(self):
super(GTKTestResult, self).__init__()
# Instance variables (in addition to TestResult)
self.window = None
self.run_label = None
self.ok_label = None
self.not_ok_label = None
self.total_tests = None
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.set_resizable(True)
self.window.connect("destroy", gtk.main_quit)
self.window.set_title("Tests...")
self.window.set_border_width(0)
vbox = gtk.VBox(False, 5)
vbox.set_border_width(10)
self.window.add(vbox)
vbox.show()
# Create a centering alignment object
align = gtk.Alignment(0.5, 0.5, 0, 0)
vbox.pack_start(align, False, False, 5)
align.show()
# Create the ProgressBar
self.pbar = gtk.ProgressBar()
align.add(self.pbar)
self.pbar.set_text("Running")
self.pbar.show()
self.progress_model = ProgressModel()
separator = gtk.HSeparator()
vbox.pack_start(separator, False, False, 0)
separator.show()
# rows, columns, homogeneous
table = gtk.Table(2, 3, False)
vbox.pack_start(table, False, True, 0)
table.show()
# Show summary details about the run. Could use an expander.
label = gtk.Label("Run:")
table.attach(label, 0, 1, 1, 2, gtk.EXPAND | gtk.FILL,
gtk.EXPAND | gtk.FILL, 5, 5)
label.show()
self.run_label = gtk.Label("N/A")
table.attach(self.run_label, 1, 2, 1, 2, gtk.EXPAND | gtk.FILL,