 c9f3d014d6
			
		
	
	c9f3d014d6
	
	
	
		
			
			The tests now cover 100% of all source files with the exception of the call.js and common.js source files.
		
			
				
	
	
		
			36 lines
		
	
	
		
			750 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			750 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| require('../test_utils.js')()
 | |
| 
 | |
| var tests = [
 | |
|     'list servers',
 | |
|     'list services',
 | |
|     'list listeners RW-Split-Router',
 | |
|     'list monitors',
 | |
|     'list sessions',
 | |
|     'list filters',
 | |
|     'list modules',
 | |
|     'list users',
 | |
|     'list commands',
 | |
|     'show server server1',
 | |
|     'show service RW-Split-Router',
 | |
|     'show monitor MySQL-Monitor',
 | |
|     'show session 5',
 | |
|     'show filter Hint',
 | |
|     'show module readwritesplit',
 | |
|     'show maxscale',
 | |
|     'show logging',
 | |
|     'show commands readwritesplit',
 | |
| ]
 | |
| 
 | |
| describe("Diagnostic Commands", function() {
 | |
|     before(startMaxScale)
 | |
| 
 | |
|     tests.forEach(function(i) {
 | |
|         it(i, function() {
 | |
|             return doCommand(i)
 | |
|                 .should.be.fulfilled
 | |
|         });
 | |
|     })
 | |
| 
 | |
|     after(stopMaxScale)
 | |
| });
 |