HummingBird Automated Tests


Test Module 
Input 
Output 

1 
m: 

ToolIMain.printInstruct 

i:  No options 
o:  The output to stderr is the instructions for the program 

2 
m: 

ToolIMain.ParseParameters

i:  Unknown Options
o:  Unknown option error, parse error. The output to stderr is the instructions for the program 

3 
m: 

ToolIMain.ValidateParameters1

i:  Not all required parameters
o:  Required Fields not filled, validate error The output to stderr is the instructions for the program 

4 
m: 

ToolIMain.ValidateParameters2 

i:  Invalid date/time
o:  Date or Time not correct format, validate error The output to stderr is the instructions for the program 

5 
m: 

ToolIMain.SendToHummer1 

i:  Correct message to hummer
o:  Receive message at hummer port of the correct format

6 
m: 

ToolIMain.SendToHummer2 

i:  Correct message to hummer, no hummer to recieve connection
o:  "Failed to connect to %s", hostname

7 
m: 

ToolIMain.SendToHummer3 

i:  Correct Params
o:  gethostname error (How?)

8 
m: 

ToolIMain.SendToHummer4 

i:  Correct Params
o:  OutMessage: Correct Format (Duplicate ToolIMain.SendToHummer1) 


9 
m: 

TrustCon.AddTrust

i:  Valid trust object
o:  Printout trust Object contents 

10 
m: 

TrustCon.SetDefaultTrust 

i:  Valid trust level
o:  Printout trust level default 

11 
m: 

TrustCon.GetTrust1 

i:  HostIP in Trustlist as range
o:  Trust in list range 

12 
m: 

TrustCon.GetTrust2

i:  HostIP not in Trust list
o:  Default trust 

13 
m: 

TrustCon.GetTrust3 

i:  HostIP explicitly in trust list
o:  Trust in list 


14 
m: 

ConvertIP 

i:  IP address in numeric form
o:  new form of IP Address 


15 
m: 

Print_Error 

i:  error message, and program name
o:  message in correct format 


16 
m: 

MessageFilterCon.Match1

i:  string, matching regex
o:  string matches 

17 
m: 

MessageFilterCon.Match2 

i:  string, not matching regex
o:  string does not match 

18 
m: 

MessageFilterCon.AddFilter

i:  A valid message filter
o:  print out message filter 

19 
m: 
MessageFilterCon.MatchExp1 
i:  message that matches one filter
o:  message filter list returns the filter 

20 
m: 
MessageFilterCon.MatchExp2 
i:  message that matches multiple filters
o:  message filter lists returns the filters 

21 
m: 
MessageFilterCon.MatchExp3
i:  message that doesn't match any filters
o:  Message filter lists returns null 


22 
m: 
Socket, ServerSocket, OutSocket 
i:  connect and send message to server wait for and message
o:  messages match on both sides of socket 


23 
m: 
Server1 
i:  Server starts
o:  Server reads all config info from DB, Server is listening on its port 

24 
m: 
Server2 
i:  Send HUP to server
o:  Server rereads all config info from DB 

25 
m: 
Server3 
i:  Send INT to Server
o:  server dies 

26 
m: 
Server4 
i:  Send message to server with ToolI w/o filter
o:  Message passes into not filters 

27 
m: 
Server5 
i:  Send message with date filter
o:  message passes into correct filters 

28 
m: 
Server6 
i:  Send message with time filter
o:  message passes into correct filters 

29 
m: 
Server7 
i:  Send message with trust filter
o:  message passes into correct filters 

30 
m: 
Server8 
i:  Send message with accept list filter
o:  message passes into correct filters 

31 
m: 
Server9 
i:  send message to alert console filter
o:  message sent to correct port 

32 
m: 
Server10 
i:  send message to log to DB filter
o:  message inserted into log DB 

33 
m: 
Server11 
i:  send message to filter to forward to another host
o:  message sent to other host 


34 
m: 
MessageHandler.makedate 
i:  date in yyyymmdd format
o:  date in mm-dd-yyyy format 

35 
m: 
MessageHandler.maketime 
i:  time in hhmmss format
o:  time in hh:mm:ss format 

36 
m: 
MessageHandler.LoadMessageFilters 
i:  filters load from DB
o:  print out loaded filters match input 

37 
m: 
MessageHandle.LoadTrust 
i:  trusts load from DB
o:  print out loaded trusts match input 

38 
m: 
Messagehandler.HandleMessage 
i:  message, hostip
o:  debug statements that message was handled correctly (similar, same tests, as Server) 

39 
m: 
MessageHandler.ReportError 
i:  error message
o:  error message enters Hummer 

40 
m: 
MessageHandler.GetManager 
i:  Manager from DB
o:  Manager matches DB entry 

41 
m: 
MessageHandler.GetSubord
i:  Subord from DB
o:  subord matches DB entries 

Jamie Marconi

Last modified: Mon Feb 2 20:06:01 PST 1998