test(wp7-02): require current Gemini v1 routes
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 1m51s
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 1m51s
This commit is contained in:
@@ -98,14 +98,16 @@ test("TDD-WP7-EXT-001 remains externally blocked without confirmation, config an
|
||||
|
||||
test("TDD-WP7-EXT-001 fixes independent OneAPI routes without embedding credentials", () => {
|
||||
const manifest = JSON.parse(readFileSync("config/wp7-02-oneapi-test.json", "utf8"));
|
||||
assert.equal(manifest.config_set_version, 1);
|
||||
assert.equal(manifest.config_set_version, 2);
|
||||
assert.equal(manifest.gateway_account_ref, "oneapi-intelligrow-test");
|
||||
assert.deepEqual(manifest.models.map((entry) => entry.model_id), WP7_02_MODEL_IDS);
|
||||
assert.deepEqual(manifest.models.map((entry) => entry.route_profile.protocol_version), [
|
||||
"gemini-native-v1beta",
|
||||
"gemini-native-v1beta",
|
||||
"gemini-native-v1",
|
||||
"gemini-native-v1",
|
||||
"openai-images-v1",
|
||||
]);
|
||||
assert.deepEqual(manifest.models.map((entry) => entry.config_version), [2, 2, 1]);
|
||||
assert.equal(manifest.models.slice(0, 2).every((entry) => /\/v1\/models\/.+:generateContent$/.test(entry.route_profile.endpoint)), true);
|
||||
assert.equal(manifest.models.every((entry) => entry.route_profile.endpoint.startsWith("https://oneapi.intelligrow.cn/")), true);
|
||||
assert.doesNotMatch(JSON.stringify(manifest), /api[_-]?key|authorization|bearer|sk-[A-Za-z0-9]/i);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user