File: test/index.js

Recommend this page to a friend!
  Classes of Jason Gerfen   proginoskes   test/index.js   Download  
File: test/index.js
Role: Example script
Content type: text/plain
Description: Example script
Class: proginoskes
Monitor the logs of one or more remote servers
Author: By
Last change: Update of test/index.js
Date: 3 years ago
Size: 794 bytes
 

Contents

Class file image Download
/*! * proginoskes * Copyright(c) 2014-2015 Jason Gerfen <jason.gerfen@gmail.com> * License: MIT */ var cherubum = require('../') , fs = require('fs') , chai = require('chai') , should = chai.should() , expect = chai.expect; var options = { global: { port: 22, username: 'root', logs: [ '/var/log/audit/audit.log' ] }, hosts: [ { host: 'localhost', password: 'password', logs: [ '/var/log/ufw.log' ] } ] }; describe('proginoskes', function() { describe('connection', function() { it('check for stream object', function(done) { cherubum.proginoskes(options, function(err, stream) { should.not.exist(err); stream.should.be.a('object'); done(); }); }); }); });