Platforms: Unix
Generates random internet domain names
Generate list of domains names
| Parameters: | count (int) – number of wanted domains |
|---|---|
| Returns: | [str] domains list |
Class InternetRule
All the operations related to internet rules
Contains the needed functuality for internet rules. By default they are randomly formed
| Parameters: |
|
|---|
Get all defined rules via UMCP
| Returns: | [str] list of rules names |
|---|
Assign internet rule via UMCP
| Parameters: |
|
|---|
check ucr for internet rule
Fetch the values from ucr and check if it matches the correct values for the rule
| Parameters: | expectedResult (bool) – |
|---|
Define internet rule via UMCP
Define list of random internet rules
| Parameters: | count (int) – number of wanted rules |
|---|---|
| Returns: | list of rule objects |
gets internet rule via UMCP
| Parameters: | expectedResult (bool) – True if the rule is expected to be found |
|---|
Modify internet rule via UMCP
with no args passed this only reset the rule properties
| Parameters: |
|
|---|
removes internet rule via UMCP
Platforms: Unix
Contains the needed functuality for checks related to internet rules within groups/classes.
param school: name of the ou type school: str param groupRuleCouples: couples of groups and rules assigned to them type groupRuleCouples: tuple(str,str) param umcConnection: type umcConnection: UMC connection object param ucr: type ucr: UCR object
Check if the assigned internet rules are correct UMCP
Check ucr variables for groups/ classes internet rules
Platforms: Unix
Contains the needed functuality for workgroups in an already created OU, By default they are randomly formed except the OU, should be provided
| Parameters: |
|
|---|
Creates object workgroup
create list of random workgroups returns list of groups objects
| Parameters: | count (int) – number of wanted workgroups |
|---|---|
| Returns: | [workgroup_object] |
Platforms: Unix
Contains the needed functuality for classes in an already created OU, By default they are randomly formed except the OU, should be provided
| Parameters: |
|
|---|
Creates object class
Create a list of classes inside the specific ou with random names and description
| Parameters: | count (int) – number of wanted classes |
|---|---|
| Returns: | [klasse_object] |
pycurl simple class implementation
| Parameters: |
|
|---|
Close the curl connection
Gets a http page this method keep trying to fetch the page for 60secs then stops raising and exception if not succeeded.
| Parameters: |
|
|---|---|
| Returns: | html page |
HTTP status code
| Returns: | int - http_status_code |
|---|
HTTP status code
| Parameters: | url (str) – url |
|---|---|
| Returns: | int - HTTP status code |