Esempio n. 1
0
def setup(context):
    """
    :type context: behave.runner.Context
    """
    cf = cloudfoundry.CloudFoundry(context)
    # remove previous app
    app = 'cloud'
    cf.delete_app(app)
Esempio n. 2
0
def setup(context):
    """
    :type context: behave.runner.Context
    """
    cf = cloudfoundry.CloudFoundry(context)
    # remove previous app
    app = 'actuator'
    cf.delete_app(app)
    # create service
    service = 'p.mysql'
    plan = 'db-small'
    instance = 'myMySqlService'
    cf.create_service(service, plan, instance)
Esempio n. 3
0
def setup(context):
    """
    :type context: behave.runner.Context
    """
    cf = cloudfoundry.CloudFoundry(context)
    # remove previous app
    app = 'redis-connector'
    cf.delete_app(app)
    # create service
    service = 'p-redis'
    plan = 'shared-vm'
    instance = 'myRedisService'
    cf.create_service(service, plan, instance)
def setup(context):
    """
    :type context: behave.runner.Context
    """
    cf = cloudfoundry.CloudFoundry(context)
    # remove previous app
    app = 'rabbitmq-connector'
    cf.delete_app(app)
    # create service
    service = 'p-rabbitmq'
    plan = 'standard'
    instance = 'myRabbitMQService'
    cf.create_service(service, plan, instance)
Esempio n. 5
0
def setup(context):
    """
    :type context: behave.runner.Context
    """
    cf = cloudfoundry.CloudFoundry(context)
    # remove previous app
    app = 'foo'
    cf.delete_app(app)
    # create service
    service = 'p-config-server'
    plan = 'standard'
    instance = 'myConfigServer'
    args = ['-c', './config-server.json']
    cf.create_service(service, plan, instance, args)
Esempio n. 6
0
def setup(context):
    """
    :type context: behave.runner.Context
    """
    cf = cloudfoundry.CloudFoundry(context)
    # remove previous app
    app = 'postgresefcore-connector'
    cf.delete_app(app)
    # create service
    service = 'postgresql-10-odb'
    plan = 'standalone'
    instance = 'myPostgres'
    args = [
        '-c',
        '\'{"db_name":"postgresample", "db_username":"******", "owner_name":"Steeltoe Demo", "owner_email":"*****@*****.**"}\''
    ]
    cf.create_service(service, plan, instance, args)