Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pac
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tools
pac
Commits
964fdd2e
Commit
964fdd2e
authored
Oct 22, 2026
by
luoqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test(open): retain image reference whitelist regression during closeout
parent
155b40ca
Pipeline
#3857
failed in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
apps/pac-service/tests/lookup-content.spec.ts
+21
-0
No files found.
apps/pac-service/tests/lookup-content.spec.ts
View file @
964fdd2e
import
{
lookupContent
}
from
'../src/modules/open/lookup-content'
;
import
{
toLookupFact
,
LookupFactRow
}
from
'../src/modules/open/lookup-fact'
;
import
{
toLookupFact
,
LookupFactRow
}
from
'../src/modules/open/lookup-fact'
;
import
{
toOpenFact
}
from
'../src/modules/open/open-fact'
;
import
{
toOpenFact
}
from
'../src/modules/open/open-fact'
;
import
{
LookupContentError
}
from
'../src/modules/open/lookup-narrative'
;
import
{
LookupContentError
}
from
'../src/modules/open/lookup-narrative'
;
...
@@ -198,3 +199,23 @@ describe('lookup content whitelist', () => {
...
@@ -198,3 +199,23 @@ describe('lookup content whitelist', () => {
).
toBe
(
false
);
).
toBe
(
false
);
});
});
});
});
test
(
'image file references keep the existing access contract with a nested whitelist'
,
()
=>
{
const
ref
=
{
provider
:
'meyer'
,
connectionId
:
'test'
,
fileId
:
'oss-1'
,
role
:
'original'
,
secret
:
'excluded'
,
};
const
result
=
lookupContent
(
'image_record'
,
{
image_external_id
:
'i-1'
,
file_refs
:
[
ref
]
},
null
,
null
,
'friday'
,
);
expect
(
result
.
fileRefs
).
toEqual
([
{
provider
:
'meyer'
,
connectionId
:
'test'
,
fileId
:
'oss-1'
,
role
:
'original'
},
]);
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment