Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Environment:
- """
- A wrapper object for the test environment.
- """
- def __init__(self, ip, browser, user='root', password='chr0n0s', radius_ip = "", tftp_ip = "", dhcp_ip = "", snmp_ip=""):
- self.ip = ip
- self.browser = browser
- self.user = user
- self.password = password
- # Empty IPs mean test suite will have to provision VMs as required.
- # You may nominate an IP if you have you own test machine.
- # Only IPs are required. Username and port is assumed.
- # TODO: make these services a list e.g. radius_ips = [ ]
- if self.radius_ip == "":
- # provision radius vm
- def get_radius_ip:
- return somehow radius ip
- .... and the same for other ips
- ###############################
- in class TestUserAuthentication
- in __init__
- self.environment.radius_ip = env.get_radius_ip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement