Add future and metaclass boilerplate to test code.
Continue to ignore: - test/integration/ - test/legacy/ - test/units/
This commit is contained in:
parent
f98a4ef2f7
commit
3f2b766d10
106 changed files with 220 additions and 100 deletions
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# PYTHON_ARGCOMPLETE_OK
|
# PYTHON_ARGCOMPLETE_OK
|
||||||
"""Legacy entry point for ansible-test. The preferred version is in the bin directory."""
|
"""Legacy entry point for ansible-test. The preferred version is in the bin directory."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import lib.cli
|
import lib.cli
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Provides an entry point for python scripts and python modules on the controller with the current python interpreter and optional code coverage collection."""
|
"""Provides an entry point for python scripts and python modules on the controller with the current python interpreter and optional code coverage collection."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
"""Support code for Ansible testing infrastructure."""
|
"""Support code for Ansible testing infrastructure."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Miscellaneous utility functions and classes specific to ansible cli tools."""
|
"""Miscellaneous utility functions and classes specific to ansible cli tools."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Cache for commonly shared data that is intended to be immutable."""
|
"""Cache for commonly shared data that is intended to be immutable."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
|
|
||||||
class CommonCache(object):
|
class CommonCache(object):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Detect changes in Ansible code."""
|
"""Detect changes in Ansible code."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Classify changes in Ansible code."""
|
"""Classify changes in Ansible code."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Test runner for all Ansible tests."""
|
"""Test runner for all Ansible tests."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Plugin system for cloud providers and environments for use in integration tests."""
|
"""Plugin system for cloud providers and environments for use in integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
import atexit
|
import atexit
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""ACME plugin for integration tests."""
|
"""ACME plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""AWS plugin for integration tests."""
|
"""AWS plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Azure plugin for integration tests."""
|
"""Azure plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
|
||||||
"""Cloudscale plugin for integration tests."""
|
"""Cloudscale plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
from os.path import isfile
|
from os.path import isfile
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""CloudStack plugin for integration tests."""
|
"""CloudStack plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Foreman plugin for integration tests."""
|
"""Foreman plugin for integration tests."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
# Copyright: (c) 2018, Google Inc.
|
# Copyright: (c) 2018, Google Inc.
|
||||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
"""GCP plugin for integration tests."""
|
"""GCP plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Hetzner Cloud plugin for integration tests."""
|
"""Hetzner Cloud plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""NIOS plugin for integration tests."""
|
"""NIOS plugin for integration tests."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
"""OpenNebula plugin for integration tests."""
|
"""OpenNebula plugin for integration tests."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
from lib.cloud import (
|
from lib.cloud import (
|
||||||
CloudProvider,
|
CloudProvider,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""OpenShift plugin for integration tests."""
|
"""OpenShift plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Scaleway plugin for integration tests."""
|
"""Scaleway plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Tower plugin for integration tests."""
|
"""Tower plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""VMware vCenter plugin for integration tests."""
|
"""VMware vCenter plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Vultr plugin for integration tests."""
|
"""Vultr plugin for integration tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Configuration classes."""
|
"""Configuration classes."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
"""Constants used by ansible-test. Imports should not be used in this file."""
|
"""Constants used by ansible-test. Imports should not be used in this file."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
# Setting a low soft RLIMIT_NOFILE value will improve the performance of subprocess.Popen on Python 2.x when close_fds=True.
|
# Setting a low soft RLIMIT_NOFILE value will improve the performance of subprocess.Popen on Python 2.x when close_fds=True.
|
||||||
# This will affect all Python subprocesses. It will also affect the current Python process if set before subprocess is imported for the first time.
|
# This will affect all Python subprocesses. It will also affect the current Python process if set before subprocess is imported for the first time.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Access Ansible Core CI remote services."""
|
"""Access Ansible Core CI remote services."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Code coverage utilities."""
|
"""Code coverage utilities."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Analyze C# import statements."""
|
"""Analyze C# import statements."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Delegate test execution to another environment."""
|
"""Delegate test execution to another environment."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Diff parsing functions and classes."""
|
"""Diff parsing functions and classes."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Functions for accessing docker via the docker cli."""
|
"""Functions for accessing docker via the docker cli."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Show information about the test environment."""
|
"""Show information about the test environment."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Execute Ansible tests."""
|
"""Execute Ansible tests."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Wrapper around git command-line tools."""
|
"""Wrapper around git command-line tools."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import lib.types as t
|
import lib.types as t
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
Primitive replacement for requests to avoid extra dependency.
|
Primitive replacement for requests to avoid extra dependency.
|
||||||
Avoids use of urllib2 due to lack of SNI support.
|
Avoids use of urllib2 due to lack of SNI support.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Analyze python import statements."""
|
"""Analyze python import statements."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
"""Early initialization for ansible-test before most other imports have been performed."""
|
"""Early initialization for ansible-test before most other imports have been performed."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import resource
|
import resource
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Ansible integration test infrastructure."""
|
"""Ansible integration test infrastructure."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Access Ansible Core CI remote services."""
|
"""Access Ansible Core CI remote services."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Test metadata for passing data to delegated tests."""
|
"""Test metadata for passing data to delegated tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Analyze powershell import statements."""
|
"""Analyze powershell import statements."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Python native TGZ creation."""
|
"""Python native TGZ creation."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
import tarfile
|
import tarfile
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Execute Ansible sanity tests."""
|
"""Execute Ansible sanity tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
import glob
|
import glob
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test for ansible-doc."""
|
"""Sanity test for ansible-doc."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test for proper python syntax."""
|
"""Sanity test for proper python syntax."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test for proper import exception handling."""
|
"""Sanity test for proper import exception handling."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test to check integration test aliases."""
|
"""Sanity test to check integration test aliases."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import textwrap
|
import textwrap
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test for PEP 8 style guidelines using pycodestyle."""
|
"""Sanity test for PEP 8 style guidelines using pycodestyle."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test using PSScriptAnalyzer."""
|
"""Sanity test using PSScriptAnalyzer."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test using pylint."""
|
"""Sanity test using pylint."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import itertools
|
import itertools
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test using rstcheck."""
|
"""Sanity test using rstcheck."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test for documentation of sanity tests."""
|
"""Sanity test for documentation of sanity tests."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test using shellcheck."""
|
"""Sanity test using shellcheck."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test using validate-modules."""
|
"""Sanity test using validate-modules."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Sanity test using yamllint."""
|
"""Sanity test using yamllint."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Test target identification, iteration and inclusion/exclusion."""
|
"""Test target identification, iteration and inclusion/exclusion."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Classes for storing and processing test results."""
|
"""Classes for storing and processing test results."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Python threading tools."""
|
"""Python threading tools."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Miscellaneous utility functions and classes."""
|
"""Miscellaneous utility functions and classes."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import errno
|
import errno
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
"""Common utility code that depends on CommonConfig."""
|
"""Common utility code that depends on CommonConfig."""
|
||||||
from __future__ import absolute_import, print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import atexit
|
import atexit
|
||||||
import contextlib
|
import contextlib
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# PYTHON_ARGCOMPLETE_OK
|
# PYTHON_ARGCOMPLETE_OK
|
||||||
"""Automatically retry failed commands."""
|
"""Automatically retry failed commands."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
# noinspection PyCompatibility
|
# noinspection PyCompatibility
|
||||||
import argparse
|
import argparse
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# PYTHON_ARGCOMPLETE_OK
|
# PYTHON_ARGCOMPLETE_OK
|
||||||
"""Verify the current Shippable run has the required number of jobs."""
|
"""Verify the current Shippable run has the required number of jobs."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
# noinspection PyCompatibility
|
# noinspection PyCompatibility
|
||||||
import argparse
|
import argparse
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
"""Tests for diff module."""
|
"""Tests for diff module."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Show python and pip versions."""
|
"""Show python and pip versions."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Show python and pip versions."""
|
"""Show python and pip versions."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Test to verify action plugins have an associated module to provide documentation."""
|
"""Test to verify action plugins have an associated module to provide documentation."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Make sure the Azure requirements files match."""
|
"""Make sure the Azure requirements files match."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import filecmp
|
import filecmp
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Make sure the data in BOTMETA.yml is valid"""
|
"""Make sure the data in BOTMETA.yml is valid"""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -20,7 +22,9 @@ def main():
|
||||||
'contrib/vault/',
|
'contrib/vault/',
|
||||||
'docs/',
|
'docs/',
|
||||||
'examples/',
|
'examples/',
|
||||||
'test/',
|
'test/integration/',
|
||||||
|
'test/legacy/',
|
||||||
|
'test/units/',
|
||||||
)
|
)
|
||||||
|
|
||||||
# These files pre-date the boilerplate test and should be fixed up as time goes on
|
# These files pre-date the boilerplate test and should be fixed up as time goes on
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -18,7 +20,9 @@ def main():
|
||||||
'contrib/vault/',
|
'contrib/vault/',
|
||||||
'docs/',
|
'docs/',
|
||||||
'examples/',
|
'examples/',
|
||||||
'test/'
|
'test/integration/',
|
||||||
|
'test/legacy/',
|
||||||
|
'test/units/',
|
||||||
)
|
)
|
||||||
|
|
||||||
grandfathered = frozenset((
|
grandfathered = frozenset((
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from __future__ import print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
# a script to check for illegal filenames on various Operating Systems. The
|
# a script to check for illegal filenames on various Operating Systems. The
|
||||||
# main rules are derived from restrictions on Windows
|
# main rules are derived from restrictions on Windows
|
||||||
# https://msdn.microsoft.com/en-us/library/aa365247#naming_conventions
|
# https://msdn.microsoft.com/en-us/library/aa365247#naming_conventions
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from __future__ import print_function
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Prevent unwanted files from being added to the source tree."""
|
"""Prevent unwanted files from being added to the source tree."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import stat
|
import stat
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Python syntax checker with lint friendly output."""
|
"""Python syntax checker with lint friendly output."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import parser
|
import parser
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
"""Import the given python module(s) and report error(s) encountered."""
|
"""Import the given python module(s) and report error(s) encountered."""
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import absolute_import, print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -15,5 +15,6 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
__version__ = '0.0.1b'
|
__version__ = '0.0.1b'
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
from __future__ import print_function
|
__metaclass__ = type
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
import argparse
|
import argparse
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import imp
|
import imp
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
# Copyright: (c) 2015, Matt Martz <matt@sivel.net>
|
# Copyright: (c) 2015, Matt Martz <matt@sivel.net>
|
||||||
# Copyright: (c) 2015, Rackspace US, Inc.
|
# Copyright: (c) 2015, Rackspace US, Inc.
|
||||||
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
__metaclass__ = type
|
||||||
|
|
||||||
import re
|
import re
|
||||||
from voluptuous import ALLOW_EXTRA, PREVENT_EXTRA, All, Any, Length, Invalid, Required, Schema, Self
|
from voluptuous import ALLOW_EXTRA, PREVENT_EXTRA, All, Any, Length, Invalid, Required, Schema, Self
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue