Skip to content

Commit 753630b

Browse files
committed
finally update OMDB tests
1 parent 0badbd6 commit 753630b

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

dev-tools/omdb/tests/env.out

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ task: "external_endpoints"
9999
on each one
100100

101101

102+
task: "fm_sitrep_loader"
103+
loads the current fault management situation report from the database
104+
105+
102106
task: "instance_reincarnation"
103107
schedules start sagas for failed instances that can be automatically
104108
restarted
@@ -315,6 +319,10 @@ task: "external_endpoints"
315319
on each one
316320

317321

322+
task: "fm_sitrep_loader"
323+
loads the current fault management situation report from the database
324+
325+
318326
task: "instance_reincarnation"
319327
schedules start sagas for failed instances that can be automatically
320328
restarted
@@ -518,6 +526,10 @@ task: "external_endpoints"
518526
on each one
519527

520528

529+
task: "fm_sitrep_loader"
530+
loads the current fault management situation report from the database
531+
532+
521533
task: "instance_reincarnation"
522534
schedules start sagas for failed instances that can be automatically
523535
restarted

dev-tools/omdb/tests/successes.out

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ task: "external_endpoints"
334334
on each one
335335

336336

337+
task: "fm_sitrep_loader"
338+
loads the current fault management situation report from the database
339+
340+
337341
task: "instance_reincarnation"
338342
schedules start sagas for failed instances that can be automatically
339343
restarted
@@ -609,6 +613,12 @@ task: "external_endpoints"
609613

610614
TLS certificates: 0
611615

616+
task: "fm_sitrep_loader"
617+
configured period: every <REDACTED_DURATION>s
618+
last completed activation: <REDACTED ITERATIONS>, triggered by <TRIGGERED_BY_REDACTED>
619+
started at <REDACTED_TIMESTAMP> (<REDACTED DURATION>s ago) and ran for <REDACTED DURATION>ms
620+
no FM situation report available to load
621+
612622
task: "instance_reincarnation"
613623
configured period: every <REDACTED_DURATION>m
614624
last completed activation: <REDACTED ITERATIONS>, triggered by <TRIGGERED_BY_REDACTED>
@@ -1144,6 +1154,12 @@ task: "external_endpoints"
11441154

11451155
TLS certificates: 0
11461156

1157+
task: "fm_sitrep_loader"
1158+
configured period: every <REDACTED_DURATION>s
1159+
last completed activation: <REDACTED ITERATIONS>, triggered by <TRIGGERED_BY_REDACTED>
1160+
started at <REDACTED_TIMESTAMP> (<REDACTED DURATION>s ago) and ran for <REDACTED DURATION>ms
1161+
no FM situation report available to load
1162+
11471163
task: "instance_reincarnation"
11481164
configured period: every <REDACTED_DURATION>m
11491165
last completed activation: <REDACTED ITERATIONS>, triggered by <TRIGGERED_BY_REDACTED>

dev-tools/omdb/tests/usage_errors.out

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ Commands:
132132
region-snapshot-replacement Query for information about region snapshot replacements, optionally
133133
manually triggering one
134134
saga Commands for querying and interacting with sagas
135+
sitrep Commands for querying and interacting with fault management situation
136+
reports
137+
sitreps Show the current history of fault management situation reports
135138
sleds Print information about sleds
136139
instance Print information about customer instances
137140
instances Alias to `omdb instance list`
@@ -193,6 +196,9 @@ Commands:
193196
region-snapshot-replacement Query for information about region snapshot replacements, optionally
194197
manually triggering one
195198
saga Commands for querying and interacting with sagas
199+
sitrep Commands for querying and interacting with fault management situation
200+
reports
201+
sitreps Show the current history of fault management situation reports
196202
sleds Print information about sleds
197203
instance Print information about customer instances
198204
instances Alias to `omdb instance list`
@@ -707,6 +713,40 @@ Safety Options:
707713
---------------------------------------------
708714
stderr:
709715
=============================================
716+
EXECUTING COMMAND: omdb ["db", "sitrep", "--help"]
717+
termination: Exited(0)
718+
---------------------------------------------
719+
stdout:
720+
Commands for querying and interacting with fault management situation reports
721+
722+
Usage: omdb db sitrep [OPTIONS] <COMMAND>
723+
724+
Commands:
725+
history List the current situation report history
726+
current Show the current situation report
727+
info Show details on a situation report
728+
help Print this message or the help of the given subcommand(s)
729+
730+
Options:
731+
--log-level <LOG_LEVEL> log level filter [env: LOG_LEVEL=] [default: warn]
732+
--color <COLOR> Color output [default: auto] [possible values: auto, always, never]
733+
-h, --help Print help
734+
735+
Connection Options:
736+
--db-url <DB_URL> URL of the database SQL interface [env: OMDB_DB_URL=]
737+
--dns-server <DNS_SERVER> [env: OMDB_DNS_SERVER=]
738+
739+
Database Options:
740+
--fetch-limit <FETCH_LIMIT> limit to apply to queries that fetch rows [env:
741+
OMDB_FETCH_LIMIT=] [default: 500]
742+
--include-deleted whether to include soft-deleted records when enumerating objects
743+
that can be soft-deleted
744+
745+
Safety Options:
746+
-w, --destructive Allow potentially-destructive subcommands
747+
---------------------------------------------
748+
stderr:
749+
=============================================
710750
EXECUTING COMMAND: omdb ["db", "saga"]
711751
termination: Exited(2)
712752
---------------------------------------------

0 commit comments

Comments
 (0)