The tests now cover 100% of all source files with the exception of the call.js and common.js source files.
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
require('../test_utils.js')()
 | 
						|
 | 
						|
describe("Start/Stop Commands", function() {
 | 
						|
    before(startMaxScale)
 | 
						|
 | 
						|
    it('stop service', function() {
 | 
						|
        return verifyCommand('stop service Read-Connection-Router', 'services/Read-Connection-Router')
 | 
						|
            .then(function(res) {
 | 
						|
                res.data.attributes.state.should.equal("Stopped")
 | 
						|
            })
 | 
						|
    })
 | 
						|
 | 
						|
    it('start service', function() {
 | 
						|
        return verifyCommand('start service Read-Connection-Router', 'services/Read-Connection-Router')
 | 
						|
            .then(function(res) {
 | 
						|
                res.data.attributes.state.should.equal("Started")
 | 
						|
            })
 | 
						|
    })
 | 
						|
 | 
						|
    it('stop monitor', function() {
 | 
						|
        return verifyCommand('stop monitor MySQL-Monitor', 'monitors/MySQL-Monitor')
 | 
						|
            .then(function(res) {
 | 
						|
                res.data.attributes.state.should.equal("Stopped")
 | 
						|
            })
 | 
						|
    })
 | 
						|
 | 
						|
    it('start monitor', function() {
 | 
						|
        return verifyCommand('start monitor MySQL-Monitor', 'monitors/MySQL-Monitor')
 | 
						|
            .then(function(res) {
 | 
						|
                res.data.attributes.state.should.equal("Running")
 | 
						|
            })
 | 
						|
    })
 | 
						|
 | 
						|
    after(stopMaxScale)
 | 
						|
});
 |