@cloudant/couchbackup 2.9.9-SNAPSHOT.97 → 2.9.9-SNAPSHOT.99
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/report-task.txt +2 -2
- package/.scannerwork/scanner-report/analysis-warnings.pb +2 -2
- package/.scannerwork/scanner-report/changesets-18.pb +1 -0
- package/.scannerwork/scanner-report/changesets-2.pb +1 -0
- package/.scannerwork/scanner-report/changesets-3.pb +1 -0
- package/.scannerwork/scanner-report/changesets-38.pb +1 -0
- package/.scannerwork/scanner-report/changesets-39.pb +1 -0
- package/.scannerwork/scanner-report/changesets-55.pb +1 -0
- package/.scannerwork/scanner-report/changesets-56.pb +1 -0
- package/.scannerwork/scanner-report/changesets-59.pb +1 -0
- package/.scannerwork/scanner-report/changesets-60.pb +1 -0
- package/.scannerwork/scanner-report/changesets-61.pb +1 -0
- package/.scannerwork/scanner-report/changesets-62.pb +1 -0
- package/.scannerwork/scanner-report/changesets-63.pb +1 -0
- package/.scannerwork/scanner-report/changesets-67.pb +1 -0
- package/.scannerwork/scanner-report/component-1.pb +1 -1
- package/.scannerwork/scanner-report/component-18.pb +1 -0
- package/.scannerwork/scanner-report/component-19.pb +1 -1
- package/.scannerwork/scanner-report/component-2.pb +1 -0
- package/.scannerwork/scanner-report/component-20.pb +1 -1
- package/.scannerwork/scanner-report/component-21.pb +1 -1
- package/.scannerwork/scanner-report/component-22.pb +1 -1
- package/.scannerwork/scanner-report/component-23.pb +1 -1
- package/.scannerwork/scanner-report/component-24.pb +1 -1
- package/.scannerwork/scanner-report/component-25.pb +1 -1
- package/.scannerwork/scanner-report/component-26.pb +1 -1
- package/.scannerwork/scanner-report/component-27.pb +1 -1
- package/.scannerwork/scanner-report/component-28.pb +1 -1
- package/.scannerwork/scanner-report/component-29.pb +1 -1
- package/.scannerwork/scanner-report/component-3.pb +1 -0
- package/.scannerwork/scanner-report/component-30.pb +1 -1
- package/.scannerwork/scanner-report/component-31.pb +1 -1
- package/.scannerwork/scanner-report/component-32.pb +1 -1
- package/.scannerwork/scanner-report/component-33.pb +1 -1
- package/.scannerwork/scanner-report/component-34.pb +1 -1
- package/.scannerwork/scanner-report/component-35.pb +1 -1
- package/.scannerwork/scanner-report/component-37.pb +1 -1
- package/.scannerwork/scanner-report/component-38.pb +1 -1
- package/.scannerwork/scanner-report/component-39.pb +1 -0
- package/.scannerwork/scanner-report/component-4.pb +1 -1
- package/.scannerwork/scanner-report/component-40.pb +1 -1
- package/.scannerwork/scanner-report/component-42.pb +1 -1
- package/.scannerwork/scanner-report/component-43.pb +1 -1
- package/.scannerwork/scanner-report/component-47.pb +1 -1
- package/.scannerwork/scanner-report/component-5.pb +1 -1
- package/.scannerwork/scanner-report/component-51.pb +1 -1
- package/.scannerwork/scanner-report/component-52.pb +1 -1
- package/.scannerwork/scanner-report/component-53.pb +1 -1
- package/.scannerwork/scanner-report/component-54.pb +1 -1
- package/.scannerwork/scanner-report/component-55.pb +1 -1
- package/.scannerwork/scanner-report/component-56.pb +1 -0
- package/.scannerwork/scanner-report/component-57.pb +1 -1
- package/.scannerwork/scanner-report/component-58.pb +1 -1
- package/.scannerwork/scanner-report/component-59.pb +1 -1
- package/.scannerwork/scanner-report/component-6.pb +1 -1
- package/.scannerwork/scanner-report/component-60.pb +1 -0
- package/.scannerwork/scanner-report/component-61.pb +1 -1
- package/.scannerwork/scanner-report/component-62.pb +1 -0
- package/.scannerwork/scanner-report/component-63.pb +1 -0
- package/.scannerwork/scanner-report/component-64.pb +1 -0
- package/.scannerwork/scanner-report/component-65.pb +1 -1
- package/.scannerwork/scanner-report/component-67.pb +1 -0
- package/.scannerwork/scanner-report/coverages-18.pb +0 -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-37.pb +0 -0
- package/.scannerwork/scanner-report/coverages-38.pb +0 -0
- package/.scannerwork/scanner-report/coverages-39.pb +0 -0
- package/.scannerwork/scanner-report/coverages-4.pb +0 -0
- package/.scannerwork/scanner-report/coverages-5.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-55.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-60.pb +0 -0
- package/.scannerwork/scanner-report/coverages-61.pb +0 -0
- package/.scannerwork/scanner-report/coverages-65.pb +0 -0
- package/.scannerwork/scanner-report/coverages-67.pb +0 -0
- package/.scannerwork/scanner-report/duplications-19.pb +0 -3
- package/.scannerwork/scanner-report/duplications-20.pb +2 -0
- package/.scannerwork/scanner-report/duplications-21.pb +0 -2
- package/.scannerwork/scanner-report/duplications-22.pb +0 -3
- package/.scannerwork/scanner-report/duplications-31.pb +2 -0
- package/.scannerwork/scanner-report/duplications-32.pb +3 -2
- package/.scannerwork/scanner-report/duplications-33.pb +3 -0
- package/.scannerwork/scanner-report/duplications-5.pb +3 -3
- package/.scannerwork/scanner-report/duplications-51.pb +2 -0
- package/.scannerwork/scanner-report/duplications-54.pb +2 -0
- package/.scannerwork/scanner-report/duplications-62.pb +0 -0
- package/.scannerwork/scanner-report/duplications-63.pb +0 -0
- package/.scannerwork/scanner-report/duplications-65.pb +1 -1
- package/.scannerwork/scanner-report/duplications-67.pb +2 -0
- package/.scannerwork/scanner-report/issues-23.pb +6 -0
- package/.scannerwork/scanner-report/issues-29.pb +2 -5
- package/.scannerwork/scanner-report/measures-18.pb +0 -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 +0 -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-37.pb +0 -0
- package/.scannerwork/scanner-report/measures-38.pb +0 -0
- package/.scannerwork/scanner-report/measures-39.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-42.pb +0 -0
- package/.scannerwork/scanner-report/measures-43.pb +0 -0
- package/.scannerwork/scanner-report/measures-47.pb +0 -0
- package/.scannerwork/scanner-report/measures-5.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-60.pb +0 -0
- package/.scannerwork/scanner-report/measures-61.pb +0 -0
- package/.scannerwork/scanner-report/measures-64.pb +0 -0
- package/.scannerwork/scanner-report/measures-65.pb +0 -0
- package/.scannerwork/scanner-report/measures-67.pb +0 -0
- package/.scannerwork/scanner-report/metadata.pb +0 -0
- package/.scannerwork/scanner-report/source-18.txt +36 -0
- package/.scannerwork/scanner-report/source-19.txt +13 -110
- package/.scannerwork/scanner-report/source-20.txt +274 -16
- package/.scannerwork/scanner-report/source-21.txt +14 -271
- package/.scannerwork/scanner-report/source-22.txt +35 -91
- package/.scannerwork/scanner-report/source-23.txt +348 -74
- package/.scannerwork/scanner-report/source-24.txt +17 -607
- package/.scannerwork/scanner-report/source-25.txt +46 -7
- package/.scannerwork/scanner-report/source-26.txt +7 -41
- package/.scannerwork/scanner-report/source-27.txt +51 -19
- package/.scannerwork/scanner-report/source-28.txt +130 -116
- package/.scannerwork/scanner-report/source-29.txt +28 -347
- package/.scannerwork/scanner-report/source-30.txt +127 -16
- package/.scannerwork/scanner-report/source-31.txt +130 -85
- package/.scannerwork/scanner-report/source-32.txt +88 -114
- package/.scannerwork/scanner-report/source-33.txt +187 -99
- package/.scannerwork/scanner-report/source-34.txt +125 -51
- package/.scannerwork/scanner-report/source-35.txt +67 -122
- package/.scannerwork/scanner-report/source-37.txt +53 -90
- package/.scannerwork/scanner-report/source-38.txt +56 -167
- package/.scannerwork/scanner-report/source-39.txt +114 -0
- package/.scannerwork/scanner-report/source-4.txt +607 -16
- package/.scannerwork/scanner-report/source-40.txt +51 -393
- package/.scannerwork/scanner-report/source-42.txt +509 -104
- package/.scannerwork/scanner-report/source-43.txt +509 -92
- package/.scannerwork/scanner-report/source-47.txt +509 -41
- package/.scannerwork/scanner-report/source-5.txt +102 -215
- package/.scannerwork/scanner-report/source-51.txt +71 -59
- package/.scannerwork/scanner-report/source-52.txt +20 -90
- package/.scannerwork/scanner-report/source-53.txt +108 -25
- package/.scannerwork/scanner-report/source-54.txt +50 -139
- package/.scannerwork/scanner-report/source-55.txt +46 -509
- package/.scannerwork/scanner-report/source-57.txt +90 -56
- package/.scannerwork/scanner-report/source-58.txt +84 -36
- package/.scannerwork/scanner-report/source-59.txt +31 -509
- package/.scannerwork/scanner-report/source-6.txt +80 -48
- package/.scannerwork/scanner-report/source-60.txt +164 -0
- package/.scannerwork/scanner-report/source-61.txt +80 -509
- package/.scannerwork/scanner-report/source-64.txt +509 -0
- package/.scannerwork/scanner-report/source-65.txt +49 -64
- package/.scannerwork/scanner-report/{source-66.txt → source-67.txt} +64 -49
- package/.scannerwork/scanner-report/symbols-18.pb +14 -0
- package/.scannerwork/scanner-report/symbols-19.pb +10 -97
- package/.scannerwork/scanner-report/symbols-20.pb +485 -16
- package/.scannerwork/scanner-report/symbols-21.pb +11 -486
- package/.scannerwork/scanner-report/symbols-22.pb +42 -76
- package/.scannerwork/scanner-report/symbols-23.pb +494 -60
- package/.scannerwork/scanner-report/symbols-24.pb +16 -1253
- package/.scannerwork/scanner-report/symbols-25.pb +36 -9
- package/.scannerwork/scanner-report/symbols-26.pb +9 -43
- package/.scannerwork/scanner-report/symbols-27.pb +45 -11
- package/.scannerwork/scanner-report/symbols-28.pb +108 -112
- package/.scannerwork/scanner-report/symbols-29.pb +26 -493
- package/.scannerwork/scanner-report/symbols-30.pb +85 -14
- package/.scannerwork/scanner-report/symbols-31.pb +102 -69
- package/.scannerwork/scanner-report/symbols-32.pb +77 -102
- package/.scannerwork/scanner-report/symbols-33.pb +385 -103
- package/.scannerwork/scanner-report/symbols-34.pb +116 -36
- package/.scannerwork/scanner-report/symbols-35.pb +60 -85
- package/.scannerwork/scanner-report/symbols-37.pb +30 -28
- package/.scannerwork/scanner-report/symbols-38.pb +19 -0
- package/.scannerwork/scanner-report/symbols-39.pb +28 -0
- package/.scannerwork/scanner-report/symbols-4.pb +1253 -9
- package/.scannerwork/scanner-report/symbols-5.pb +97 -394
- package/.scannerwork/scanner-report/symbols-51.pb +43 -45
- package/.scannerwork/scanner-report/symbols-52.pb +17 -58
- package/.scannerwork/scanner-report/symbols-53.pb +33 -20
- package/.scannerwork/scanner-report/symbols-54.pb +42 -126
- package/.scannerwork/scanner-report/symbols-55.pb +20 -0
- package/.scannerwork/scanner-report/symbols-57.pb +58 -29
- package/.scannerwork/scanner-report/symbols-58.pb +41 -18
- package/.scannerwork/scanner-report/symbols-6.pb +68 -44
- package/.scannerwork/scanner-report/symbols-60.pb +126 -0
- package/.scannerwork/scanner-report/symbols-61.pb +46 -0
- package/.scannerwork/scanner-report/symbols-65.pb +149 -176
- package/.scannerwork/scanner-report/symbols-67.pb +180 -0
- package/.scannerwork/scanner-report/syntax-highlightings-18.pb +54 -0
- package/.scannerwork/scanner-report/syntax-highlightings-19.pb +13 -145
- package/.scannerwork/scanner-report/syntax-highlightings-20.pb +623 -27
- package/.scannerwork/scanner-report/syntax-highlightings-21.pb +25 -625
- package/.scannerwork/scanner-report/syntax-highlightings-22.pb +43 -119
- package/.scannerwork/scanner-report/syntax-highlightings-23.pb +593 -73
- package/.scannerwork/scanner-report/syntax-highlightings-24.pb +27 -851
- package/.scannerwork/scanner-report/syntax-highlightings-25.pb +61 -14
- package/.scannerwork/scanner-report/syntax-highlightings-26.pb +13 -47
- package/.scannerwork/scanner-report/syntax-highlightings-27.pb +76 -25
- package/.scannerwork/scanner-report/syntax-highlightings-28.pb +186 -97
- package/.scannerwork/scanner-report/syntax-highlightings-29.pb +31 -593
- package/.scannerwork/scanner-report/syntax-highlightings-30.pb +158 -21
- package/.scannerwork/scanner-report/syntax-highlightings-31.pb +187 -65
- package/.scannerwork/scanner-report/syntax-highlightings-32.pb +118 -187
- package/.scannerwork/scanner-report/syntax-highlightings-33.pb +269 -163
- package/.scannerwork/scanner-report/syntax-highlightings-34.pb +98 -59
- package/.scannerwork/scanner-report/syntax-highlightings-35.pb +67 -148
- package/.scannerwork/scanner-report/syntax-highlightings-37.pb +82 -117
- package/.scannerwork/scanner-report/syntax-highlightings-38.pb +54 -921
- package/.scannerwork/scanner-report/syntax-highlightings-39.pb +138 -0
- package/.scannerwork/scanner-report/syntax-highlightings-4.pb +851 -14
- package/.scannerwork/scanner-report/syntax-highlightings-40.pb +727 -3526
- package/.scannerwork/scanner-report/syntax-highlightings-42.pb +3737 -105
- package/.scannerwork/scanner-report/syntax-highlightings-43.pb +3738 -79
- package/.scannerwork/scanner-report/syntax-highlightings-47.pb +3737 -39
- package/.scannerwork/scanner-report/syntax-highlightings-5.pb +147 -294
- package/.scannerwork/scanner-report/syntax-highlightings-51.pb +52 -57
- package/.scannerwork/scanner-report/syntax-highlightings-52.pb +17 -100
- package/.scannerwork/scanner-report/syntax-highlightings-53.pb +94 -29
- package/.scannerwork/scanner-report/syntax-highlightings-54.pb +39 -174
- package/.scannerwork/scanner-report/syntax-highlightings-55.pb +53 -3736
- package/.scannerwork/scanner-report/syntax-highlightings-57.pb +108 -78
- package/.scannerwork/scanner-report/syntax-highlightings-58.pb +97 -63
- package/.scannerwork/scanner-report/syntax-highlightings-59.pb +34 -3738
- package/.scannerwork/scanner-report/syntax-highlightings-6.pb +66 -71
- package/.scannerwork/scanner-report/syntax-highlightings-60.pb +213 -0
- package/.scannerwork/scanner-report/syntax-highlightings-61.pb +84 -3736
- package/.scannerwork/scanner-report/syntax-highlightings-64.pb +3747 -0
- package/.scannerwork/scanner-report/syntax-highlightings-65.pb +127 -138
- package/.scannerwork/scanner-report/syntax-highlightings-67.pb +225 -0
- package/package.json +3 -3
- package/test-14-results.xml +143 -143
- package/test-16-results.xml +147 -147
- package/test-18-results.xml +158 -158
- package/test-19-results.xml +154 -154
- package/test-iam-18-results.xml +50 -50
- package/.scannerwork/scanner-report/changesets-36.pb +0 -1
- package/.scannerwork/scanner-report/changesets-41.pb +0 -1
- package/.scannerwork/scanner-report/changesets-42.pb +0 -1
- package/.scannerwork/scanner-report/changesets-43.pb +0 -1
- package/.scannerwork/scanner-report/changesets-44.pb +0 -1
- package/.scannerwork/scanner-report/changesets-45.pb +0 -1
- package/.scannerwork/scanner-report/changesets-46.pb +0 -1
- package/.scannerwork/scanner-report/changesets-47.pb +0 -1
- package/.scannerwork/scanner-report/changesets-48.pb +0 -1
- package/.scannerwork/scanner-report/changesets-49.pb +0 -1
- package/.scannerwork/scanner-report/changesets-66.pb +0 -1
- package/.scannerwork/scanner-report/changesets-69.pb +0 -1
- package/.scannerwork/scanner-report/changesets-7.pb +0 -1
- package/.scannerwork/scanner-report/component-36.pb +0 -1
- package/.scannerwork/scanner-report/component-41.pb +0 -1
- package/.scannerwork/scanner-report/component-44.pb +0 -1
- package/.scannerwork/scanner-report/component-45.pb +0 -1
- package/.scannerwork/scanner-report/component-46.pb +0 -1
- package/.scannerwork/scanner-report/component-48.pb +0 -1
- package/.scannerwork/scanner-report/component-49.pb +0 -1
- package/.scannerwork/scanner-report/component-66.pb +0 -1
- package/.scannerwork/scanner-report/component-69.pb +0 -1
- package/.scannerwork/scanner-report/component-7.pb +0 -1
- package/.scannerwork/scanner-report/coverages-42.pb +0 -0
- package/.scannerwork/scanner-report/coverages-43.pb +0 -0
- package/.scannerwork/scanner-report/coverages-45.pb +0 -0
- package/.scannerwork/scanner-report/coverages-47.pb +0 -0
- package/.scannerwork/scanner-report/coverages-49.pb +0 -0
- package/.scannerwork/scanner-report/coverages-66.pb +0 -0
- package/.scannerwork/scanner-report/coverages-7.pb +0 -0
- package/.scannerwork/scanner-report/duplications-43.pb +0 -2
- package/.scannerwork/scanner-report/duplications-45.pb +0 -2
- package/.scannerwork/scanner-report/duplications-66.pb +0 -2
- package/.scannerwork/scanner-report/issues-7.pb +0 -3
- package/.scannerwork/scanner-report/measures-41.pb +0 -0
- package/.scannerwork/scanner-report/measures-45.pb +0 -0
- package/.scannerwork/scanner-report/measures-49.pb +0 -0
- package/.scannerwork/scanner-report/measures-66.pb +0 -0
- package/.scannerwork/scanner-report/measures-7.pb +0 -0
- package/.scannerwork/scanner-report/source-41.txt +0 -31
- package/.scannerwork/scanner-report/source-45.txt +0 -75
- package/.scannerwork/scanner-report/source-49.txt +0 -129
- package/.scannerwork/scanner-report/source-7.txt +0 -47
- package/.scannerwork/scanner-report/symbols-42.pb +0 -42
- package/.scannerwork/scanner-report/symbols-43.pb +0 -44
- package/.scannerwork/scanner-report/symbols-45.pb +0 -42
- package/.scannerwork/scanner-report/symbols-47.pb +0 -18
- package/.scannerwork/scanner-report/symbols-49.pb +0 -33
- package/.scannerwork/scanner-report/symbols-66.pb +0 -153
- package/.scannerwork/scanner-report/symbols-7.pb +0 -27
- package/.scannerwork/scanner-report/syntax-highlightings-41.pb +0 -45
- package/.scannerwork/scanner-report/syntax-highlightings-45.pb +0 -78
- package/.scannerwork/scanner-report/syntax-highlightings-49.pb +0 -129
- package/.scannerwork/scanner-report/syntax-highlightings-66.pb +0 -214
- package/.scannerwork/scanner-report/syntax-highlightings-7.pb +0 -68
- /package/.scannerwork/scanner-report/{coverages-69.pb → coverages-2.pb} +0 -0
- /package/.scannerwork/scanner-report/{coverages-36.pb → coverages-3.pb} +0 -0
- /package/.scannerwork/scanner-report/{coverages-46.pb → coverages-56.pb} +0 -0
- /package/.scannerwork/scanner-report/{coverages-41.pb → coverages-59.pb} +0 -0
- /package/.scannerwork/scanner-report/{coverages-44.pb → coverages-62.pb} +0 -0
- /package/.scannerwork/scanner-report/{coverages-48.pb → coverages-63.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-26.pb → duplications-18.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-41.pb → duplications-2.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-42.pb → duplications-25.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-36.pb → duplications-3.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-44.pb → duplications-38.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-46.pb → duplications-39.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-47.pb → duplications-55.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-48.pb → duplications-56.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-49.pb → duplications-59.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-69.pb → duplications-60.pb} +0 -0
- /package/.scannerwork/scanner-report/{duplications-7.pb → duplications-61.pb} +0 -0
- /package/.scannerwork/scanner-report/{issues-5.pb → issues-33.pb} +0 -0
- /package/.scannerwork/scanner-report/{issues-28.pb → issues-34.pb} +0 -0
- /package/.scannerwork/scanner-report/{measures-69.pb → measures-2.pb} +0 -0
- /package/.scannerwork/scanner-report/{measures-36.pb → measures-3.pb} +0 -0
- /package/.scannerwork/scanner-report/{measures-46.pb → measures-56.pb} +0 -0
- /package/.scannerwork/scanner-report/{measures-44.pb → measures-62.pb} +0 -0
- /package/.scannerwork/scanner-report/{measures-48.pb → measures-63.pb} +0 -0
- /package/.scannerwork/scanner-report/{source-69.txt → source-2.txt} +0 -0
- /package/.scannerwork/scanner-report/{source-36.txt → source-3.txt} +0 -0
- /package/.scannerwork/scanner-report/{source-46.txt → source-56.txt} +0 -0
- /package/.scannerwork/scanner-report/{source-44.txt → source-62.txt} +0 -0
- /package/.scannerwork/scanner-report/{source-48.txt → source-63.txt} +0 -0
- /package/.scannerwork/scanner-report/{symbols-69.pb → symbols-2.pb} +0 -0
- /package/.scannerwork/scanner-report/{symbols-36.pb → symbols-3.pb} +0 -0
- /package/.scannerwork/scanner-report/{symbols-46.pb → symbols-56.pb} +0 -0
- /package/.scannerwork/scanner-report/{symbols-41.pb → symbols-59.pb} +0 -0
- /package/.scannerwork/scanner-report/{symbols-44.pb → symbols-62.pb} +0 -0
- /package/.scannerwork/scanner-report/{symbols-48.pb → symbols-63.pb} +0 -0
- /package/.scannerwork/scanner-report/{syntax-highlightings-69.pb → syntax-highlightings-2.pb} +0 -0
- /package/.scannerwork/scanner-report/{syntax-highlightings-36.pb → syntax-highlightings-3.pb} +0 -0
- /package/.scannerwork/scanner-report/{syntax-highlightings-46.pb → syntax-highlightings-56.pb} +0 -0
- /package/.scannerwork/scanner-report/{syntax-highlightings-44.pb → syntax-highlightings-62.pb} +0 -0
- /package/.scannerwork/scanner-report/{syntax-highlightings-48.pb → syntax-highlightings-63.pb} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright ©
|
|
1
|
+
// Copyright © 2018, 2021 IBM Corp. All rights reserved.
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -12,136 +12,81 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
/* global describe it
|
|
15
|
+
/* global describe it */
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
|
-
const assert = require('assert');
|
|
19
18
|
const fs = require('fs');
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
//
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
testLinestream()
|
|
50
|
-
.pipe(writer(db, 500, 1, noopEmitter))
|
|
51
|
-
.on('error', function(err) {
|
|
52
|
-
done(err);
|
|
53
|
-
})
|
|
54
|
-
.on('finished', function(data) {
|
|
55
|
-
assert.strictEqual(data.total, 15);
|
|
56
|
-
assert.ok(nock.isDone());
|
|
57
|
-
done();
|
|
19
|
+
const readline = require('readline');
|
|
20
|
+
const u = require('./citestutils.js');
|
|
21
|
+
const uuid = require('uuid').v4;
|
|
22
|
+
|
|
23
|
+
const params = { useApi: true };
|
|
24
|
+
|
|
25
|
+
describe(u.scenario('Concurrent database backups', params), function() {
|
|
26
|
+
it('should run concurrent API database backups correctly #slower', function(done) {
|
|
27
|
+
// Allow up to 900 s to backup and compare (it should be much faster)!
|
|
28
|
+
u.setTimeout(this, 900);
|
|
29
|
+
|
|
30
|
+
let doneCount = 0;
|
|
31
|
+
let doneErr;
|
|
32
|
+
const finished = function(err) {
|
|
33
|
+
doneCount++;
|
|
34
|
+
if (doneCount === 2) {
|
|
35
|
+
done(doneErr || err);
|
|
36
|
+
}
|
|
37
|
+
doneErr = err;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const checkForEmptyBatches = function(fileName, cb) {
|
|
41
|
+
let foundEmptyBatch = false;
|
|
42
|
+
|
|
43
|
+
const rd = readline.createInterface({
|
|
44
|
+
input: fs.createReadStream(fileName),
|
|
45
|
+
output: fs.createWriteStream('/dev/null'),
|
|
46
|
+
terminal: false
|
|
58
47
|
});
|
|
59
|
-
});
|
|
60
48
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
.pipe(writer(db, 500, 1, noopEmitter))
|
|
68
|
-
.on('error', function(err) {
|
|
69
|
-
assert.strictEqual(err.name, 'Unauthorized');
|
|
70
|
-
assert.strictEqual(err.message, 'Access is denied due to invalid credentials.');
|
|
71
|
-
assert.ok(nock.isDone());
|
|
72
|
-
done();
|
|
49
|
+
rd.on('line', function(line) {
|
|
50
|
+
if (JSON.parse(line).length === 0) {
|
|
51
|
+
// Note: Empty batch arrays indicate that the running backup is
|
|
52
|
+
// incorrectly sharing a log file with another ongoing backup job.
|
|
53
|
+
foundEmptyBatch = true;
|
|
54
|
+
}
|
|
73
55
|
});
|
|
74
|
-
});
|
|
75
56
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.post('/_bulk_docs')
|
|
83
|
-
.reply(200, { ok: true }); // third time lucky success
|
|
84
|
-
|
|
85
|
-
testLinestream()
|
|
86
|
-
.pipe(writer(db, 500, 1, noopEmitter))
|
|
87
|
-
.on('error', function(err) {
|
|
88
|
-
done(err);
|
|
89
|
-
})
|
|
90
|
-
.on('finished', function(data) {
|
|
91
|
-
assert.strictEqual(data.total, 15);
|
|
92
|
-
assert.ok(nock.isDone());
|
|
93
|
-
done();
|
|
57
|
+
rd.on('close', function() {
|
|
58
|
+
if (foundEmptyBatch) {
|
|
59
|
+
cb(new Error(`Log file '${fileName}' contains empty batches`));
|
|
60
|
+
} else {
|
|
61
|
+
cb();
|
|
62
|
+
}
|
|
94
63
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
.pipe(writer(db, 500, 1, noopEmitter))
|
|
108
|
-
.on('error', function(err) {
|
|
109
|
-
assert.strictEqual(err.name, 'HTTPFatalError');
|
|
110
|
-
assert.strictEqual(err.message, `503 : post ${dbUrl}/_bulk_docs - Error: Service Unavailable`);
|
|
111
|
-
assert.ok(nock.isDone());
|
|
112
|
-
done();
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// [1] Run 'largedb2g' database backup
|
|
67
|
+
const actualBackup1 = `./${uuid()}`;
|
|
68
|
+
const output1 = fs.createWriteStream(actualBackup1);
|
|
69
|
+
output1.on('open', function() {
|
|
70
|
+
u.testBackup(params, 'largedb2g', output1, function(err) {
|
|
71
|
+
if (err) {
|
|
72
|
+
finished(err);
|
|
73
|
+
} else {
|
|
74
|
+
checkForEmptyBatches(actualBackup1, finished);
|
|
75
|
+
}
|
|
113
76
|
});
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
.on('finished', function(data) {
|
|
127
|
-
assert.strictEqual(data.total, 11);
|
|
128
|
-
assert.ok(nock.isDone());
|
|
129
|
-
done();
|
|
130
|
-
});
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
it('should get a batch error for non-empty array response with new_edits false', function(done) {
|
|
134
|
-
nock(dbUrl)
|
|
135
|
-
.post('/_bulk_docs')
|
|
136
|
-
.reply(200, [{ id: 'foo', error: 'foo', reason: 'bar' }]);
|
|
137
|
-
|
|
138
|
-
testLinestream()
|
|
139
|
-
.pipe(writer(db, 500, 1, noopEmitter))
|
|
140
|
-
.on('error', function(err) {
|
|
141
|
-
assert.strictEqual(err.name, 'Error');
|
|
142
|
-
assert.strictEqual(err.message, 'Error writing batch with new_edits:false and 1 items');
|
|
143
|
-
assert.ok(nock.isDone());
|
|
144
|
-
done();
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
// [2] Run 'largedb1g' database backup
|
|
80
|
+
const actualBackup2 = `./${uuid()}`;
|
|
81
|
+
const output2 = fs.createWriteStream(actualBackup2);
|
|
82
|
+
output2.on('open', function() {
|
|
83
|
+
u.testBackup(params, 'largedb1g', output2, function(err) {
|
|
84
|
+
if (err) {
|
|
85
|
+
finished(err);
|
|
86
|
+
} else {
|
|
87
|
+
checkForEmptyBatches(actualBackup2, finished);
|
|
88
|
+
}
|
|
145
89
|
});
|
|
90
|
+
});
|
|
146
91
|
});
|
|
147
92
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Copyright © 2017, 2021 IBM Corp. All rights reserved.
|
|
2
3
|
//
|
|
3
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -11,104 +12,66 @@
|
|
|
11
12
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
13
|
// See the License for the specific language governing permissions and
|
|
13
14
|
// limitations under the License.
|
|
14
|
-
|
|
15
|
-
/* global after before describe */
|
|
16
15
|
'use strict';
|
|
17
16
|
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
require('../
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
const
|
|
17
|
+
const error = require('../includes/error.js');
|
|
18
|
+
const fs = require('fs');
|
|
19
|
+
const cliutils = require('../includes/cliutils.js');
|
|
20
|
+
const couchbackup = require('../app.js');
|
|
21
|
+
const parser = require('../includes/parser.js');
|
|
22
|
+
const debug = require('debug');
|
|
23
|
+
const backupDebug = debug('couchbackup:backup');
|
|
24
|
+
const backupBatchDebug = debug('couchbackup:backup:batch');
|
|
25
25
|
|
|
26
|
-
|
|
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
|
-
});
|
|
26
|
+
backupDebug.enabled = true;
|
|
32
27
|
|
|
33
|
-
|
|
34
|
-
proxy.forward(process.env.COUCH_BACKEND_URL);
|
|
28
|
+
const program = parser.parseBackupArgs();
|
|
35
29
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
}
|
|
30
|
+
const databaseUrl = cliutils.databaseUrl(program.url, program.db);
|
|
31
|
+
const opts = {
|
|
32
|
+
bufferSize: program.bufferSize,
|
|
33
|
+
log: program.log,
|
|
34
|
+
mode: program.mode,
|
|
35
|
+
parallelism: program.parallelism,
|
|
36
|
+
requestTimeout: program.requestTimeout,
|
|
37
|
+
resume: program.resume,
|
|
38
|
+
iamApiKey: program.iamApiKey,
|
|
39
|
+
iamTokenUrl: program.iamTokenUrl
|
|
40
|
+
};
|
|
77
41
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
42
|
+
// log configuration to console
|
|
43
|
+
console.error('='.repeat(80));
|
|
44
|
+
console.error('Performing backup on ' + databaseUrl.replace(/\/\/.+@/g, '//****:****@') + ' using configuration:');
|
|
45
|
+
console.error(JSON.stringify(opts, null, 2).replace(/"iamApiKey": "[^"]+"/, '"iamApiKey": "****"'));
|
|
46
|
+
console.error('='.repeat(80));
|
|
82
47
|
|
|
83
|
-
|
|
84
|
-
'normal',
|
|
85
|
-
'bandwidth-limit',
|
|
86
|
-
'latency',
|
|
87
|
-
'slow-read',
|
|
88
|
-
'rate-limit'
|
|
89
|
-
];
|
|
48
|
+
backupBatchDebug.enabled = !program.quiet;
|
|
90
49
|
|
|
91
|
-
|
|
92
|
-
describe('unreliable network tests (using toxy poison ' + poison + ')', function() {
|
|
93
|
-
let proxy;
|
|
50
|
+
let ws = process.stdout;
|
|
94
51
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
proxy.listen(toxyUrl.port, toxyUrl.hostname);
|
|
105
|
-
});
|
|
52
|
+
// open output file
|
|
53
|
+
if (program.output) {
|
|
54
|
+
let flags = 'w';
|
|
55
|
+
if (program.log && program.resume) {
|
|
56
|
+
flags = 'a';
|
|
57
|
+
}
|
|
58
|
+
const fd = fs.openSync(program.output, flags);
|
|
59
|
+
ws = fs.createWriteStream(null, { fd: fd });
|
|
60
|
+
}
|
|
106
61
|
|
|
107
|
-
|
|
108
|
-
proxy.close();
|
|
109
|
-
});
|
|
62
|
+
backupDebug('Fetching all database changes...');
|
|
110
63
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
64
|
+
return couchbackup.backup(
|
|
65
|
+
databaseUrl,
|
|
66
|
+
ws,
|
|
67
|
+
opts,
|
|
68
|
+
error.terminationCallback
|
|
69
|
+
).on('changes', function(batch) {
|
|
70
|
+
backupBatchDebug('Total batches received:', batch + 1);
|
|
71
|
+
}).on('written', function(obj) {
|
|
72
|
+
backupBatchDebug('Written batch ID:', obj.batch, 'Total document revisions written:', obj.total, 'Time:', obj.time);
|
|
73
|
+
}).on('error', function(e) {
|
|
74
|
+
backupDebug('ERROR', e);
|
|
75
|
+
}).on('finished', function(obj) {
|
|
76
|
+
backupDebug('Finished - Total document revisions written:', obj.total);
|
|
114
77
|
});
|
|
@@ -1,167 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</testcase>
|
|
58
|
-
</testsuite>
|
|
59
|
-
<testsuite name="Compression tests using API" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-10T12:27:04" time="6.642">
|
|
60
|
-
<testcase classname="test-iam.Compression tests using API" name="should backup animaldb to a compressed file" time="0.855">
|
|
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.618">
|
|
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.382">
|
|
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-10T12:27:10" time="8.416">
|
|
76
|
-
<testcase classname="test-iam.Compression tests using CLI" name="should backup animaldb to a compressed file" time="1.539">
|
|
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="3.356">
|
|
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.738">
|
|
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-10T12:27:19" time="327.485">
|
|
90
|
-
<testcase classname="test-iam.End to end backup and restore using API" name="should backup and restore animaldb" time="2.224">
|
|
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="324.493">
|
|
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-10T12:32:46" time="514.025">
|
|
102
|
-
<testcase classname="test-iam.End to end backup and restore using CLI" name="should backup and restore animaldb" time="2.753">
|
|
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="510.509">
|
|
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-10T12:41:20" time="4.142">
|
|
112
|
-
<testcase classname="test-iam.Encryption tests" name="should backup and restore animaldb via an encrypted file" time="3.877">
|
|
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-10T12:41:25" time="0.28">
|
|
118
|
-
<testcase classname="test-iam.Write error tests" name="calls callback with error set when stream is not writeable" time="0.014">
|
|
119
|
-
</testcase>
|
|
120
|
-
</testsuite>
|
|
121
|
-
<testsuite name="Event tests" tests="2" errors="0" failures="0" skipped="0" timestamp="2023-04-10T12:41:25" time="2.456">
|
|
122
|
-
<testcase classname="test-iam.Event tests" name="should get a finished event when using stdout" time="0.888">
|
|
123
|
-
</testcase>
|
|
124
|
-
<testcase classname="test-iam.Event tests" name="should get a finished event when using file output" time="1.043">
|
|
125
|
-
</testcase>
|
|
126
|
-
</testsuite>
|
|
127
|
-
<testsuite name="Resume tests using API" tests="3" errors="0" failures="0" skipped="0" timestamp="2023-04-10T12:41:27" time="5.28">
|
|
128
|
-
<testcase classname="test-iam.Resume tests using API" name="should create a log file" time="1.033">
|
|
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.741">
|
|
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.731">
|
|
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-10T12:41:33" time="6.35">
|
|
142
|
-
<testcase classname="test-iam.Resume tests using CLI" name="should create a log file" time="1.269">
|
|
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.098">
|
|
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.188">
|
|
149
|
-
</testcase>
|
|
150
|
-
</testsuite>
|
|
151
|
-
<testsuite name="Resume tests" tests="2" errors="0" failures="0" skipped="0" timestamp="2023-04-10T12:41:39" time="32.899">
|
|
152
|
-
<testcase classname="test-iam.Resume tests" name="should correctly backup and restore backup10m" time="16.11">
|
|
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.266">
|
|
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-10T12:42:12" time="41.338">
|
|
164
|
-
<testcase classname="test-iam.Longer spool changes checks" name="#slow should keep collecting changes (25M)" time="41.072">
|
|
165
|
-
</testcase>
|
|
166
|
-
</testsuite>
|
|
167
|
-
</testsuites>
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Copyright © 2017, 2021 IBM Corp. All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
'use strict';
|
|
16
|
+
|
|
17
|
+
const error = require('../includes/error.js');
|
|
18
|
+
const cliutils = require('../includes/cliutils.js');
|
|
19
|
+
const couchbackup = require('../app.js');
|
|
20
|
+
const parser = require('../includes/parser.js');
|
|
21
|
+
const debug = require('debug');
|
|
22
|
+
const restoreDebug = debug('couchbackup:restore');
|
|
23
|
+
const restoreBatchDebug = debug('couchbackup:restore:batch');
|
|
24
|
+
|
|
25
|
+
restoreDebug.enabled = true;
|
|
26
|
+
|
|
27
|
+
const program = parser.parseRestoreArgs();
|
|
28
|
+
const databaseUrl = cliutils.databaseUrl(program.url, program.db);
|
|
29
|
+
const opts = {
|
|
30
|
+
bufferSize: program.bufferSize,
|
|
31
|
+
parallelism: program.parallelism,
|
|
32
|
+
requestTimeout: program.requestTimeout,
|
|
33
|
+
iamApiKey: program.iamApiKey,
|
|
34
|
+
iamTokenUrl: program.iamTokenUrl
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// log configuration to console
|
|
38
|
+
console.error('='.repeat(80));
|
|
39
|
+
console.error('Performing restore on ' + databaseUrl.replace(/\/\/.+@/g, '//****:****@') + ' using configuration:');
|
|
40
|
+
console.error(JSON.stringify(opts, null, 2).replace(/"iamApiKey": "[^"]+"/, '"iamApiKey": "****"'));
|
|
41
|
+
console.error('='.repeat(80));
|
|
42
|
+
|
|
43
|
+
restoreBatchDebug.enabled = !program.quiet;
|
|
44
|
+
|
|
45
|
+
return couchbackup.restore(
|
|
46
|
+
process.stdin, // restore from stdin
|
|
47
|
+
databaseUrl,
|
|
48
|
+
opts,
|
|
49
|
+
error.terminationCallback
|
|
50
|
+
).on('restored', function(obj) {
|
|
51
|
+
restoreBatchDebug('restored', obj.total);
|
|
52
|
+
}).on('error', function(e) {
|
|
53
|
+
restoreDebug('ERROR', e);
|
|
54
|
+
}).on('finished', function(obj) {
|
|
55
|
+
restoreDebug('finished', obj);
|
|
56
|
+
});
|