aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2023-05-05 12:44:22 +0000
committerMicha? Jagie??o <michal.jagiello@t-mobile.pl>2023-05-09 05:38:22 +0000
commit27ed6c60173a273db5c343816ab7ea60f21a5272 (patch)
tree2fe3741e2dabc7960f6c414edfa856671e0814eb
parent990e68c1017ad3307232d6056cfbfb86ab9c6277 (diff)
Fix cps steps doc
Add information which settings values are used by steps Issue-ID: TEST-123 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I4b9a723a38cde45788c7cc2d3b73a7b3cc6514fa
-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)