Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@brocan/build-inject

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brocan/build-inject

Allows the injection of manually created builds to ease the testing of Brocan.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

BuildInject

Can be used to test Bond and Bolt. Reads JSON input from the console and pushes it into the Faktory queue and replies with appropriate build metadata.

Using BuildInject, only a Bond instance, a Faktory queue and NATS are needed for testing.

Running BuildInject

BuildInject can be started using the npm start command. Once it's started up, single-line JSON objects can be entered. For example:

{ "buildId": "id", "commitHash": "28071010f8c55007c6753c5bcbbcc8e6a481edf2", "repoUri": "https://github.com/battila7/brocan-example" }

BI will push id into the Faktory queue and will respond to metada queries having buildId equal to id with the metadata specified in the JSON.

Environment Dependencies

  • Faktory
  • NATS (Hemera)

Expected configuration and environment variables

Please see the schema in src/config.js for documentation and default values.

Communication

Inbound

NATS

Build metadata query
  • Topic: build
  • Role: query
  • Type: req/repl
  • Payload: A single buildId field is expected.
  • Description: Returns metadata (git repository URI, branch name) about the build with the specified buildId.

Outbound

Faktory

Pushes buildIds with build jobtype to the default queue.

FAQs

Package last updated on 11 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts