auto_chaos.utility_system
🛠️ Utility system 🛠️
1""" 2🛠️ 3Utility system 4🛠️ 5""" 6import os 7import requests 8 9from auto_chaos.base_system import BaseSystem 10 11 12class UtilitySystem(BaseSystem): 13 """ 14 Utility system 15 """ 16 17 def __init__(self): 18 """ 19 Init 20 """ 21 self.availability_route = os.getenv("AVAILABILITY_ROUTE") 22 super().__init__() 23 24 def availability_request(self, args: list[str] = None): 25 """ 26 Test availability route 27 28 Args: 29 args (list[str], optional): List of arguments to use. Defaults to None. 30 """ 31 response = requests.get(self.availability_route).status_code 32 self.results.append(response)
13class UtilitySystem(BaseSystem): 14 """ 15 Utility system 16 """ 17 18 def __init__(self): 19 """ 20 Init 21 """ 22 self.availability_route = os.getenv("AVAILABILITY_ROUTE") 23 super().__init__() 24 25 def availability_request(self, args: list[str] = None): 26 """ 27 Test availability route 28 29 Args: 30 args (list[str], optional): List of arguments to use. Defaults to None. 31 """ 32 response = requests.get(self.availability_route).status_code 33 self.results.append(response)
Utility system
UtilitySystem()
18 def __init__(self): 19 """ 20 Init 21 """ 22 self.availability_route = os.getenv("AVAILABILITY_ROUTE") 23 super().__init__()
Init
def
availability_request(self, args: list[str] = None):
25 def availability_request(self, args: list[str] = None): 26 """ 27 Test availability route 28 29 Args: 30 args (list[str], optional): List of arguments to use. Defaults to None. 31 """ 32 response = requests.get(self.availability_route).status_code 33 self.results.append(response)
Test availability route
Arguments:
- args (list[str], optional): List of arguments to use. Defaults to None.