Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(scripts): add test for motosan-owned TLS package policy failure

Steven Enamakela4359b9cab4f
diff --git a/scripts/__tests__/check-linux-tls-dependencies.test.mjs b/scripts/__tests__/check-linux-tls-dependencies.test.mjs
index 29bd412be1..0a2f394c8a 100644
--- a/scripts/__tests__/check-linux-tls-dependencies.test.mjs
+++ b/scripts/__tests__/check-linux-tls-dependencies.test.mjs
@@ -295,6 +295,27 @@ for (const interpreter of interpreters) {
},
);
+ test(
+ `[${interpreter} ${version}] a motosan-owned Tauri TLS package fails the policy`,
+ SKIP,
+ () => {
+ const tree = makeTree({
+ tauri: "native-tls v0.2.14",
+ owners: {
+ "native-tls":
+ "native-tls v0.2.14\nmotosan-ai-oauth v0.1.0\nopenhuman-app v0.1.0",
+ },
+ });
+ const result = run(interpreter, tree);
+ assert.equal(result.status, 1);
+ assert.match(
+ result.stderr,
+ /motosan-ai-oauth owns native-tls in tauri/,
+ );
+ assert.match(tree.calls(), /--invert native-tls/);
+ },
+ );
+
test(
`[${interpreter} ${version}] an early TLS match in a large tree still checks owners`,
SKIP,