Remove unimplemented --spec-format and --otel options #331
Annotations
6 errors and 1 warning
|
Run APIOps Tests
Process completed with exit code 1.
|
|
tests/unit/lib/config-loader.test.ts > config-loader > loadOTelConfig > should handle file with only whitespace:
tests/unit/lib/config-loader.test.ts#L599
TypeError: loadOTelConfig is not a function
❯ tests/unit/lib/config-loader.test.ts:599:28
|
|
tests/unit/lib/config-loader.test.ts > config-loader > loadOTelConfig > should handle completely empty file:
tests/unit/lib/config-loader.test.ts#L590
TypeError: loadOTelConfig is not a function
❯ tests/unit/lib/config-loader.test.ts:590:28
|
|
tests/unit/lib/config-loader.test.ts > config-loader > loadOTelConfig > should return undefined for missing file:
tests/unit/lib/config-loader.test.ts#L582
TypeError: loadOTelConfig is not a function
❯ tests/unit/lib/config-loader.test.ts:582:28
|
|
tests/unit/lib/config-loader.test.ts > config-loader > loadOTelConfig > should load a valid OTel YAML file:
tests/unit/lib/config-loader.test.ts#L576
TypeError: loadOTelConfig is not a function
❯ tests/unit/lib/config-loader.test.ts:576:28
|
|
tests/unit/cli/index.test.ts > CLI entry point > should display help with --help:
tests/unit/cli/index.test.ts#L49
AssertionError: expected 'Usage: apiops [options] [command]\n\n…' to contain '--otel'
- Expected
+ Received
- --otel
+ Usage: apiops [options] [command]
+
+ CLI tool for Azure API Management configuration-as-code
+
+ Options:
+ -V, --version output the version number
+ --log-level <level> Log level: debug, info, warn, or error (choices:
+ "debug", "info", "warn", "error", default: "info")
+ --format <type> Output format: text or json (default: "text")
+ --subscription-id <id> Azure subscription ID
+ --cloud <name> Sovereign cloud: public, china, usgov, germany
+ (default: "public")
+ --client-id <id> Service principal client ID
+ --client-secret <secret> Service principal client secret
+ --tenant-id <id> Azure AD tenant ID
+ -h, --help display help for command
+
+ Commands:
+ extract [options] Extract APIM configuration to local artifact files
+ publish [options] Publish local APIM artifacts to Azure APIM service
+ init [options] Initialize APIM repository with CI/CD pipelines and
+ configuration templates
+ help [command] display help for command
+
❯ tests/unit/cli/index.test.ts:49:27
|
|
Run APIOps Tests
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|