Skip to content

Commit b1ce995

Browse files
committed
test(push): use neutral fixture names in version-label tests
1 parent e7a6cc0 commit b1ce995

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎tests/version-metadata.test.ts‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ import {
99
const BASE = {
1010
id: "a1",
1111
orgId: "o1",
12-
name: "Matt",
12+
name: "Support agent",
1313
updatedAt: "2026-10-01T00:00:00.000Z",
1414
latestVersion: "v7",
1515
model: {
16-
provider: "anthropic-bedrock",
17-
model: "claude-haiku-4-5",
16+
provider: "openai",
17+
model: "gpt-4.1",
1818
messages: [{ role: "system", content: "old prompt" }],
1919
},
2020
voice: { provider: "11labs", voiceId: "abc" },
@@ -56,25 +56,25 @@ test("changedFieldPaths stops descending at maxDepth", () => {
5656

5757
test("versionMetadataBuild puts the actor and commit in the name and description", () => {
5858
const metadata = versionMetadataBuild({
59-
actor: { name: "dhruva@vapi.ai", commit: "abc1234", dirty: false },
59+
actor: { name: "dev@example.com", commit: "abc1234", dirty: false },
6060
changedPaths: ["model.messages", "voice.voiceId"],
6161
created: false,
6262
});
6363
assert.deepEqual(metadata, {
64-
versionName: "gitops abc1234 by dhruva@vapi.ai",
64+
versionName: "gitops abc1234 by dev@example.com",
6565
versionDescription:
66-
"Pushed by dhruva@vapi.ai from commit abc1234 via vapi-gitops.\n" +
66+
"Pushed by dev@example.com from commit abc1234 via vapi-gitops.\n" +
6767
"Changed: model.messages, voice.voiceId",
6868
});
6969
});
7070

7171
test("versionMetadataBuild marks a push with uncommitted edits as dirty", () => {
7272
const metadata = versionMetadataBuild({
73-
actor: { name: "dhruva@vapi.ai", commit: "abc1234", dirty: true },
73+
actor: { name: "dev@example.com", commit: "abc1234", dirty: true },
7474
changedPaths: ["name"],
7575
created: false,
7676
});
77-
assert.equal(metadata.versionName, "gitops abc1234+dirty by dhruva@vapi.ai");
77+
assert.equal(metadata.versionName, "gitops abc1234+dirty by dev@example.com");
7878
});
7979

8080
test("versionMetadataBuild fits a large change in the API limits with a +N more tail", () => {
@@ -94,13 +94,13 @@ test("versionMetadataBuild fits a large change in the API limits with a +N more
9494

9595
test("versionMetadataBuild says created for a first push", () => {
9696
const metadata = versionMetadataBuild({
97-
actor: { name: "dhruva@vapi.ai", commit: null, dirty: false },
97+
actor: { name: "dev@example.com", commit: null, dirty: false },
9898
changedPaths: [],
9999
created: true,
100100
});
101101
assert.equal(
102102
metadata.versionDescription,
103-
"Pushed by dhruva@vapi.ai from commit no-commit via vapi-gitops.\n" +
103+
"Pushed by dev@example.com from commit no-commit via vapi-gitops.\n" +
104104
"Created by gitops.",
105105
);
106106
});

0 commit comments

Comments
 (0)