Beispiel #1
0
import sys
import yaml
from http.client import HTTPConnection
from typing import List

from plumbum import local
from plumbum.path.local import LocalPath

from acceptance.common.base import CmdBase, TestBase, TestState, set_name
from acceptance.common.log import LogExec, init_log
from acceptance.common.scion import sciond_addr, SCIONDocker
from acceptance.common.tools import DC
from python.lib.scion_addr import ISD_AS


set_name(__file__)
logger = logging.getLogger(__name__)


class Test(TestBase):
    """
    Test that in a topology with multiple ASes, every AS is capable of
    requesting renewed certificates. The test verifies that each AS has loaded
    the renewed certificate.

    The test is split into multiple steps:
      0. Before starting the topology, remove the client certificate for 112 in the CA CS.
      1. Start the topology.
      2. Restore the client certificate for 112 and wait for it to be picked up by the CA CS.
      3. For each AS in the topology, create a new private key and request
         certificate chain renewal. The renewed chain is verified against the
Beispiel #2
0
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import logging
import time

import plumbum
from plumbum import cmd

from acceptance.common import base
from acceptance.common import log
from acceptance.common import tools
from acceptance.common import scion

base.set_name(__file__)
logger = logging.getLogger(__name__)


class Test(base.TestBase):
    """
    Tests that IP pinging between SIGs works.
    """
    sig_acceptance = plumbum.cli.SwitchAttr(
        "sig_acceptance",
        str,
        default="./bin/sig_ping_acceptance",
        help="The sig_ping_acceptance binary" +
        " (default: ./bin/sig_ping_acceptance)")

    def main(self):