예제 #1
0
def undeploy(name, server_group):
    builder = OperationRequestBuilder()
    builder.deployment(name)
    builder.remove()
    remove_content = builder.build()

    builder = OperationRequestBuilder()
    builder.target(server_group)
    builder.undeploy()
    builder.deployment(name)
    undeploy_operation = builder.build()

    return [undeploy_operation, remove_content]
예제 #2
0
def test_remove_operation():
    builder = OperationRequestBuilder()
    builder.remove()
    request = builder.build()

    assert request == dict(operation='remove', address=[])
예제 #3
0
def remove(path):
    builder = OperationRequestBuilder()
    builder.address_from(path)
    builder.remove()
    return builder.build()