Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. class Environment:
  2. """
  3. A wrapper object for the test environment.
  4. """
  5. def __init__(self, ip, browser, user='root', password='chr0n0s', radius_ip = "", tftp_ip = "", dhcp_ip = "", snmp_ip=""):
  6. self.ip = ip
  7. self.browser = browser
  8. self.user = user
  9. self.password = password
  10.  
  11. # Empty IPs mean test suite will have to provision VMs as required.
  12. # You may nominate an IP if you have you own test machine.
  13. # Only IPs are required. Username and port is assumed.
  14. # TODO: make these services a list e.g. radius_ips = [ ]
  15. if self.radius_ip == "":
  16. # provision radius vm
  17. def get_radius_ip:
  18. return somehow radius ip
  19.  
  20. .... and the same for other ips
  21.  
  22.  
  23.  
  24.  
  25.  
  26. ###############################
  27. in class TestUserAuthentication
  28.  
  29.  
  30. in __init__
  31. self.environment.radius_ip = env.get_radius_ip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement