neonctl 1.26.1 → 1.26.2
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/commands/ip_allow.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { writer } from '../writer.js';
|
|
2
|
+
import { fillSingleProject } from '../utils/enrichers.js';
|
|
2
3
|
import { projectUpdateRequest } from '../parameters.gen.js';
|
|
3
4
|
import { log } from '../log.js';
|
|
4
5
|
const IP_ALLOW_FIELDS = [
|
|
@@ -18,6 +19,7 @@ export const builder = (argv) => {
|
|
|
18
19
|
type: 'string',
|
|
19
20
|
},
|
|
20
21
|
})
|
|
22
|
+
.middleware(fillSingleProject)
|
|
21
23
|
.command('list', 'List the IP allowlist', (yargs) => yargs, async (args) => {
|
|
22
24
|
await list(args);
|
|
23
25
|
})
|
|
@@ -8,6 +8,14 @@ describe('ip-allow', () => {
|
|
|
8
8
|
snapshot: true,
|
|
9
9
|
},
|
|
10
10
|
});
|
|
11
|
+
testCliCommand({
|
|
12
|
+
name: 'list IP Allow with single-project',
|
|
13
|
+
args: ['ip-allow', 'list'],
|
|
14
|
+
mockDir: 'single_project',
|
|
15
|
+
expected: {
|
|
16
|
+
snapshot: true,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
11
19
|
testCliCommand({
|
|
12
20
|
name: 'Add IP allow - Error',
|
|
13
21
|
args: ['ip-allow', 'add', '--projectId', 'test'],
|