@mettlecast/domain-cdk-packer 0.2.98 → 0.2.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,6 +37,7 @@ describe('auth registry — bootstrap-invite registration (#5226)', () => {
37
37
  let authRegistry;
38
38
  let catalog;
39
39
  let typesContent;
40
+ let bootstrapInviteSource;
40
41
  beforeAll(() => {
41
42
  mkdirSync(regDir, { recursive: true });
42
43
  // Mirror the CI "Build domain registries" + "Build domain catalog" steps:
@@ -47,6 +48,7 @@ describe('auth registry — bootstrap-invite registration (#5226)', () => {
47
48
  execFileSync(process.execPath, [cliJs, 'build-catalog', '--mc-dir', regDir], { cwd: workDir, stdio: 'pipe', timeout: 60_000 });
48
49
  authRegistry = JSON.parse(readFileSync(join(regDir, 'auth-registry.json'), 'utf8'));
49
50
  catalog = JSON.parse(readFileSync(join(workDir, '.mc', 'domain-registry.json'), 'utf8'));
51
+ bootstrapInviteSource = readFileSync(join(repoRoot, 'domains', 'auth', 'actions', 'bootstrap-invite.ts'), 'utf8');
50
52
  // The last `build` regenerates actions-types.d.ts next to the registries.
51
53
  typesContent = readFileSync(join(regDir, 'actions-types.d.ts'), 'utf8');
52
54
  });
@@ -85,6 +87,10 @@ describe('auth registry — bootstrap-invite registration (#5226)', () => {
85
87
  const action = authRegistry.actions.find((a) => a.id === 'register-sys-admin');
86
88
  expect(action).toBeUndefined();
87
89
  });
90
+ it('creates a system bootstrap invitation without a synthetic inviter user', () => {
91
+ expect(bootstrapInviteSource).toContain("VALUES ($1, 'system', NULL, $2, 'sys_admin')");
92
+ expect(bootstrapInviteSource).not.toContain("00000000-0000-0000-0000-000000000000");
93
+ });
88
94
  });
89
95
  describe('full documented build process — all current domains', () => {
90
96
  it('generates a registry file for EVERY domain under domains/ (auth, data-management, email, orgs)', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mettlecast/domain-cdk-packer",
3
- "version": "0.2.98",
3
+ "version": "0.2.99",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",