You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Documentation] Delete a target from a data-server
36
+
[Arguments]${datastore}
37
+
${rc}${result} = Run And Return Rc And Output
38
+
... ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} datastore delete --ds ${datastore}
39
+
RETURN ${rc}${result}
40
+
14
41
CreateCandidate
15
42
[Documentation] Create a new named Candidate in the given Datastore
16
43
[Arguments]${datastore}${candidate}
17
-
${result} = Run Process ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} datastore create --ds ${datastore} --candidate ${candidate}
18
-
RETURN ${result}
44
+
${rc}${result} = Run And Return Rc And Output
45
+
... ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} datastore create --ds ${datastore} --candidate ${candidate}
46
+
RETURN ${rc}${result}
47
+
48
+
GetCandidate
49
+
[Documentation] Create a new named Candidate in the given Datastore
50
+
[Arguments]${datastore}${candidate}
51
+
${rc}${result} = Run And Return Rc And Output
52
+
... ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} datastore get --ds ${datastore} --candidate ${candidate}
53
+
RETURN ${rc}${result}
19
54
20
55
DeleteCandidate
21
56
[Documentation] Delete a named Candidate in the given Datastore
22
57
[Arguments]${datastore}${candidate}
23
-
${result} = Run Process ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} datastore delete --ds ${datastore} --candidate ${candidate}
24
-
RETURN ${result}
58
+
${rc}${result} = Run And Return Rc And Output
59
+
... ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} datastore delete --ds ${datastore} --candidate ${candidate}
60
+
RETURN ${rc}${result}
61
+
62
+
Diff
63
+
[Documentation] Performs a diff on a datastore and a candidate
64
+
[Arguments]${datastore}${candidate}
65
+
${rc}${result} = Run And Return Rc And Output
66
+
... ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} data diff --ds ${datastore} --candidate ${candidate}
67
+
RETURN ${rc}${result}
25
68
26
69
Commit
27
70
[Documentation] Performs a commit on the given datastore/candidate and returns the Process Result object https://robotframework.org/robotframework/latest/libraries/Process.html#Result%20object
28
71
[Arguments]${datastore}${candidate}
29
-
${result} = Run Process ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} datastore commit --ds ${datastore} --candidate ${candidate}
30
-
RETURN ${result}
72
+
${rc}${result} = Run And Return Rc And Output
73
+
... ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} datastore commit --ds ${datastore} --candidate ${candidate}
74
+
RETURN ${rc}${result}
75
+
76
+
Get
77
+
[Documentation] Get a path from the datastore
78
+
[Arguments]${datastore}${ds-get-flags}
79
+
${rc}${result} = Run And Return Rc And Output
80
+
... ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} data get --ds ${datastore}${ds-get-flags}
81
+
Log ${result}
82
+
RETURN ${rc}${result}
83
+
84
+
GetFromCandidate
85
+
[Documentation] Get a path from the datastore candidate
86
+
[Arguments]${datastore}${candidate}${path}
87
+
${rc}${result} = Run And Return Rc And Output
88
+
... ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} data get --ds ${datastore} --candidate ${candidate} --path ${path}
89
+
Log ${result}
90
+
RETURN ${rc}${result}
31
91
32
92
Set
33
93
[Documentation] Applies to the candidate of the given datastore the provided update
34
-
[Arguments]${datastore}${candidate}${update}
35
-
${result} = Run Process ${CLIENT-BIN}-a ${DATA-SERVER-IP}:${DATA-SERVER-PORT}data set --ds ${datastore} --candidate ${candidate} --update ${update}
36
-
Log${result.stdout}
37
-
Log ${result.stderr}
38
-
RETURN ${result}
94
+
[Arguments]${datastore}${candidate}${set-flags}
95
+
${rc}${result} =Run And Return Rc And Output
96
+
...${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} data set --ds ${datastore} --candidate ${candidate}${set-flags}
97
+
Log ${result}
98
+
RETURN ${rc}${result}
39
99
40
100
GetSchema
41
101
[Documentation] Retrieve the schema element described by name (plattform name), version and vendor under the given path.
42
102
[Arguments]${name}${version}${vendor}${path}
43
-
${result} = Run Process ${CLIENT-BIN} -a ${SCHEMA-SERVER-IP}:${SCHEMA-SERVER-PORT} schema get --name ${name} --version ${version} --vendor ${vendor} --path ${path}
44
-
RETURN ${result}
45
-
46
-
GetDatastore
47
-
[Documentation] Performa get on the given Datastore
48
-
[Arguments]${datastore}
49
-
${result} = Run Process ${CLIENT-BIN} -a ${DATA-SERVER-IP}:${DATA-SERVER-PORT} datastore get --ds ${datastore}
50
-
RETURN ${result}
51
-
103
+
${rc}${result} = Run And Return Rc And Output
104
+
... ${CLIENT-BIN} -a ${SCHEMA-SERVER-IP}:${SCHEMA-SERVER-PORT} schema get --name ${name} --version ${version} --vendor ${vendor} --path ${path}
0 commit comments