aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@t-mobile.pl>2023-05-18 11:49:13 +0000
committerGerrit Code Review <gerrit@onap.org>2023-05-18 11:49:13 +0000
commitf8a9dce09d2a7f6755a04dfc03d248c2dcb173e4 (patch)
treed50484f69d76b32b68a796b652398568e71bbd2e /src
parent4e195b998ba92878aa28b82fb279a10393b4d3db (diff)
parent27ed6c60173a273db5c343816ab7ea60f21a5272 (diff)
Merge "Fix cps steps doc"
Diffstat (limited to 'src')
-rw-r--r--src/onaptests/steps/onboard/cps.py30
1 files changed, 27 insertions, 3 deletions
diff --git a/src/onaptests/steps/onboard/cps.py b/src/onaptests/steps/onboard/cps.py
index 1c59086..e582489 100644
--- a/src/onaptests/steps/onboard/cps.py
+++ b/src/onaptests/steps/onboard/cps.py
@@ -27,7 +27,12 @@ class CreateCpsDataspaceStep(CpsBaseStep):
@BaseStep.store_state
def execute(self) -> None:
- """Create a dataspace."""
+ """Create a dataspace.
+
+ Use settings values:
+ - DATASPACE_NAME.
+
+ """
super().execute()
Dataspace.create(settings.DATASPACE_NAME)
@@ -58,7 +63,13 @@ class CreateCpsSchemaSetStep(CpsBaseStep):
@BaseStep.store_state
def execute(self) -> None:
- """Get dataspace created on substep and create schema-set."""
+ """Get dataspace created on substep and create schema-set.
+
+ Use settings values:
+ - DATASPACE_NAME,
+ - SCHEMA_SET_NAME.
+
+ """
super().execute()
dataspace: Dataspace = Dataspace(settings.DATASPACE_NAME)
with settings.SCHEMA_SET_FILE.open("rb") as schema_set_file:
@@ -95,6 +106,12 @@ class CreateCpsAnchorStep(CpsBaseStep):
"""Create anchor.
Get dataspace and schema-set created substeps and create anchor.
+
+ Use settings values:
+ - DATASPACE_NAME,
+ - SCHEMA_SET_NAME,
+ - ANCHOR_DATA.
+
"""
super().execute()
dataspace: Dataspace = Dataspace(settings.DATASPACE_NAME)
@@ -129,7 +146,14 @@ class CreateCpsAnchorNodeStep(CpsBaseStep):
@BaseStep.store_state
def execute(self) -> None:
- """Create a node on an anchor created on substep."""
+ """Create a node on an anchor created on substep.
+
+ Use settings values:
+ - DATASPACE_NAME,
+ - ANCHOR_NAME,
+ - ANCHOR_DATA.
+
+ """
super().execute()
dataspace: Dataspace = Dataspace(settings.DATASPACE_NAME)
anchor: Anchor = dataspace.get_anchor(settings.ANCHOR_NAME)