| @@ -64,10 +64,10 @@ describe("organization API keys", () => { · 63 unmodified lines |
| 64 | 64 | }), |
| 65 | 65 | }); |
| 66 | 66 | |
| 67 | | − const created = yield* apiKeys.createOrgKey({ organizationId: ORG, name: "owner.com" }); |
| 67 | + const created = yield* apiKeys.createOrgKey({ organizationId: ORG, name: "acme-backend" }); |
| 68 | 68 | |
| 69 | 69 | expect(created.id).toBe("key_org_1"); |
| 70 | | − expect(created.name).toBe("owner.com"); |
| 70 | + expect(created.name).toBe("acme-backend"); |
| 71 | 71 | expect(created.value, "create returns the one-time plaintext secret").toBe( |
| 72 | 72 | "sk_org_plaintext", |
| 73 | 73 | ); |
| @@ -84,7 +84,7 @@ describe("organization API keys", () => { · 10 unmodified lines |
| 84 | 84 | Effect.succeed({ |
| 85 | 85 | object: "list", |
| 86 | 86 | data: [ |
| 87 | | − orgKeyResponse(organizationId, "key_org_1", "owner.com"), |
| 87 | + orgKeyResponse(organizationId, "key_org_1", "acme-backend"), |
| 88 | 88 | orgKeyResponse(organizationId, "key_org_2", "ci"), |
| 89 | 89 | ], |
| 90 | 90 | listMetadata: { before: null, after: null }, |
| @@ -93,7 +93,7 @@ describe("organization API keys", () => { · 2 unmodified lines |
| 93 | 93 | |
| 94 | 94 | const keys = yield* apiKeys.listOrgKeys({ organizationId: ORG }); |
| 95 | 95 | |
| 96 | | − expect(keys.map((key) => key.name)).toEqual(["owner.com", "ci"]); |
| 96 | + expect(keys.map((key) => key.name)).toEqual(["acme-backend", "ci"]); |
| 97 | 97 | expect(JSON.stringify(keys), "the list never carries a plaintext secret").not.toContain( |
| 98 | 98 | "sk_org_plaintext", |
| 99 | 99 | ); |
| @@ -136,7 +136,7 @@ describe("organization API keys", () => { · 36 unmodified lines |
| 136 | 136 | }); |
| 137 | 137 | |
| 138 | 138 | const error = yield* Effect.flip( |
| 139 | | − apiKeys.createOrgKey({ organizationId: ORG, name: "owner.com" }), |
| 139 | + apiKeys.createOrgKey({ organizationId: ORG, name: "acme-backend" }), |
| 140 | 140 | ); |
| 141 | 141 | |
| 142 | 142 | expect(error).toBeInstanceOf(ApiKeyManagementError); |