aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/scenario/basic_cps.py
blob: 13a3d379c5c98b6d75d9e3675f2190b92874a7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
"""Basic CPS test case."""
from onaptests.scenario.scenario_base import ScenarioBase
from onaptests.steps.onboard.cps import CreateCpsAnchorNodeStep


class BasicCps(ScenarioBase):
    """Create CPS resources:
            - dataspace
            - schemaset
            - anchor
        And create a node. Use bookstore YANG model (available on CPS repository
        https://github.com/onap/cps/blob/master/cps-service/src/test/resources/bookstore.yang).
        At the end delete what's available to be deleted.

    """

    def __init__(self, **kwargs):
        """Init Basic CPS."""
        super().__init__('basic_cps', **kwargs)
        self.test = CreateCpsAnchorNodeStep()