diff options
Diffstat (limited to '')
-rw-r--r-- | test/testcases/shadow | 10 | ||||
-rw-r--r-- | test/testcases/shadow.exp | 24 |
2 files changed, 34 insertions, 0 deletions
diff --git a/test/testcases/shadow b/test/testcases/shadow new file mode 100644 index 0000000..3bfd389 --- /dev/null +++ b/test/testcases/shadow @@ -0,0 +1,10 @@ +filesession Shadow CIB management +cib +new regtest force +reset regtest +use regtest +commit regtest +delete regtest +use +delete regtest +. diff --git a/test/testcases/shadow.exp b/test/testcases/shadow.exp new file mode 100644 index 0000000..f5ec084 --- /dev/null +++ b/test/testcases/shadow.exp @@ -0,0 +1,24 @@ +.TRY Shadow CIB management +.INP: cib +.INP: new regtest force +.EXT >/dev/null </dev/null crm_shadow -b -c 'regtest' --force +INFO: 2: cib.new: regtest shadow CIB created +.INP: reset regtest +.EXT >/dev/null </dev/null crm_shadow -b -r 'regtest' +INFO: 3: cib.reset: copied live CIB to regtest +.INP: use regtest +.INP: commit regtest +.EXT >/dev/null </dev/null crm_shadow -b -C 'regtest' --force +INFO: 5: cib.commit: committed 'regtest' shadow CIB to the cluster +.INP: delete regtest +ERROR: 6: cib.delete: regtest shadow CIB is in use +Traceback (most recent call last): + rv = self.execute_command() is not False + rv = self.command_info.function(*arglist) + context.fatal_error("%s shadow CIB is in use" % name) + raise ValueError(msg) +ValueError: regtest shadow CIB is in use +.INP: use +.INP: delete regtest +.EXT >/dev/null </dev/null crm_shadow -b -D 'regtest' --force +INFO: 8: cib.delete: regtest shadow CIB deleted |