Commit b5a75f0
authored
Refactor non-admin backup storage location commands (migtools#43)
* Refactor non-admin backup storage location commands
- Introduced new subcommands for managing backup storage location requests: approve, deny, describe, and get.
- Updated the create command to enhance its functionality and examples.
- Improved help text for commands to provide clearer guidance on usage.
- Added tests to ensure help messages are accurate and comprehensive.
- Enhanced the overall structure and organization of the non-admin command set.
* Enhance non-admin backup storage location management
- Introduced new commands for managing non-admin backup storage location requests: approve, reject, describe, and get.
- Updated the create command to support custom credential specifications and improved help text for clarity.
- Refactored the Makefile to include new installation options for interactive namespace prompts and default settings.
- Removed outdated demo outline documentation to streamline project structure.
- Added utility functions for reading client configuration and managing namespaces, improving overall command functionality.
* Add integration and unit tests for OADP CLI commands
- Introduced a comprehensive suite of integration tests in `integration_test.go` to validate binary build, Makefile installation, client configuration, and command architecture.
- Created unit tests for root, non-admin, and NABSL commands to ensure help text accuracy and command functionality.
- Enhanced the Makefile to include dedicated targets for running unit and integration tests.
- Added a `TESTING.md` document to outline the testing architecture and best practices for future contributions.
- Removed outdated test files to streamline the testing structure.
* Enhance integration tests and improve error handling
- Added runtime checks for binary creation in `integration_test.go` to support Windows compatibility.
- Improved error handling in the Makefile installation test by logging non-fatal errors during cleanup.
- Updated the binary path in `testutil.go` to accommodate Windows executable naming conventions.
- Removed unnecessary code in `bsl_test.go` to streamline test logic.
* Mod tidy
* Windows exe
* Enhance installation process with automatic namespace detection
- Updated the Makefile to include intelligent detection for OADP deployment namespaces during installation.
- Improved help text in the Makefile and README to clarify installation options and the detection process.
- Added detailed documentation in README and TESTING.md outlining the automatic detection steps and installation modes.
- Ensured fallback mechanisms for namespace detection to enhance user experience.
* Move shared code
* Go fmt1 parent 1d7ab68 commit b5a75f0
File tree
31 files changed
+2589
-709
lines changed- Docs
- cmd
- nabsl-request
- non-admin
- backup
- bsl
- internal/testutil
- tests
31 files changed
+2589
-709
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
62 | 76 | | |
63 | | - | |
64 | | - | |
| 77 | + | |
| 78 | + | |
65 | 79 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
69 | 89 | | |
70 | 90 | | |
71 | 91 | | |
72 | 92 | | |
73 | 93 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
77 | 103 | | |
78 | 104 | | |
79 | 105 | | |
| |||
108 | 134 | | |
109 | 135 | | |
110 | 136 | | |
111 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
112 | 197 | | |
113 | 198 | | |
114 | 199 | | |
| |||
185 | 270 | | |
186 | 271 | | |
187 | 272 | | |
188 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
189 | 277 | | |
190 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
191 | 291 | | |
192 | 292 | | |
193 | 293 | | |
194 | 294 | | |
195 | | - | |
| 295 | + | |
196 | 296 | | |
197 | 297 | | |
198 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 34 | | |
47 | 35 | | |
48 | 36 | | |
49 | | - | |
| 37 | + | |
50 | 38 | | |
51 | 39 | | |
52 | 40 | | |
| |||
60 | 48 | | |
61 | 49 | | |
62 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
| |||
0 commit comments