Ejemplo n.º 1
0
 def test_common_case_with_continuity(self):
     challbs = (acme_util.POP_P,
                acme_util.RECOVERY_CONTACT_P,
                acme_util.TLSSNI01_P,
                acme_util.HTTP01_P)
     prefs = [challenges.ProofOfPossession, challenges.TLSSNI01]
     combos = acme_util.gen_combos(challbs)
     self.assertEqual(self._call(challbs, prefs, combos), (0, 2))
Ejemplo n.º 2
0
    def test_common_case_with_continuity(self):
        challbs = (acme_util.POP_P, acme_util.RECOVERY_CONTACT_P,
                   acme_util.DVSNI_P, acme_util.HTTP01_P)
        prefs = [challenges.ProofOfPossession, challenges.DVSNI]
        combos = acme_util.gen_combos(challbs)
        self.assertEqual(self._call(challbs, prefs, combos), (0, 2))

        # dumb_path() trivial test
        self.assertTrue(self._call(challbs, prefs, None))
    def test_common_case_with_continuity(self):
        challbs = (acme_util.RECOVERY_TOKEN_P,
                   acme_util.RECOVERY_CONTACT_P,
                   acme_util.DVSNI_P,
                   acme_util.SIMPLE_HTTP_P)
        prefs = [challenges.RecoveryToken, challenges.DVSNI]
        combos = acme_util.gen_combos(challbs)
        self.assertEqual(self._call(challbs, prefs, combos), (0, 2))

         # dumb_path() trivial test
        self.assertTrue(self._call(challbs, prefs, None))
Ejemplo n.º 4
0
    def test_common_case_with_continuity(self):
        challbs = (acme_util.POP_P,
                   acme_util.RECOVERY_CONTACT_P,
                   acme_util.DVSNI_P,
                   acme_util.HTTP01_P)
        prefs = [challenges.ProofOfPossession, challenges.DVSNI]
        combos = acme_util.gen_combos(challbs)
        self.assertEqual(self._call(challbs, prefs, combos), (0, 2))

        # dumb_path() trivial test
        self.assertTrue(self._call(challbs, prefs, None))
    def test_common_case_with_continuity(self):
        challbs = (acme_util.RECOVERY_TOKEN_P,
                   acme_util.RECOVERY_CONTACT_P,
                   acme_util.DVSNI_P,
                   acme_util.SIMPLE_HTTPS_P)
        prefs = [challenges.RecoveryToken, challenges.DVSNI]
        combos = acme_util.gen_combos(challbs)
        self.assertEqual(self._call(challbs, prefs, combos), (0, 2))

         # dumb_path() trivial test
        self.assertTrue(self._call(challbs, prefs, None))
Ejemplo n.º 6
0
 def test_full_cont_server(self):
     challbs = (acme_util.RECOVERY_CONTACT_P,
                acme_util.POP_P,
                acme_util.TLSSNI01_P,
                acme_util.HTTP01_P,
                acme_util.DNS_P)
     # Typical webserver client that can do everything except DNS
     # Attempted to make the order realistic
     prefs = [challenges.ProofOfPossession,
              challenges.HTTP01,
              challenges.TLSSNI01,
              challenges.RecoveryContact]
     combos = acme_util.gen_combos(challbs)
     self.assertEqual(self._call(challbs, prefs, combos), (1, 3))
Ejemplo n.º 7
0
    def test_full_cont_server(self):
        challbs = (acme_util.RECOVERY_CONTACT_P, acme_util.POP_P,
                   acme_util.DVSNI_P, acme_util.HTTP01_P, acme_util.DNS_P)
        # Typical webserver client that can do everything except DNS
        # Attempted to make the order realistic
        prefs = [
            challenges.ProofOfPossession, challenges.HTTP01, challenges.DVSNI,
            challenges.RecoveryContact
        ]
        combos = acme_util.gen_combos(challbs)
        self.assertEqual(self._call(challbs, prefs, combos), (1, 3))

        # Dumb path trivial test
        self.assertTrue(self._call(challbs, prefs, None))
Ejemplo n.º 8
0
    def test_full_cont_server(self):
        challbs = (acme_util.RECOVERY_CONTACT_P,
                   acme_util.POP_P,
                   acme_util.DVSNI_P,
                   acme_util.SIMPLE_HTTP_P,
                   acme_util.DNS_P)
        # Typical webserver client that can do everything except DNS
        # Attempted to make the order realistic
        prefs = [challenges.ProofOfPossession,
                 challenges.SimpleHTTP,
                 challenges.DVSNI,
                 challenges.RecoveryContact]
        combos = acme_util.gen_combos(challbs)
        self.assertEqual(self._call(challbs, prefs, combos), (1, 3))

        # Dumb path trivial test
        self.assertTrue(self._call(challbs, prefs, None))