Skip to content

Integration test: Medium template creates 1,001 objects instead of 1,100 #225

@JayVDZ

Description

@JayVDZ

Problem

When running integration tests with the Medium template, the activity reports 1,001 total objects instead of the expected 1,100 objects.

Expected vs Actual

  • Expected: 1,000 users + 100 groups = 1,100 total objects
  • Actual: 1,001 total objects (indicates only 1 user or group is being created in addition to... something)

Documentation

The INTEGRATION_TESTING.md file (lines 369-370) specifies:

| **Medium** | 1,000     | 100     | 8               | 1,100         | Medium enterprise, CI/CD          | < 2 min    |

Root Cause

Need to investigate:

  1. Is the group creation loop in Populate-SambaAD.ps1 failing silently?
  2. Are groups being created in AD but not being counted in the results?
  3. Is the CSV generation for users off-by-one (generating 1,001 instead of 1,000)?

Test Data

  • Template: Medium
  • Current result: 1,001 objects (1,000 users + 1 group?)
  • Expected result: 1,100 objects (1,000 users + 100 groups)
  • Discrepancy: 99 objects missing (likely 99 missing groups)

Impact

Integration test data scale templates are not matching documented specifications. This affects:

  • Performance baseline measurements
  • CI/CD pipeline resource consumption
  • Test result consistency across runs

To Reproduce

  1. Run integration tests with Medium template
  2. Complete the Joiner step
  3. Check Activity results page
  4. Observe "TOTAL OBJECTS" count is 1,001 instead of 1,100

Related Files

  • test/integration/Populate-SambaAD.ps1 - Group creation loop
  • test/integration/Generate-TestCSV.ps1 - CSV user generation
  • test/integration/utils/Test-Helpers.ps1 - Template scale definitions
  • docs/INTEGRATION_TESTING.md - Template specifications (line 369)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions