Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Not a complete list


We need some discovery mechanism for Test flags & sync templates with Go. 


Project - represents Project

       CreateProject(withName(name)) - Creates the project with the name "Name"

GlobalConfig - represents Environment config - also using params from command line

       GetCurrent - get the current environment name

...

    - Includes EdgeNode[]   

    - Includes Asserts[]

   

       WaitforAsserts( timeout) - w8 for some time. Fail on single AssertFail or all AssertSuccess

Controller -represents Controller (either ADAM or ZController) 

...

   - SetNetwork - creates a Network for AppInstance  


State - global state

observe() - starts monitoring

getState() 


State - something that we get from metric/Info and update

EdgeNode1.getState.lastreboot 

reboot - do polling of State


Struct - look into Proto.info - ZinfoMessage - UNION of Records that we save in memory 

StreamProcessor - reads stream from Info/Log/Metrics

CreateProcessor(func) 

   func - processes single log. Returns true if found something. false if not found

.Success

.Fail

Fail or Succcess  - rely on Go infrastructure


/* Asserts - used for getting status - waiting for some action and return 

 AssertSuccess createAssertSuccess (EdgeNodeAssertType, ObjectName,  AssertFunction)  -w8 and return AssertFail (creates Assert for Success. 

createAssertFail (AssertType, ObjectNameEdgeNode, AssertFunction)  - w8 and Fail if found creates Assert for Fail


AssertFunctions

Gets Value and checks whether this Value is what is expected.

createAssertSuccess(Checkreboot(EdgeNode1, 1, controller))

createAssertFail(Checkreboot(EdgeNode1, 5, controller))


*/