Coder Social home page Coder Social logo

kanekoh / machete Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry/machete

0.0 2.0 0.0 363 KB

Cloud Foundry library for maintaining on-premises buildpacks

Home Page: http://docs.cloudfoundry.org/buildpacks/

License: Apache License 2.0

Ruby 97.12% Shell 2.88%

machete's Introduction

Machete

Machete is the CF buildpack test framework.

Prerequisites

Cloud Foundry

The tests require a running instance of Cloud Foundry. By default, it will try to find an instance at the local IP 10.244.0.34. You can specify an alternative Cloud Foundry instance with the --host argument.

We run our tests with a local bosh-lite deployment. See the github repo for more instructions.

These tests assume an org named pivotal and a space named integration exist. Use these commands to create them:

cf create-org pivotal
cf create-space integration -o pivotal

Usage

  1. Navigate to the buildpack that you want to test (e.g., Ruby Buildpack)
  2. Update submodules:
git  submodule update --init
  1. From your buildpack's directory, run the buildpack-build script.
bundle exec buildpack-build

Buildpack Modes:

  • uncached: Buildpack dependencies will be fetched from the internet when staging an app.
  • cached : Buildpack dependencies will be downloaded and bundled with the buildpack before uploading it to Cloud Foundry.

If you only want to run your tests with one mode, you can use the bundle exec buildpack-build [ cached | uncached ] script instead.

Logging

Errors in the Machete library log to STDOUT by default. You can change Machete's default log:

  Machete.logger = Machete::Logger.new("log/integration.log")

Running Test Suite

To run the unit test suite, run the following from the base machete directory:

$ rspec

To run the integration test, run the following from the internet_traffic_test directory:

$ cf_exec buildpack-build

Notes

RVM Version

You may encounter a silent early exit for scripts cached-build and uncached-build. This is an issue with RVM running inside a bash script with set -e.

Ensure you have the latest stable version of RVM

$ rvm --version # At least version 1.25.22

machete's People

Contributors

buddhistpirate avatar cf-buildpacks-eng avatar crawsible avatar davidjahn avatar dgodd avatar geramirez avatar glide1 avatar idoru avatar jchesterpivotal avatar jtarchie avatar jvshahid avatar krujos avatar mhoran avatar rochesterinnyc avatar sesmith177 avatar squeedee avatar styeung avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.