Ejemplo n.º 1
0
def given_space_created(_context):
    global spaceID
    spaceID = helpers.getSpaceID()
    spaceID | should_not.be_none().desc("Space ID")

    global lb
    lb = LaunchBooster()
Ejemplo n.º 2
0
def given_space_created(_context):
    global spaceID
    spaceID = helpers.getSpaceID()
    spaceID | should_not.be_none().desc("Space ID exists.")

    global ib
    ib = ImportBooster()
Ejemplo n.º 3
0
def then_workspace_created(_context):
    workspaceID = helpers.getWorkspaceID()
    try:
        workspaceID | should_not.be_none().desc(
            "Workspace is created. Workspace ID is set.")
    except AssertionError as e:
        helpers.gather_pod_logs(_context, "che")
        raise e
Ejemplo n.º 4
0
def when_send_manifest(context):

    sa = StackAnalyses()

    codebaseUrl = sa.getCodebaseUrl()
    stackAnalysesKey = sa.getReportKey(codebaseUrl)
    helpers.setStackReportKey(stackAnalysesKey)
    stackAnalysesKey | should_not.be_none().desc("Obtained Stack Analyses key")
    context.sa = sa
Ejemplo n.º 5
0
def then_receive_stack_json(context):
    stackAnalysesKey = helpers.getStackReportKey()
    reportText = context.sa.getStackReport(stackAnalysesKey)
    reportText | should_not.be_none().desc("Obtained Stack Analyses Report")
    reportText | should_not.contain_the_substring("error").desc(
        "Stack Analyses Report contains 'error'")
Ejemplo n.º 6
0
def then_receive_stack_json(context):
    stackAnalysesKey = helpers.getStackReportKey()
    reportText = context.sa.getStackReport(stackAnalysesKey)
    reportText | should_not.be_none().desc("Obtained Stack Analyses Report")
Ejemplo n.º 7
0
def given_space_created(_context):
    _context.spaceID = helpers.getSpaceID()
    _context.spaceID | should_not.be_none().desc("Space ID exists.")

    _context.ib = ImportBooster()
Ejemplo n.º 8
0
def then_space_created(_context):
    spaceID = helpers.getSpaceID()
    spaceID | should_not.be_none().desc("Space created. Space ID is set.")
Ejemplo n.º 9
0
def then_space_created(_context):
    spaceID = helpers.getSpaceID()
    spaceID | should_not.be_none().desc("Created space ID")