Commit 59207e2
committed
Remove --server-id=default from binary scan tests
Binary scan tests don't create JFrog Home config like Docker tests do.
Docker tests call InitTestWithMockCommandOrParams which creates the config via
CreateJfrogHomeConfig, but binary scan tests only call InitScanTest which doesn't.
The scan command with --server-id=default tries to load config from file via
CreateServerDetailsWithConfigOffer, but that file doesn't exist in binary test
environment, causing 'Using <> server-id configuration' (empty) and
'JFrog Xray URL must be provided' errors.
Solution: Remove --server-id=default so binary scan tests use credentials
passed directly by PlatformCli (--url, --access-token flags) instead of
trying to load from non-existent config file.
Changes:
- Removed --server-id=default from runXrayBinaryScan (line 95)
- Removed --server-id=default from TestXrayBinaryScanWithBypassArchiveLimits (line 228)
- Kept --bypass-archive-limits flag for handling large archives
This makes binary scan tests consistent with how PlatformCli passes
credentials (via flags, not config file).1 parent 827b41c commit 59207e2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments