예제 #1
0
##############################################################################
#
# Copyright 2016 KPMG Advisory N.V. (unless otherwise stated)
#
# Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
##############################################################################
import one_centos_dev
import knownami
import single_machine_cluster
import micro_cluster
import base

mods = [micro_cluster, single_machine_cluster, knownami, one_centos_dev]


modargs = {knownami: ['Centos6', 'Centos7', 'Redhat7']}

if __name__ == "__main__":
    base.parallel(mods, modargs)
예제 #2
0
##############################################################################
#
# Copyright 2016 KPMG Advisory N.V. (unless otherwise stated)
#
# Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
##############################################################################
import one_centos_dev
import centos7
import single_machine_cluster
import micro_cluster
import base

mods = [micro_cluster, single_machine_cluster, centos7, one_centos_dev]

if __name__ == "__main__":
    base.parallel(mods)
예제 #3
0
파일: all.py 프로젝트: shit0u/AmbariKave
# Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
##############################################################################
import clusters
import base
import glob
import os

mods = [clusters]


blueprints = glob.glob(os.path.dirname(__file__) + "/blueprints/*.blueprint.json")

disabled = ["everything", "bbdemo"]

blueprints = [b.split("/")[-1].split(".")[0] for b in blueprints]
blueprints = [b for b in blueprints if b not in disabled]

if __name__ == "__main__":
    base.parallel(mods, blueprints)
예제 #4
0
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
##############################################################################

import pyfilenames
import testversion
import license
import testpythonimport
import checkpep8
import pep8functions
import pep8variables
import installlibunits
import sys
import base
import __future__

if sys.version_info[0] < 3:
    print("The Python version is %s.%s.%s" % sys.version_info[:3])
    print("These tests require Python 3")
    sys.exit(1)

mods = [
    testversion, pep8functions, checkpep8, testpythonimport, installlibunits,
    pep8variables, license, pyfilenames
]

if __name__ == "__main__":
    base.parallel(mods)
예제 #5
0
blueprints = [b.split("/")[-1].split(".")[0] for b in blueprints]

all_services = [s for s, ds in base.find_services()]

blueprint_services = [b for b in blueprints if b in all_services]

blueprint_serviceargs = []
for service in blueprint_services:
    if service in checks:
        blueprint_serviceargs.append([service] + checks[service])
    else:
        blueprint_serviceargs.append(service)

blueprint_not_services = [b for b in blueprints if b not in blueprint_services]

blueprint_not_serviceargs = []
for service in blueprint_not_services:
    if service in checks:
        blueprint_not_serviceargs.append([service] + checks[service])
    else:
        blueprint_not_serviceargs.append(service)

modargs = {test_kavetoolbox_head: ['Centos6', 'Centos7', 'Ubuntu14'],
           remote_service_with_servicesh: serviceargs,
           remote_service_with_blueprint: blueprint_serviceargs,
           remote_blueprint: blueprint_not_serviceargs
           }

if __name__ == "__main__":
    base.parallel(mods, modargs)