mirror of
https://github.com/morluto/rea.git
synced 2026-10-26 17:35:11 +00:00
test(cli): assert retained managed target selection provenance
This commit is contained in:
1 parent
1ca7d38764
commit
4453d724f7
1 file changed
+6
-2
@@ -121,12 +121,13 @@ cliTest(
|
|||||||
async ({ cli }) => {
|
async ({ cli }) => {
|
||||||
const root = await createTestTempDirectory("rea-member-summary-cli-");
|
const root = await createTestTempDirectory("rea-member-summary-cli-");
|
||||||
const path = join(root, "fixture.dll");
|
const path = join(root, "fixture.dll");
|
||||||
|
const selectedPath = `${root}/./fixture.dll`;
|
||||||
const bundlePath = join(root, "members.json");
|
const bundlePath = join(root, "members.json");
|
||||||
await writeFile(path, memberFixture());
|
await writeFile(path, memberFixture());
|
||||||
const typeNames = ["Fixture.Program", "Missing.Type"];
|
const typeNames = ["Fixture.Program", "Missing.Type"];
|
||||||
const arguments_ = [
|
const arguments_ = [
|
||||||
"inspect-managed-members",
|
"inspect-managed-members",
|
||||||
path,
|
selectedPath,
|
||||||
...typeNames.flatMap((type) => ["--type", type]),
|
...typeNames.flatMap((type) => ["--type", type]),
|
||||||
"--json",
|
"--json",
|
||||||
];
|
];
|
||||||
@@ -175,7 +176,10 @@ cliTest(
|
|||||||
expect(parent.raw_result).toEqual(complete.raw_result);
|
expect(parent.raw_result).toEqual(complete.raw_result);
|
||||||
expect(parent.subject).toEqual(complete.subject);
|
expect(parent.subject).toEqual(complete.subject);
|
||||||
expect(parent.locations).toEqual(complete.locations);
|
expect(parent.locations).toEqual(complete.locations);
|
||||||
expect(parent.parameters).toEqual({ type_names: typeNames });
|
expect(parent.parameters).toEqual({
|
||||||
|
input_path: selectedPath,
|
||||||
|
type_names: typeNames,
|
||||||
|
});
|
||||||
expect(receipt.evidence_links).toEqual([parent.evidence_id]);
|
expect(receipt.evidence_links).toEqual([parent.evidence_id]);
|
||||||
const portable = await inspectAnalysisView({
|
const portable = await inspectAnalysisView({
|
||||||
source: { kind: "inline", evidence: parent },
|
source: { kind: "inline", evidence: parent },
|
||||||
|
|||||||
Reference in new issue
Block a user