Пример #1
0
 def get(self):
     alcphc = AsyncLCPHealthCheck(
         self.account_id,
         self.mac_algo,
         self.mac_key_identifier,
         self.mac_key)
     alcphc.check(self._on_alcphc_check_done)
    def get(self):

        use_real_lcp_account_id = re.match(
            "^(true|t|y|yes|1)$",
            self.get_argument("useRealLCPAccountId", "true"),
            re.IGNORECASE)

        alcphc = AsyncLCPHealthCheck(
            integration_tests.lcp_account_id if use_real_lcp_account_id else uuid.uuid4().hex,
            integration_tests.lcp_mac_algo,
            integration_tests.lcp_mac_key_identifier,
            integration_tests.lcp_mac_key)
        alcphc.check(self._on_check_done)