@cloudant/couchbackup 2.9.8-SNAPSHOT.93 → 2.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.scannerwork/.sonar_lock +0 -0
- package/.scannerwork/report-task.txt +7 -0
- package/.scannerwork/scanner-report/activerules.pb +1946 -0
- package/.scannerwork/scanner-report/analysis-warnings.pb +3 -0
- package/.scannerwork/scanner-report/analysis.log +54 -0
- package/.scannerwork/scanner-report/changesets-19.pb +1 -0
- package/.scannerwork/scanner-report/changesets-20.pb +1 -0
- package/.scannerwork/scanner-report/changesets-21.pb +1 -0
- package/.scannerwork/scanner-report/changesets-22.pb +1 -0
- package/.scannerwork/scanner-report/changesets-23.pb +1 -0
- package/.scannerwork/scanner-report/changesets-24.pb +1 -0
- package/.scannerwork/scanner-report/changesets-25.pb +1 -0
- package/.scannerwork/scanner-report/changesets-26.pb +1 -0
- package/.scannerwork/scanner-report/changesets-27.pb +1 -0
- package/.scannerwork/scanner-report/changesets-28.pb +1 -0
- package/.scannerwork/scanner-report/changesets-29.pb +1 -0
- package/.scannerwork/scanner-report/changesets-30.pb +1 -0
- package/.scannerwork/scanner-report/changesets-31.pb +1 -0
- package/.scannerwork/scanner-report/changesets-32.pb +1 -0
- package/.scannerwork/scanner-report/changesets-33.pb +1 -0
- package/.scannerwork/scanner-report/changesets-34.pb +1 -0
- package/.scannerwork/scanner-report/changesets-35.pb +1 -0
- package/.scannerwork/scanner-report/changesets-36.pb +1 -0
- package/.scannerwork/scanner-report/changesets-37.pb +1 -0
- package/.scannerwork/scanner-report/changesets-4.pb +1 -0
- package/.scannerwork/scanner-report/changesets-41.pb +1 -0
- package/.scannerwork/scanner-report/changesets-42.pb +1 -0
- package/.scannerwork/scanner-report/changesets-43.pb +1 -0
- package/.scannerwork/scanner-report/changesets-44.pb +1 -0
- package/.scannerwork/scanner-report/changesets-45.pb +1 -0
- package/.scannerwork/scanner-report/changesets-46.pb +1 -0
- package/.scannerwork/scanner-report/changesets-47.pb +1 -0
- package/.scannerwork/scanner-report/changesets-48.pb +1 -0
- package/.scannerwork/scanner-report/changesets-49.pb +1 -0
- package/.scannerwork/scanner-report/changesets-5.pb +1 -0
- package/.scannerwork/scanner-report/changesets-50.pb +1 -0
- package/.scannerwork/scanner-report/changesets-51.pb +1 -0
- package/.scannerwork/scanner-report/changesets-52.pb +1 -0
- package/.scannerwork/scanner-report/changesets-53.pb +1 -0
- package/.scannerwork/scanner-report/changesets-54.pb +1 -0
- package/.scannerwork/scanner-report/changesets-57.pb +1 -0
- package/.scannerwork/scanner-report/changesets-58.pb +1 -0
- package/.scannerwork/scanner-report/changesets-6.pb +1 -0
- package/.scannerwork/scanner-report/changesets-65.pb +1 -0
- package/.scannerwork/scanner-report/changesets-66.pb +1 -0
- package/.scannerwork/scanner-report/changesets-69.pb +1 -0
- package/.scannerwork/scanner-report/changesets-7.pb +1 -0
- package/.scannerwork/scanner-report/component-1.pb +1 -0
- package/.scannerwork/scanner-report/component-19.pb +1 -0
- package/.scannerwork/scanner-report/component-20.pb +1 -0
- package/.scannerwork/scanner-report/component-21.pb +1 -0
- package/.scannerwork/scanner-report/component-22.pb +1 -0
- package/.scannerwork/scanner-report/component-23.pb +1 -0
- package/.scannerwork/scanner-report/component-24.pb +1 -0
- package/.scannerwork/scanner-report/component-25.pb +1 -0
- package/.scannerwork/scanner-report/component-26.pb +1 -0
- package/.scannerwork/scanner-report/component-27.pb +1 -0
- package/.scannerwork/scanner-report/component-28.pb +1 -0
- package/.scannerwork/scanner-report/component-29.pb +1 -0
- package/.scannerwork/scanner-report/component-30.pb +1 -0
- package/.scannerwork/scanner-report/component-31.pb +1 -0
- package/.scannerwork/scanner-report/component-32.pb +1 -0
- package/.scannerwork/scanner-report/component-33.pb +1 -0
- package/.scannerwork/scanner-report/component-34.pb +1 -0
- package/.scannerwork/scanner-report/component-35.pb +1 -0
- package/.scannerwork/scanner-report/component-36.pb +1 -0
- package/.scannerwork/scanner-report/component-37.pb +1 -0
- package/.scannerwork/scanner-report/component-38.pb +1 -0
- package/.scannerwork/scanner-report/component-4.pb +1 -0
- package/.scannerwork/scanner-report/component-40.pb +1 -0
- package/.scannerwork/scanner-report/component-41.pb +1 -0
- package/.scannerwork/scanner-report/component-42.pb +1 -0
- package/.scannerwork/scanner-report/component-43.pb +1 -0
- package/.scannerwork/scanner-report/component-44.pb +1 -0
- package/.scannerwork/scanner-report/component-45.pb +1 -0
- package/.scannerwork/scanner-report/component-46.pb +1 -0
- package/.scannerwork/scanner-report/component-47.pb +1 -0
- package/.scannerwork/scanner-report/component-48.pb +1 -0
- package/.scannerwork/scanner-report/component-49.pb +1 -0
- package/.scannerwork/scanner-report/component-5.pb +1 -0
- package/.scannerwork/scanner-report/component-50.pb +1 -0
- package/.scannerwork/scanner-report/component-51.pb +1 -0
- package/.scannerwork/scanner-report/component-52.pb +1 -0
- package/.scannerwork/scanner-report/component-53.pb +1 -0
- package/.scannerwork/scanner-report/component-54.pb +1 -0
- package/.scannerwork/scanner-report/component-55.pb +1 -0
- package/.scannerwork/scanner-report/component-57.pb +1 -0
- package/.scannerwork/scanner-report/component-58.pb +1 -0
- package/.scannerwork/scanner-report/component-59.pb +1 -0
- package/.scannerwork/scanner-report/component-6.pb +1 -0
- package/.scannerwork/scanner-report/component-61.pb +1 -0
- package/.scannerwork/scanner-report/component-65.pb +1 -0
- package/.scannerwork/scanner-report/component-66.pb +1 -0
- package/.scannerwork/scanner-report/component-69.pb +1 -0
- package/.scannerwork/scanner-report/component-7.pb +1 -0
- package/.scannerwork/scanner-report/context-props.pb +3 -0
- package/.scannerwork/scanner-report/coverages-19.pb +0 -0
- package/.scannerwork/scanner-report/coverages-20.pb +0 -0
- package/.scannerwork/scanner-report/coverages-21.pb +0 -0
- package/.scannerwork/scanner-report/coverages-22.pb +0 -0
- package/.scannerwork/scanner-report/coverages-23.pb +0 -0
- package/.scannerwork/scanner-report/coverages-24.pb +0 -0
- package/.scannerwork/scanner-report/coverages-25.pb +0 -0
- package/.scannerwork/scanner-report/coverages-26.pb +0 -0
- package/.scannerwork/scanner-report/coverages-27.pb +0 -0
- package/.scannerwork/scanner-report/coverages-28.pb +0 -0
- package/.scannerwork/scanner-report/coverages-29.pb +0 -0
- package/.scannerwork/scanner-report/coverages-30.pb +0 -0
- package/.scannerwork/scanner-report/coverages-31.pb +0 -0
- package/.scannerwork/scanner-report/coverages-32.pb +0 -0
- package/.scannerwork/scanner-report/coverages-33.pb +0 -0
- package/.scannerwork/scanner-report/coverages-34.pb +0 -0
- package/.scannerwork/scanner-report/coverages-35.pb +0 -0
- package/.scannerwork/scanner-report/coverages-36.pb +0 -0
- package/.scannerwork/scanner-report/coverages-37.pb +0 -0
- package/.scannerwork/scanner-report/coverages-4.pb +0 -0
- package/.scannerwork/scanner-report/coverages-41.pb +0 -0
- package/.scannerwork/scanner-report/coverages-42.pb +0 -0
- package/.scannerwork/scanner-report/coverages-43.pb +0 -0
- package/.scannerwork/scanner-report/coverages-44.pb +0 -0
- package/.scannerwork/scanner-report/coverages-45.pb +0 -0
- package/.scannerwork/scanner-report/coverages-46.pb +0 -0
- package/.scannerwork/scanner-report/coverages-47.pb +0 -0
- package/.scannerwork/scanner-report/coverages-48.pb +0 -0
- package/.scannerwork/scanner-report/coverages-49.pb +0 -0
- package/.scannerwork/scanner-report/coverages-5.pb +0 -0
- package/.scannerwork/scanner-report/coverages-50.pb +0 -0
- package/.scannerwork/scanner-report/coverages-51.pb +0 -0
- package/.scannerwork/scanner-report/coverages-52.pb +0 -0
- package/.scannerwork/scanner-report/coverages-53.pb +0 -0
- package/.scannerwork/scanner-report/coverages-54.pb +0 -0
- package/.scannerwork/scanner-report/coverages-57.pb +0 -0
- package/.scannerwork/scanner-report/coverages-58.pb +0 -0
- package/.scannerwork/scanner-report/coverages-6.pb +0 -0
- package/.scannerwork/scanner-report/coverages-65.pb +0 -0
- package/.scannerwork/scanner-report/coverages-66.pb +0 -0
- package/.scannerwork/scanner-report/coverages-69.pb +0 -0
- package/.scannerwork/scanner-report/coverages-7.pb +0 -0
- package/.scannerwork/scanner-report/duplications-19.pb +3 -0
- package/.scannerwork/scanner-report/duplications-20.pb +0 -0
- package/.scannerwork/scanner-report/duplications-21.pb +2 -0
- package/.scannerwork/scanner-report/duplications-22.pb +3 -0
- package/.scannerwork/scanner-report/duplications-23.pb +0 -0
- package/.scannerwork/scanner-report/duplications-24.pb +0 -0
- package/.scannerwork/scanner-report/duplications-26.pb +0 -0
- package/.scannerwork/scanner-report/duplications-27.pb +0 -0
- package/.scannerwork/scanner-report/duplications-28.pb +0 -0
- package/.scannerwork/scanner-report/duplications-29.pb +0 -0
- package/.scannerwork/scanner-report/duplications-30.pb +0 -0
- package/.scannerwork/scanner-report/duplications-31.pb +0 -0
- package/.scannerwork/scanner-report/duplications-32.pb +2 -0
- package/.scannerwork/scanner-report/duplications-33.pb +0 -0
- package/.scannerwork/scanner-report/duplications-34.pb +0 -0
- package/.scannerwork/scanner-report/duplications-35.pb +0 -0
- package/.scannerwork/scanner-report/duplications-36.pb +2 -0
- package/.scannerwork/scanner-report/duplications-37.pb +0 -0
- package/.scannerwork/scanner-report/duplications-4.pb +0 -0
- package/.scannerwork/scanner-report/duplications-41.pb +0 -0
- package/.scannerwork/scanner-report/duplications-42.pb +0 -0
- package/.scannerwork/scanner-report/duplications-43.pb +2 -0
- package/.scannerwork/scanner-report/duplications-44.pb +0 -0
- package/.scannerwork/scanner-report/duplications-45.pb +2 -0
- package/.scannerwork/scanner-report/duplications-46.pb +0 -0
- package/.scannerwork/scanner-report/duplications-47.pb +0 -0
- package/.scannerwork/scanner-report/duplications-48.pb +0 -0
- package/.scannerwork/scanner-report/duplications-49.pb +0 -0
- package/.scannerwork/scanner-report/duplications-5.pb +3 -0
- package/.scannerwork/scanner-report/duplications-50.pb +0 -0
- package/.scannerwork/scanner-report/duplications-51.pb +0 -0
- package/.scannerwork/scanner-report/duplications-52.pb +0 -0
- package/.scannerwork/scanner-report/duplications-53.pb +0 -0
- package/.scannerwork/scanner-report/duplications-54.pb +0 -0
- package/.scannerwork/scanner-report/duplications-57.pb +0 -0
- package/.scannerwork/scanner-report/duplications-58.pb +0 -0
- package/.scannerwork/scanner-report/duplications-6.pb +0 -0
- package/.scannerwork/scanner-report/duplications-65.pb +2 -0
- package/.scannerwork/scanner-report/duplications-66.pb +2 -0
- package/.scannerwork/scanner-report/duplications-69.pb +0 -0
- package/.scannerwork/scanner-report/duplications-7.pb +0 -0
- package/.scannerwork/scanner-report/issues-28.pb +3 -0
- package/.scannerwork/scanner-report/issues-29.pb +6 -0
- package/.scannerwork/scanner-report/issues-5.pb +4 -0
- package/.scannerwork/scanner-report/issues-7.pb +3 -0
- package/.scannerwork/scanner-report/measures-19.pb +0 -0
- package/.scannerwork/scanner-report/measures-20.pb +0 -0
- package/.scannerwork/scanner-report/measures-21.pb +15 -0
- package/.scannerwork/scanner-report/measures-22.pb +0 -0
- package/.scannerwork/scanner-report/measures-23.pb +0 -0
- package/.scannerwork/scanner-report/measures-24.pb +0 -0
- package/.scannerwork/scanner-report/measures-25.pb +0 -0
- package/.scannerwork/scanner-report/measures-26.pb +0 -0
- package/.scannerwork/scanner-report/measures-27.pb +0 -0
- package/.scannerwork/scanner-report/measures-28.pb +0 -0
- package/.scannerwork/scanner-report/measures-29.pb +0 -0
- package/.scannerwork/scanner-report/measures-30.pb +0 -0
- package/.scannerwork/scanner-report/measures-31.pb +0 -0
- package/.scannerwork/scanner-report/measures-32.pb +0 -0
- package/.scannerwork/scanner-report/measures-33.pb +0 -0
- package/.scannerwork/scanner-report/measures-34.pb +0 -0
- package/.scannerwork/scanner-report/measures-35.pb +0 -0
- package/.scannerwork/scanner-report/measures-36.pb +0 -0
- package/.scannerwork/scanner-report/measures-37.pb +0 -0
- package/.scannerwork/scanner-report/measures-38.pb +0 -0
- package/.scannerwork/scanner-report/measures-4.pb +0 -0
- package/.scannerwork/scanner-report/measures-40.pb +0 -0
- package/.scannerwork/scanner-report/measures-41.pb +0 -0
- package/.scannerwork/scanner-report/measures-42.pb +15 -0
- package/.scannerwork/scanner-report/measures-43.pb +0 -0
- package/.scannerwork/scanner-report/measures-44.pb +16 -0
- package/.scannerwork/scanner-report/measures-45.pb +0 -0
- package/.scannerwork/scanner-report/measures-46.pb +0 -0
- package/.scannerwork/scanner-report/measures-47.pb +0 -0
- package/.scannerwork/scanner-report/measures-48.pb +0 -0
- package/.scannerwork/scanner-report/measures-49.pb +0 -0
- package/.scannerwork/scanner-report/measures-5.pb +0 -0
- package/.scannerwork/scanner-report/measures-50.pb +0 -0
- package/.scannerwork/scanner-report/measures-51.pb +0 -0
- package/.scannerwork/scanner-report/measures-52.pb +0 -0
- package/.scannerwork/scanner-report/measures-53.pb +0 -0
- package/.scannerwork/scanner-report/measures-54.pb +0 -0
- package/.scannerwork/scanner-report/measures-55.pb +0 -0
- package/.scannerwork/scanner-report/measures-57.pb +0 -0
- package/.scannerwork/scanner-report/measures-58.pb +0 -0
- package/.scannerwork/scanner-report/measures-59.pb +0 -0
- package/.scannerwork/scanner-report/measures-6.pb +0 -0
- package/.scannerwork/scanner-report/measures-61.pb +0 -0
- package/.scannerwork/scanner-report/measures-65.pb +0 -0
- package/.scannerwork/scanner-report/measures-66.pb +0 -0
- package/.scannerwork/scanner-report/measures-69.pb +0 -0
- package/.scannerwork/scanner-report/measures-7.pb +0 -0
- package/.scannerwork/scanner-report/metadata.pb +0 -0
- package/.scannerwork/scanner-report/source-19.txt +131 -0
- package/.scannerwork/scanner-report/source-20.txt +35 -0
- package/.scannerwork/scanner-report/source-21.txt +293 -0
- package/.scannerwork/scanner-report/source-22.txt +119 -0
- package/.scannerwork/scanner-report/source-23.txt +92 -0
- package/.scannerwork/scanner-report/source-24.txt +625 -0
- package/.scannerwork/scanner-report/source-25.txt +29 -0
- package/.scannerwork/scanner-report/source-26.txt +63 -0
- package/.scannerwork/scanner-report/source-27.txt +36 -0
- package/.scannerwork/scanner-report/source-28.txt +142 -0
- package/.scannerwork/scanner-report/source-29.txt +366 -0
- package/.scannerwork/scanner-report/source-30.txt +36 -0
- package/.scannerwork/scanner-report/source-31.txt +100 -0
- package/.scannerwork/scanner-report/source-32.txt +145 -0
- package/.scannerwork/scanner-report/source-33.txt +156 -0
- package/.scannerwork/scanner-report/source-34.txt +68 -0
- package/.scannerwork/scanner-report/source-35.txt +147 -0
- package/.scannerwork/scanner-report/source-36.txt +225 -0
- package/.scannerwork/scanner-report/source-37.txt +114 -0
- package/.scannerwork/scanner-report/source-38.txt +167 -0
- package/.scannerwork/scanner-report/source-4.txt +34 -0
- package/.scannerwork/scanner-report/source-40.txt +509 -0
- package/.scannerwork/scanner-report/source-41.txt +31 -0
- package/.scannerwork/scanner-report/source-42.txt +104 -0
- package/.scannerwork/scanner-report/source-43.txt +92 -0
- package/.scannerwork/scanner-report/source-44.txt +178 -0
- package/.scannerwork/scanner-report/source-45.txt +75 -0
- package/.scannerwork/scanner-report/source-46.txt +54 -0
- package/.scannerwork/scanner-report/source-47.txt +41 -0
- package/.scannerwork/scanner-report/source-48.txt +118 -0
- package/.scannerwork/scanner-report/source-49.txt +129 -0
- package/.scannerwork/scanner-report/source-5.txt +244 -0
- package/.scannerwork/scanner-report/source-50.txt +281 -0
- package/.scannerwork/scanner-report/source-51.txt +80 -0
- package/.scannerwork/scanner-report/source-52.txt +111 -0
- package/.scannerwork/scanner-report/source-53.txt +46 -0
- package/.scannerwork/scanner-report/source-54.txt +164 -0
- package/.scannerwork/scanner-report/source-55.txt +509 -0
- package/.scannerwork/scanner-report/source-57.txt +77 -0
- package/.scannerwork/scanner-report/source-58.txt +56 -0
- package/.scannerwork/scanner-report/source-59.txt +509 -0
- package/.scannerwork/scanner-report/source-6.txt +68 -0
- package/.scannerwork/scanner-report/source-61.txt +509 -0
- package/.scannerwork/scanner-report/source-65.txt +190 -0
- package/.scannerwork/scanner-report/source-66.txt +175 -0
- package/.scannerwork/scanner-report/source-69.txt +418 -0
- package/.scannerwork/scanner-report/source-7.txt +47 -0
- package/.scannerwork/scanner-report/symbols-19.pb +97 -0
- package/.scannerwork/scanner-report/symbols-20.pb +17 -0
- package/.scannerwork/scanner-report/symbols-21.pb +486 -0
- package/.scannerwork/scanner-report/symbols-22.pb +77 -0
- package/.scannerwork/scanner-report/symbols-23.pb +60 -0
- package/.scannerwork/scanner-report/symbols-24.pb +1254 -0
- package/.scannerwork/scanner-report/symbols-25.pb +9 -0
- package/.scannerwork/scanner-report/symbols-26.pb +43 -0
- package/.scannerwork/scanner-report/symbols-27.pb +11 -0
- package/.scannerwork/scanner-report/symbols-28.pb +116 -0
- package/.scannerwork/scanner-report/symbols-29.pb +494 -0
- package/.scannerwork/scanner-report/symbols-30.pb +14 -0
- package/.scannerwork/scanner-report/symbols-31.pb +69 -0
- package/.scannerwork/scanner-report/symbols-32.pb +102 -0
- package/.scannerwork/scanner-report/symbols-33.pb +112 -0
- package/.scannerwork/scanner-report/symbols-34.pb +36 -0
- package/.scannerwork/scanner-report/symbols-35.pb +85 -0
- package/.scannerwork/scanner-report/symbols-36.pb +418 -0
- package/.scannerwork/scanner-report/symbols-37.pb +28 -0
- package/.scannerwork/scanner-report/symbols-4.pb +10 -0
- package/.scannerwork/scanner-report/symbols-41.pb +14 -0
- package/.scannerwork/scanner-report/symbols-42.pb +42 -0
- package/.scannerwork/scanner-report/symbols-43.pb +44 -0
- package/.scannerwork/scanner-report/symbols-44.pb +144 -0
- package/.scannerwork/scanner-report/symbols-45.pb +42 -0
- package/.scannerwork/scanner-report/symbols-46.pb +15 -0
- package/.scannerwork/scanner-report/symbols-47.pb +18 -0
- package/.scannerwork/scanner-report/symbols-48.pb +30 -0
- package/.scannerwork/scanner-report/symbols-49.pb +33 -0
- package/.scannerwork/scanner-report/symbols-5.pb +394 -0
- package/.scannerwork/scanner-report/symbols-50.pb +354 -0
- package/.scannerwork/scanner-report/symbols-51.pb +46 -0
- package/.scannerwork/scanner-report/symbols-52.pb +59 -0
- package/.scannerwork/scanner-report/symbols-53.pb +20 -0
- package/.scannerwork/scanner-report/symbols-54.pb +126 -0
- package/.scannerwork/scanner-report/symbols-57.pb +30 -0
- package/.scannerwork/scanner-report/symbols-58.pb +19 -0
- package/.scannerwork/scanner-report/symbols-6.pb +45 -0
- package/.scannerwork/scanner-report/symbols-65.pb +180 -0
- package/.scannerwork/scanner-report/symbols-66.pb +153 -0
- package/.scannerwork/scanner-report/symbols-69.pb +610 -0
- package/.scannerwork/scanner-report/symbols-7.pb +27 -0
- package/.scannerwork/scanner-report/syntax-highlightings-19.pb +182 -0
- package/.scannerwork/scanner-report/syntax-highlightings-20.pb +63 -0
- package/.scannerwork/scanner-report/syntax-highlightings-21.pb +659 -0
- package/.scannerwork/scanner-report/syntax-highlightings-22.pb +158 -0
- package/.scannerwork/scanner-report/syntax-highlightings-23.pb +110 -0
- package/.scannerwork/scanner-report/syntax-highlightings-24.pb +887 -0
- package/.scannerwork/scanner-report/syntax-highlightings-25.pb +48 -0
- package/.scannerwork/scanner-report/syntax-highlightings-26.pb +82 -0
- package/.scannerwork/scanner-report/syntax-highlightings-27.pb +59 -0
- package/.scannerwork/scanner-report/syntax-highlightings-28.pb +134 -0
- package/.scannerwork/scanner-report/syntax-highlightings-29.pb +630 -0
- package/.scannerwork/scanner-report/syntax-highlightings-30.pb +54 -0
- package/.scannerwork/scanner-report/syntax-highlightings-31.pb +105 -0
- package/.scannerwork/scanner-report/syntax-highlightings-32.pb +227 -0
- package/.scannerwork/scanner-report/syntax-highlightings-33.pb +223 -0
- package/.scannerwork/scanner-report/syntax-highlightings-34.pb +95 -0
- package/.scannerwork/scanner-report/syntax-highlightings-35.pb +191 -0
- package/.scannerwork/scanner-report/syntax-highlightings-36.pb +331 -0
- package/.scannerwork/scanner-report/syntax-highlightings-37.pb +138 -0
- package/.scannerwork/scanner-report/syntax-highlightings-38.pb +948 -0
- package/.scannerwork/scanner-report/syntax-highlightings-4.pb +50 -0
- package/.scannerwork/scanner-report/syntax-highlightings-40.pb +3749 -0
- package/.scannerwork/scanner-report/syntax-highlightings-41.pb +45 -0
- package/.scannerwork/scanner-report/syntax-highlightings-42.pb +116 -0
- package/.scannerwork/scanner-report/syntax-highlightings-43.pb +90 -0
- package/.scannerwork/scanner-report/syntax-highlightings-44.pb +243 -0
- package/.scannerwork/scanner-report/syntax-highlightings-45.pb +78 -0
- package/.scannerwork/scanner-report/syntax-highlightings-46.pb +54 -0
- package/.scannerwork/scanner-report/syntax-highlightings-47.pb +50 -0
- package/.scannerwork/scanner-report/syntax-highlightings-48.pb +113 -0
- package/.scannerwork/scanner-report/syntax-highlightings-49.pb +129 -0
- package/.scannerwork/scanner-report/syntax-highlightings-5.pb +329 -0
- package/.scannerwork/scanner-report/syntax-highlightings-50.pb +285 -0
- package/.scannerwork/scanner-report/syntax-highlightings-51.pb +95 -0
- package/.scannerwork/scanner-report/syntax-highlightings-52.pb +133 -0
- package/.scannerwork/scanner-report/syntax-highlightings-53.pb +64 -0
- package/.scannerwork/scanner-report/syntax-highlightings-54.pb +213 -0
- package/.scannerwork/scanner-report/syntax-highlightings-55.pb +3746 -0
- package/.scannerwork/scanner-report/syntax-highlightings-57.pb +103 -0
- package/.scannerwork/scanner-report/syntax-highlightings-58.pb +82 -0
- package/.scannerwork/scanner-report/syntax-highlightings-59.pb +3747 -0
- package/.scannerwork/scanner-report/syntax-highlightings-6.pb +110 -0
- package/.scannerwork/scanner-report/syntax-highlightings-61.pb +3748 -0
- package/.scannerwork/scanner-report/syntax-highlightings-65.pb +225 -0
- package/.scannerwork/scanner-report/syntax-highlightings-66.pb +214 -0
- package/.scannerwork/scanner-report/syntax-highlightings-69.pb +648 -0
- package/.scannerwork/scanner-report/syntax-highlightings-7.pb +68 -0
- package/.secrets.baseline +6 -6
- package/CHANGES.md +3 -0
- package/package.json +1 -1
- package/test-14-results.xml +509 -0
- package/test-16-results.xml +509 -0
- package/test-18-results.xml +509 -0
- package/test-19-results.xml +509 -0
- package/test-iam-18-results.xml +167 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
// Copyright © 2017, 2018 IBM Corp. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
/* global describe it */
|
|
16
|
+
'use strict';
|
|
17
|
+
|
|
18
|
+
const assert = require('assert');
|
|
19
|
+
const backup = require('../app.js').backup;
|
|
20
|
+
const fs = require('fs');
|
|
21
|
+
const nock = require('nock');
|
|
22
|
+
|
|
23
|
+
const goodUrl = 'http://localhost:5984/db';
|
|
24
|
+
// The real validateArgs function of app.js isn't
|
|
25
|
+
// exported - so we call the exported backup method
|
|
26
|
+
// instead. We don't get as far as a real backup when
|
|
27
|
+
// testing error cases. For success cases we nock the
|
|
28
|
+
// goodUrl and
|
|
29
|
+
const validateArgs = function(url, opts, callback) {
|
|
30
|
+
const nullStream = fs.createWriteStream('/dev/null');
|
|
31
|
+
let cb = callback;
|
|
32
|
+
if (url === goodUrl) {
|
|
33
|
+
// Nock the goodUrl
|
|
34
|
+
nock(goodUrl).head('').reply(404, { error: 'not_found', reason: 'missing' });
|
|
35
|
+
// replace the callback to handle the nock response
|
|
36
|
+
// to avoid attempting a real backup
|
|
37
|
+
cb = function(err) {
|
|
38
|
+
nullStream.end();
|
|
39
|
+
if (err.name === 'DatabaseNotFound') {
|
|
40
|
+
// This is what we expect if we reached the backup
|
|
41
|
+
// This is success for valid args cases.
|
|
42
|
+
err = null;
|
|
43
|
+
}
|
|
44
|
+
callback(err);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
backup(url, nullStream, opts, cb);
|
|
48
|
+
return true;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const stderrWriteFun = process.stderr.write;
|
|
52
|
+
let capturedStderr;
|
|
53
|
+
|
|
54
|
+
function captureStderr() {
|
|
55
|
+
process.stderr.write = function(string, encoding, fd) {
|
|
56
|
+
capturedStderr += string;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function releaseStderr() {
|
|
61
|
+
process.stderr.write = stderrWriteFun;
|
|
62
|
+
capturedStderr = null;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function assertErrorMessage(msg, done) {
|
|
66
|
+
return function(err, data) {
|
|
67
|
+
try {
|
|
68
|
+
assert(err.message, 'There should be an error message');
|
|
69
|
+
assert(err.message.indexOf(msg) >= 0);
|
|
70
|
+
assert(data === null || data === undefined, 'There should only be an error.');
|
|
71
|
+
done();
|
|
72
|
+
} catch (e) {
|
|
73
|
+
done(e);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function assertNoError(done) {
|
|
79
|
+
return function(err, data) {
|
|
80
|
+
try {
|
|
81
|
+
assert(err === null, 'There should be no error message.');
|
|
82
|
+
done();
|
|
83
|
+
} catch (e) {
|
|
84
|
+
done(e);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
describe('#unit Validate arguments', function() {
|
|
90
|
+
it('returns error for invalid URL type', function(done) {
|
|
91
|
+
validateArgs(true, {}, assertErrorMessage('Invalid URL, must be type string', done));
|
|
92
|
+
});
|
|
93
|
+
it('returns no error for valid URL type', function(done) {
|
|
94
|
+
validateArgs(goodUrl, {}, assertNoError(done));
|
|
95
|
+
});
|
|
96
|
+
it('returns error for invalid (no host) URL', function(done) {
|
|
97
|
+
validateArgs('http://', {}, assertErrorMessage('Invalid URL', done));
|
|
98
|
+
});
|
|
99
|
+
it('returns error for invalid (no protocol) URL', function(done) {
|
|
100
|
+
validateArgs('invalid', {}, assertErrorMessage('Invalid URL', done));
|
|
101
|
+
});
|
|
102
|
+
it('returns error for invalid (wrong protocol) URL', function(done) {
|
|
103
|
+
validateArgs('ftp://invalid.example.com', {}, assertErrorMessage('Invalid URL protocol.', done));
|
|
104
|
+
});
|
|
105
|
+
it('returns error for invalid (no path) URL', function(done) {
|
|
106
|
+
validateArgs('https://invalid.example.com', {}, assertErrorMessage('Invalid URL, missing path element (no database).', done));
|
|
107
|
+
});
|
|
108
|
+
it('returns error for invalid (no protocol, no host) URL', function(done) {
|
|
109
|
+
validateArgs('invalid', {}, assertErrorMessage('Invalid URL', done));
|
|
110
|
+
});
|
|
111
|
+
it('returns error for invalid buffer size type', function(done) {
|
|
112
|
+
validateArgs(goodUrl, { bufferSize: '123' }, assertErrorMessage('Invalid buffer size option, must be a positive integer in the range (0, MAX_SAFE_INTEGER]', done));
|
|
113
|
+
});
|
|
114
|
+
it('returns error for zero buffer size', function(done) {
|
|
115
|
+
validateArgs(goodUrl, { bufferSize: 0 }, assertErrorMessage('Invalid buffer size option, must be a positive integer in the range (0, MAX_SAFE_INTEGER]', done));
|
|
116
|
+
});
|
|
117
|
+
it('returns error for float buffer size', function(done) {
|
|
118
|
+
validateArgs(goodUrl, { bufferSize: 1.23 }, assertErrorMessage('Invalid buffer size option, must be a positive integer in the range (0, MAX_SAFE_INTEGER]', done));
|
|
119
|
+
});
|
|
120
|
+
it('returns no error for valid buffer size type', function(done) {
|
|
121
|
+
validateArgs(goodUrl, { bufferSize: 123 }, assertNoError(done));
|
|
122
|
+
});
|
|
123
|
+
it('returns error for invalid log type', function(done) {
|
|
124
|
+
validateArgs(goodUrl, { log: true }, assertErrorMessage('Invalid log option, must be type string', done));
|
|
125
|
+
});
|
|
126
|
+
it('returns no error for valid log type', function(done) {
|
|
127
|
+
validateArgs(goodUrl, { log: 'log.txt' }, assertNoError(done));
|
|
128
|
+
});
|
|
129
|
+
it('returns error for invalid mode type', function(done) {
|
|
130
|
+
validateArgs(goodUrl, { mode: true }, assertErrorMessage('Invalid mode option, must be either "full" or "shallow"', done));
|
|
131
|
+
});
|
|
132
|
+
it('returns error for invalid mode string', function(done) {
|
|
133
|
+
validateArgs(goodUrl, { mode: 'foobar' }, assertErrorMessage('Invalid mode option, must be either "full" or "shallow"', done));
|
|
134
|
+
});
|
|
135
|
+
it('returns no error for valid mode type', function(done) {
|
|
136
|
+
validateArgs(goodUrl, { mode: 'full' }, assertNoError(done));
|
|
137
|
+
});
|
|
138
|
+
it('returns error for invalid output type', function(done) {
|
|
139
|
+
validateArgs(goodUrl, { output: true }, assertErrorMessage('Invalid output option, must be type string', done));
|
|
140
|
+
});
|
|
141
|
+
it('returns no error for valid output type', function(done) {
|
|
142
|
+
validateArgs(goodUrl, { output: 'output.txt' }, assertNoError(done));
|
|
143
|
+
});
|
|
144
|
+
it('returns error for invalid parallelism type', function(done) {
|
|
145
|
+
validateArgs(goodUrl, { parallelism: '123' }, assertErrorMessage('Invalid parallelism option, must be a positive integer in the range (0, MAX_SAFE_INTEGER]', done));
|
|
146
|
+
});
|
|
147
|
+
it('returns error for zero parallelism', function(done) {
|
|
148
|
+
validateArgs(goodUrl, { parallelism: 0 }, assertErrorMessage('Invalid parallelism option, must be a positive integer in the range (0, MAX_SAFE_INTEGER]', done));
|
|
149
|
+
});
|
|
150
|
+
it('returns error for float parallelism', function(done) {
|
|
151
|
+
validateArgs(goodUrl, { parallelism: 1.23 }, assertErrorMessage('Invalid parallelism option, must be a positive integer in the range (0, MAX_SAFE_INTEGER]', done));
|
|
152
|
+
});
|
|
153
|
+
it('returns no error for valid parallelism type', function(done) {
|
|
154
|
+
validateArgs(goodUrl, { parallelism: 123 }, assertNoError(done));
|
|
155
|
+
});
|
|
156
|
+
it('returns error for invalid request timeout type', function(done) {
|
|
157
|
+
validateArgs(goodUrl, { requestTimeout: '123' }, assertErrorMessage('Invalid request timeout option, must be a positive integer in the range (0, MAX_SAFE_INTEGER]', done));
|
|
158
|
+
});
|
|
159
|
+
it('returns error for zero request timeout', function(done) {
|
|
160
|
+
validateArgs(goodUrl, { requestTimeout: 0 }, assertErrorMessage('Invalid request timeout option, must be a positive integer in the range (0, MAX_SAFE_INTEGER]', done));
|
|
161
|
+
});
|
|
162
|
+
it('returns error for float request timout', function(done) {
|
|
163
|
+
validateArgs(goodUrl, { requestTimeout: 1.23 }, assertErrorMessage('Invalid request timeout option, must be a positive integer in the range (0, MAX_SAFE_INTEGER]', done));
|
|
164
|
+
});
|
|
165
|
+
it('returns no error for valid request timeout type', function(done) {
|
|
166
|
+
validateArgs(goodUrl, { requestTimeout: 123 }, assertNoError(done));
|
|
167
|
+
});
|
|
168
|
+
it('returns error for invalid resume type', function(done) {
|
|
169
|
+
validateArgs(goodUrl, { resume: 'true' }, assertErrorMessage('Invalid resume option, must be type boolean', done));
|
|
170
|
+
});
|
|
171
|
+
it('returns no error for valid resume type', function(done) {
|
|
172
|
+
validateArgs(goodUrl, { resume: false }, assertNoError(done));
|
|
173
|
+
});
|
|
174
|
+
it('returns error for invalid key type', function(done) {
|
|
175
|
+
validateArgs(goodUrl, { iamApiKey: true }, assertErrorMessage('Invalid iamApiKey option, must be type string', done));
|
|
176
|
+
});
|
|
177
|
+
it('returns error for key and URL credentials supplied', function(done) {
|
|
178
|
+
validateArgs('https://a:b@example.com/db', { iamApiKey: 'abc123' }, assertErrorMessage('URL user information must not be supplied when using IAM API key.', done));
|
|
179
|
+
});
|
|
180
|
+
it('warns for log arg in shallow mode', function(done) {
|
|
181
|
+
captureStderr();
|
|
182
|
+
try {
|
|
183
|
+
validateArgs(goodUrl, { mode: 'shallow', log: 'test' }, function(err, data) {
|
|
184
|
+
assert.ok(err);
|
|
185
|
+
assert.ok(!data);
|
|
186
|
+
assert(capturedStderr.indexOf('The options "log" and "resume" are invalid when using shallow mode.') > -1, 'Log warning message was not present');
|
|
187
|
+
});
|
|
188
|
+
done();
|
|
189
|
+
} catch (e) {
|
|
190
|
+
done(e);
|
|
191
|
+
} finally {
|
|
192
|
+
releaseStderr();
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
it('warns for resume arg in shallow mode', function(done) {
|
|
196
|
+
captureStderr();
|
|
197
|
+
try {
|
|
198
|
+
validateArgs(goodUrl, { mode: 'shallow', log: 'test', resume: true }, function(err, data) {
|
|
199
|
+
assert.ok(err);
|
|
200
|
+
assert.ok(!data);
|
|
201
|
+
assert(capturedStderr.indexOf('The options "log" and "resume" are invalid when using shallow mode.') > -1, 'Log warning message was not present');
|
|
202
|
+
});
|
|
203
|
+
done();
|
|
204
|
+
} catch (e) {
|
|
205
|
+
done(e);
|
|
206
|
+
} finally {
|
|
207
|
+
releaseStderr();
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
it('warns for parallism arg in shallow mode', function(done) {
|
|
211
|
+
captureStderr();
|
|
212
|
+
try {
|
|
213
|
+
validateArgs(goodUrl, { mode: 'shallow', parallelsim: 10 }, function(err, data) {
|
|
214
|
+
assert.ok(err);
|
|
215
|
+
assert.ok(!data);
|
|
216
|
+
assert(capturedStderr.indexOf('The option "parallelism" has no effect when using shallow mode.') > -1, 'Log warning message was not present');
|
|
217
|
+
});
|
|
218
|
+
done();
|
|
219
|
+
} catch (e) {
|
|
220
|
+
done(e);
|
|
221
|
+
} finally {
|
|
222
|
+
releaseStderr();
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
});
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// Copyright © 2017 IBM Corp. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
/* global after before describe */
|
|
16
|
+
'use strict';
|
|
17
|
+
|
|
18
|
+
const url = require('url');
|
|
19
|
+
const toxy = require('toxy');
|
|
20
|
+
// Import the common hooks
|
|
21
|
+
require('../test/hooks.js');
|
|
22
|
+
|
|
23
|
+
const tpoisons = toxy.poisons;
|
|
24
|
+
const trules = toxy.rules;
|
|
25
|
+
|
|
26
|
+
function setupProxy(poison) {
|
|
27
|
+
const backendUrl = new url.URL(process.env.COUCH_BACKEND_URL);
|
|
28
|
+
const proxy = toxy({
|
|
29
|
+
auth: `${backendUrl.username}:${backendUrl.password}`,
|
|
30
|
+
changeOrigin: true
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// Forward traffic to DB
|
|
34
|
+
proxy.forward(process.env.COUCH_BACKEND_URL);
|
|
35
|
+
|
|
36
|
+
switch (poison) {
|
|
37
|
+
case 'normal':
|
|
38
|
+
// No poisons to add
|
|
39
|
+
break;
|
|
40
|
+
case 'bandwidth-limit':
|
|
41
|
+
// https://github.com/h2non/toxy#bandwidth
|
|
42
|
+
// Note the implementation of bandwidth is simplistic and the threshold
|
|
43
|
+
// delay is applied to every write of the buffer, so use the smallest
|
|
44
|
+
// delay possible and adjust the rate using the bytes size instead.
|
|
45
|
+
proxy
|
|
46
|
+
.poison(tpoisons.bandwidth({ bytes: 512, threshold: 1 })); // 0.5 MB/s
|
|
47
|
+
break;
|
|
48
|
+
case 'latency':
|
|
49
|
+
// https://github.com/h2non/toxy#latency
|
|
50
|
+
proxy
|
|
51
|
+
.poison(tpoisons.latency({ max: 1500, min: 250 }))
|
|
52
|
+
.withRule(trules.probability(60));
|
|
53
|
+
break;
|
|
54
|
+
case 'slow-read':
|
|
55
|
+
// https://github.com/h2non/toxy#slow-read
|
|
56
|
+
// Note this only impacts read of data from requests so only for non-GET
|
|
57
|
+
// In practice this means that it impacts restore much more than backup
|
|
58
|
+
// since although backup POSTs to _bulk_get the content is much smaller
|
|
59
|
+
// than what is POSTed to _bulk_docs for a restore.
|
|
60
|
+
// Similarly to bandwidth-limit use a 1 ms threshold
|
|
61
|
+
proxy
|
|
62
|
+
.poison(tpoisons.slowRead({ chunk: 256, threshold: 1 }))
|
|
63
|
+
// Slow read for 10 % of the time e.g. 10 ms in every 100
|
|
64
|
+
.withRule(trules.timeThreshold({ duration: 10, period: 100 }));
|
|
65
|
+
break;
|
|
66
|
+
case 'rate-limit':
|
|
67
|
+
// https://github.com/h2non/toxy#rate-limit
|
|
68
|
+
// Simulate the Cloudant free plan with 20 lookups ps and 10 writes ps
|
|
69
|
+
proxy.post('/*/_bulk_get')
|
|
70
|
+
.poison(tpoisons.rateLimit({ limit: 20, threshold: 1000 }));
|
|
71
|
+
proxy.post('/*/_bulk_docs')
|
|
72
|
+
.poison(tpoisons.rateLimit({ limit: 10, threshold: 1000 }));
|
|
73
|
+
break;
|
|
74
|
+
default:
|
|
75
|
+
throw Error('Unknown toxy poison ' + poison);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Catch remaining traffic
|
|
79
|
+
proxy.all('/*');
|
|
80
|
+
return proxy;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const poisons = [
|
|
84
|
+
'normal',
|
|
85
|
+
'bandwidth-limit',
|
|
86
|
+
'latency',
|
|
87
|
+
'slow-read',
|
|
88
|
+
'rate-limit'
|
|
89
|
+
];
|
|
90
|
+
|
|
91
|
+
poisons.forEach(function(poison) {
|
|
92
|
+
describe('unreliable network tests (using toxy poison ' + poison + ')', function() {
|
|
93
|
+
let proxy;
|
|
94
|
+
|
|
95
|
+
before('start toxy server', function() {
|
|
96
|
+
proxy = setupProxy(poison);
|
|
97
|
+
console.log('Using toxy poison ' + poison);
|
|
98
|
+
|
|
99
|
+
// For these tests COUCH_URL points to the toxy proxy on localhost whereas
|
|
100
|
+
// COUCH_BACKEND_URL is the real CouchDb instance.
|
|
101
|
+
const toxyUrl = new url.URL(process.env.COUCH_URL);
|
|
102
|
+
// Listen on the specified hostname only, so if using localhost we don't
|
|
103
|
+
// need external connections.
|
|
104
|
+
proxy.listen(toxyUrl.port, toxyUrl.hostname);
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
after('stop toxy server', function() {
|
|
108
|
+
proxy.close();
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
delete require.cache[require.resolve('../test/ci_e2e.js')];
|
|
112
|
+
require('../test/ci_e2e.js');
|
|
113
|
+
});
|
|
114
|
+
});
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
<testsuites name="test-iam">
|
|
2
|
+
<testsuite name="Basic backup and restore using API" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-04T15:56:32" time="4.678">
|
|
3
|
+
<testcase classname="test-iam.Basic backup and restore using API" name="should backup animaldb to a file correctly" time="1.171">
|
|
4
|
+
<system-out><![CDATA[{ total: 15 }
|
|
5
|
+
]]></system-out>
|
|
6
|
+
</testcase>
|
|
7
|
+
<testcase classname="test-iam.Basic backup and restore using API" name="should restore animaldb to a database correctly" time="1.83">
|
|
8
|
+
<system-out><![CDATA[{ total: 15 }
|
|
9
|
+
]]></system-out>
|
|
10
|
+
</testcase>
|
|
11
|
+
<testcase classname="test-iam.Basic backup and restore using API" name="should execute a shallow mode backup successfully" time="0.566">
|
|
12
|
+
<system-out><![CDATA[{ total: 11 }
|
|
13
|
+
]]></system-out>
|
|
14
|
+
</testcase>
|
|
15
|
+
</testsuite>
|
|
16
|
+
<testsuite name="Basic backup and restore using API Buffer size tests using API" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-04T15:56:37" time="11.461">
|
|
17
|
+
<testcase classname="test-iam.Basic backup and restore using API Buffer size tests using API" name="should backup/restore animaldb with the same buffer size" time="3.681">
|
|
18
|
+
<system-out><![CDATA[{ total: 15 }
|
|
19
|
+
{ total: 15 }
|
|
20
|
+
]]></system-out>
|
|
21
|
+
</testcase>
|
|
22
|
+
<testcase classname="test-iam.Basic backup and restore using API Buffer size tests using API" name="should backup/restore animaldb with backup buffer > restore buffer" time="3.359">
|
|
23
|
+
<system-out><![CDATA[{ total: 15 }
|
|
24
|
+
{ total: 15 }
|
|
25
|
+
]]></system-out>
|
|
26
|
+
</testcase>
|
|
27
|
+
<testcase classname="test-iam.Basic backup and restore using API Buffer size tests using API" name="should backup/restore animaldb with backup buffer < restore buffer" time="3.638">
|
|
28
|
+
<system-out><![CDATA[{ total: 15 }
|
|
29
|
+
{ total: 15 }
|
|
30
|
+
]]></system-out>
|
|
31
|
+
</testcase>
|
|
32
|
+
</testsuite>
|
|
33
|
+
<testsuite name="Basic backup and restore using CLI" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-04T15:56:48" time="5.169">
|
|
34
|
+
<testcase classname="test-iam.Basic backup and restore using CLI" name="should backup animaldb to a file correctly" time="1.238">
|
|
35
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
36
|
+
]]></system-out>
|
|
37
|
+
</testcase>
|
|
38
|
+
<testcase classname="test-iam.Basic backup and restore using CLI" name="should restore animaldb to a database correctly" time="2.179">
|
|
39
|
+
</testcase>
|
|
40
|
+
<testcase classname="test-iam.Basic backup and restore using CLI" name="should execute a shallow mode backup successfully" time="0.971">
|
|
41
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
42
|
+
]]></system-out>
|
|
43
|
+
</testcase>
|
|
44
|
+
</testsuite>
|
|
45
|
+
<testsuite name="Basic backup and restore using CLI Buffer size tests using CLI" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-04T15:56:53" time="14.231">
|
|
46
|
+
<testcase classname="test-iam.Basic backup and restore using CLI Buffer size tests using CLI" name="should backup/restore animaldb with the same buffer size" time="4.769">
|
|
47
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
48
|
+
]]></system-out>
|
|
49
|
+
</testcase>
|
|
50
|
+
<testcase classname="test-iam.Basic backup and restore using CLI Buffer size tests using CLI" name="should backup/restore animaldb with backup buffer > restore buffer" time="4.218">
|
|
51
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
52
|
+
]]></system-out>
|
|
53
|
+
</testcase>
|
|
54
|
+
<testcase classname="test-iam.Basic backup and restore using CLI Buffer size tests using CLI" name="should backup/restore animaldb with backup buffer < restore buffer" time="4.462">
|
|
55
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
56
|
+
]]></system-out>
|
|
57
|
+
</testcase>
|
|
58
|
+
</testsuite>
|
|
59
|
+
<testsuite name="Compression tests using API" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-04T15:57:08" time="6.477">
|
|
60
|
+
<testcase classname="test-iam.Compression tests using API" name="should backup animaldb to a compressed file" time="1.01">
|
|
61
|
+
<system-out><![CDATA[{ total: 15 }
|
|
62
|
+
]]></system-out>
|
|
63
|
+
</testcase>
|
|
64
|
+
<testcase classname="test-iam.Compression tests using API" name="should backup and restore animaldb via a compressed file" time="2.595">
|
|
65
|
+
<system-out><![CDATA[{ total: 15 }
|
|
66
|
+
{ total: 15 }
|
|
67
|
+
]]></system-out>
|
|
68
|
+
</testcase>
|
|
69
|
+
<testcase classname="test-iam.Compression tests using API" name="should backup and restore animaldb via a compressed stream" time="2.092">
|
|
70
|
+
<system-out><![CDATA[{ total: 15 }
|
|
71
|
+
{ total: 15 }
|
|
72
|
+
]]></system-out>
|
|
73
|
+
</testcase>
|
|
74
|
+
</testsuite>
|
|
75
|
+
<testsuite name="Compression tests using CLI" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-04T15:57:14" time="8.76">
|
|
76
|
+
<testcase classname="test-iam.Compression tests using CLI" name="should backup animaldb to a compressed file" time="1.247">
|
|
77
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
78
|
+
]]></system-out>
|
|
79
|
+
</testcase>
|
|
80
|
+
<testcase classname="test-iam.Compression tests using CLI" name="should backup and restore animaldb via a compressed file" time="4.042">
|
|
81
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
82
|
+
]]></system-out>
|
|
83
|
+
</testcase>
|
|
84
|
+
<testcase classname="test-iam.Compression tests using CLI" name="should backup and restore animaldb via a compressed stream" time="2.687">
|
|
85
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
86
|
+
]]></system-out>
|
|
87
|
+
</testcase>
|
|
88
|
+
</testsuite>
|
|
89
|
+
<testsuite name="End to end backup and restore using API" tests="2" errors="0" failures="0" skipped="0" timestamp="2023-04-04T15:57:23" time="345.506">
|
|
90
|
+
<testcase classname="test-iam.End to end backup and restore using API" name="should backup and restore animaldb" time="2.083">
|
|
91
|
+
<system-out><![CDATA[{ total: 15 }
|
|
92
|
+
{ total: 15 }
|
|
93
|
+
]]></system-out>
|
|
94
|
+
</testcase>
|
|
95
|
+
<testcase classname="test-iam.End to end backup and restore using API" name="should backup and restore largedb1g #slow" time="342.642">
|
|
96
|
+
<system-out><![CDATA[{ total: 522948 }
|
|
97
|
+
{ total: 522948 }
|
|
98
|
+
]]></system-out>
|
|
99
|
+
</testcase>
|
|
100
|
+
</testsuite>
|
|
101
|
+
<testsuite name="End to end backup and restore using CLI" tests="2" errors="0" failures="0" skipped="0" timestamp="2023-04-04T16:03:08" time="546.769">
|
|
102
|
+
<testcase classname="test-iam.End to end backup and restore using CLI" name="should backup and restore animaldb" time="2.865">
|
|
103
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
104
|
+
]]></system-out>
|
|
105
|
+
</testcase>
|
|
106
|
+
<testcase classname="test-iam.End to end backup and restore using CLI" name="should backup and restore largedb1g #slow" time="543.145">
|
|
107
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
108
|
+
]]></system-out>
|
|
109
|
+
</testcase>
|
|
110
|
+
</testsuite>
|
|
111
|
+
<testsuite name="Encryption tests" tests="1" errors="0" failures="0" skipped="0" timestamp="2023-04-04T16:12:15" time="4.02">
|
|
112
|
+
<testcase classname="test-iam.Encryption tests" name="should backup and restore animaldb via an encrypted file" time="3.76">
|
|
113
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
114
|
+
]]></system-out>
|
|
115
|
+
</testcase>
|
|
116
|
+
</testsuite>
|
|
117
|
+
<testsuite name="Write error tests" tests="1" errors="0" failures="0" skipped="0" timestamp="2023-04-04T16:12:20" time="0.267">
|
|
118
|
+
<testcase classname="test-iam.Write error tests" name="calls callback with error set when stream is not writeable" time="0.01">
|
|
119
|
+
</testcase>
|
|
120
|
+
</testsuite>
|
|
121
|
+
<testsuite name="Event tests" tests="2" errors="0" failures="0" skipped="0" timestamp="2023-04-04T16:12:20" time="2.19">
|
|
122
|
+
<testcase classname="test-iam.Event tests" name="should get a finished event when using stdout" time="0.824">
|
|
123
|
+
</testcase>
|
|
124
|
+
<testcase classname="test-iam.Event tests" name="should get a finished event when using file output" time="0.837">
|
|
125
|
+
</testcase>
|
|
126
|
+
</testsuite>
|
|
127
|
+
<testsuite name="Resume tests using API" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-04T16:12:22" time="5.219">
|
|
128
|
+
<testcase classname="test-iam.Resume tests using API" name="should create a log file" time="0.84">
|
|
129
|
+
<system-out><![CDATA[{ total: 15 }
|
|
130
|
+
]]></system-out>
|
|
131
|
+
</testcase>
|
|
132
|
+
<testcase classname="test-iam.Resume tests using API" name="should restore corrupted animaldb to a database correctly" time="1.746">
|
|
133
|
+
<system-out><![CDATA[{ total: 15 }
|
|
134
|
+
]]></system-out>
|
|
135
|
+
</testcase>
|
|
136
|
+
<testcase classname="test-iam.Resume tests using API" name="should restore resumed animaldb with blank line to a database correctly" time="1.796">
|
|
137
|
+
<system-out><![CDATA[{ total: 15 }
|
|
138
|
+
]]></system-out>
|
|
139
|
+
</testcase>
|
|
140
|
+
</testsuite>
|
|
141
|
+
<testsuite name="Resume tests using CLI" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-04T16:12:27" time="6.555">
|
|
142
|
+
<testcase classname="test-iam.Resume tests using CLI" name="should create a log file" time="1.362">
|
|
143
|
+
<system-out><![CDATA[Backup process close 0 null
|
|
144
|
+
]]></system-out>
|
|
145
|
+
</testcase>
|
|
146
|
+
<testcase classname="test-iam.Resume tests using CLI" name="should restore corrupted animaldb to a database correctly" time="2.226">
|
|
147
|
+
</testcase>
|
|
148
|
+
<testcase classname="test-iam.Resume tests using CLI" name="should restore resumed animaldb with blank line to a database correctly" time="2.173">
|
|
149
|
+
</testcase>
|
|
150
|
+
</testsuite>
|
|
151
|
+
<testsuite name="Resume tests" tests="2" errors="0" failures="0" skipped="0" timestamp="2023-04-04T16:12:34" time="34.654">
|
|
152
|
+
<testcase classname="test-iam.Resume tests" name="should correctly backup and restore backup10m" time="17.304">
|
|
153
|
+
<system-out><![CDATA[Backup process close null SIGTERM
|
|
154
|
+
Backup process close 0 null
|
|
155
|
+
]]></system-out>
|
|
156
|
+
</testcase>
|
|
157
|
+
<testcase classname="test-iam.Resume tests" name="should correctly backup and restore backup10m using --output" time="16.835">
|
|
158
|
+
<system-out><![CDATA[Backup process close null SIGTERM
|
|
159
|
+
Backup process close 0 null
|
|
160
|
+
]]></system-out>
|
|
161
|
+
</testcase>
|
|
162
|
+
</testsuite>
|
|
163
|
+
<testsuite name="Longer spool changes checks" tests="1" errors="0" failures="0" skipped="0" timestamp="2023-04-04T16:13:09" time="53.696">
|
|
164
|
+
<testcase classname="test-iam.Longer spool changes checks" name="#slow should keep collecting changes (25M)" time="53.435">
|
|
165
|
+
</testcase>
|
|
166
|
+
</testsuite>
|
|
167
|
+
</testsuites>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Copyright © 2017 IBM Corp. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
/* global describe it */
|
|
16
|
+
'use strict';
|
|
17
|
+
|
|
18
|
+
const assert = require('assert');
|
|
19
|
+
const logfilesummary = require('../includes/logfilesummary.js');
|
|
20
|
+
|
|
21
|
+
describe('#unit Fetching summary from the log file', function() {
|
|
22
|
+
it('should fetch a summary correctly', function(done) {
|
|
23
|
+
logfilesummary('./test/fixtures/test.log', function(err, data) {
|
|
24
|
+
assert.ok(!err);
|
|
25
|
+
assert.ok(data);
|
|
26
|
+
assert.strictEqual(data.changesComplete, true);
|
|
27
|
+
assert.strictEqual(typeof data.batches, 'object');
|
|
28
|
+
assert.strictEqual(Object.keys(data.batches).length, 2);
|
|
29
|
+
assert.deepStrictEqual(data.batches['1'], true);
|
|
30
|
+
assert.deepStrictEqual(data.batches['4'], true);
|
|
31
|
+
done();
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
});
|