python to java converter online
class TestFirewallRules(unittest.TestCase):
""" Test class to call Firewall Access Rules API functions """
def setUp(self):
if not os.path.exists(configFile):
raise unittest.SkipTest(
'External configuration not available, skipping...')
self.crn = os.getenv("CRN")
self.zone_id = os.getenv("ZONE_ID")
self.endpoint = os.getenv("API_ENDPOINT")
self.x_auth_user_token = os.getenv("CIS_SERVICES_APIKEY")
self.rule = FirewallRulesV1.new_instance(service_name='cis_services')
self.service = FiltersV1.new_instance(
service_name="cis_services")
self.service.set_service_url(self.endpoint)
self.rule.set_service_url(self.endpoint)
self._clean_firewall_rules()
self._clean_filters()