{"_id":"@brocan/build-inject","_rev":"2-f29a13ed69c1016b2e2b09a9c9146f88","name":"@brocan/build-inject","description":"Allows the injection of manually created builds to ease the testing of Brocan.","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@brocan/build-inject","version":"1.0.0","description":"Allows the injection of manually created builds to ease the testing of Brocan.","main":"src/index.js","repository":{"url":"https://github.com/battila7/brocan/tree/master/doubles/build-inject","type":"git"},"scripts":{"start":"node src/index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Attila Bagossy"},"license":"MIT","dependencies":{"convict":"^4.0.1","faktory-client":"^0.2.2","nats":"^0.7.24","nats-hemera":"^2.3.2"},"_id":"@brocan/build-inject@1.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"battila7","email":"bagossyattila@outlook.com"},"dist":{"integrity":"sha512-YfXS9Z+KP9VadyPqO7L/zsFkiwA3ND2EgqmSxmIjSqWtO14lmD8cb7dz0fEUS8m0VLj1t+rZcAkLrgu1gtkpag==","shasum":"326ab44e6e1a5dc6eb38968a35f99854c292246b","tarball":"https://registry.npmjs.org/@brocan/build-inject/-/build-inject-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFwvfiHn8cnZRX805GcEHrfZGnRUZfQG/hJdNCYefCkXAiBJbFGBQB1/OSNZLCZczBEmCNbTDPMwLmhfkkqGAy+OKw=="}]},"maintainers":[{"name":"battila7","email":"bagossyattila@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/build-inject-1.0.0.tgz_1509839014483_0.42347068479284644"}},"1.0.1":{"name":"@brocan/build-inject","version":"1.0.1","description":"Allows the injection of manually created builds to ease the testing of Brocan.","main":"src/index.js","repository":{"url":"https://github.com/battila7/brocan/tree/master/components/doubles/build-inject","type":"git"},"scripts":{"start":"node src/index.js","test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"Attila Bagossy"},"license":"MIT","dependencies":{"convict":"^4.0.1","faktory-client":"^0.2.2","nats":"^0.7.24","nats-hemera":"^2.3.2"},"_id":"@brocan/build-inject@1.0.1","_npmVersion":"5.4.2","_nodeVersion":"8.8.1","_npmUser":{"name":"battila7","email":"bagossyattila@outlook.com"},"dist":{"integrity":"sha512-jl4le+mOywt6IsapIVo4rwxAtD4qDHS8Q1xvs1GoBBefyszg0LxrtUUPKFkUEmDNjbrT1bN3xSziRRPuAKNj1Q==","shasum":"8095ef476232553bd1a03048c7ee0004e3ae7ead","tarball":"https://registry.npmjs.org/@brocan/build-inject/-/build-inject-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4RRMQxN4H93I5rJFUHIPXjH8VMbqPOT724ygwUKhgwAIgVdzjlqYah1ojT8od3whmHf+O4pTJC3xSNdQPYj3ehE4="}]},"maintainers":[{"name":"battila7","email":"bagossyattila@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/build-inject-1.0.1.tgz_1510425133970_0.7016758148092777"}}},"readme":"# BuildInject\r\n\r\nCan 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.\r\n\r\nUsing BuildInject, only a Bond instance, a Faktory queue and NATS are needed for testing.\r\n\r\n## Running BuildInject\r\n\r\nBuildInject can be started using the `npm start` command. Once it's started up, single-line JSON objects can be entered. For example:\r\n\r\n~~~~JSON\r\n{ \"buildId\": \"id\", \"commitHash\": \"28071010f8c55007c6753c5bcbbcc8e6a481edf2\", \"repoUri\": \"https://github.com/battila7/brocan-example\" }\r\n~~~~\r\n\r\nBI 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.\r\n\r\n## Environment Dependencies\r\n\r\n  * Faktory\r\n  * NATS (Hemera)\r\n\r\n## Expected configuration and environment variables\r\n\r\nPlease see the schema in [src/config.js](src/config.js) for documentation and default values.\r\n\r\n## Communication\r\n\r\n### Inbound\r\n\r\n#### NATS\r\n\r\n##### Build metadata query\r\n\r\n  * **Topic**: `build`\r\n  * **Role**: `query`\r\n  * **Type**: `req/repl`\r\n  * **Payload**: A single `buildId` field is expected.\r\n  * **Description**: Returns metadata (git repository URI, branch name) about the build with the specified `buildId`.\r\n\r\n### Outbound\r\n\r\n#### Faktory\r\n\r\nPushes `buildId`s with `build` jobtype to the `default` queue.\r\n","maintainers":[{"name":"battila7","email":"bagossyattila@outlook.com"}],"time":{"modified":"2022-04-04T20:44:31.609Z","created":"2017-11-04T23:43:34.542Z","1.0.0":"2017-11-04T23:43:34.542Z","1.0.1":"2017-11-11T18:32:14.960Z"},"repository":{"url":"https://github.com/battila7/brocan/tree/master/components/doubles/build-inject","type":"git"},"author":{"name":"Attila Bagossy"},"license":"MIT","readmeFilename":"README.md"}