Skip to content

test: add osCommerce CSV import fixtures - #1195

Merged
sridharkalaibala merged 1 commit into
Posnic:developfrom
Hemanshu004:feat/oscommerce-csv-fixture
Oct 15, 2026
Merged

sridharkalaibala merged 1 commit into
Posnic:developfrom
Hemanshu004:feat/oscommerce-csv-fixture

Conversation

@Hemanshu004

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds synthetic osCommerce CSV order fixtures and focused tests for issue #94.

The fixtures cover:

  • One paid multi-line osCommerce order
  • Duplicate external order ID handling using the existing external-sale idempotency contract
  • Missing SKU fixture data
  • Invalid amount fixture data

Closes #94

Acceptance criteria covered

  • Synthetic paid order fixture
  • Duplicate external order ID handling
  • Missing SKU fixture
  • Invalid amount fixture
  • No direct connection to a real osCommerce database
  • No live osCommerce store/API integration
  • No production application code changed

Validation

  • node --test tests/oscommerce-csv-import-fixture.test.js
  • node --test tests/external-sale-idempotency.test.js tests/oscommerce-csv-import-fixture.test.js
  • npm run check:attribution
  • git diff --check

All checks pass.

Scope

This PR only adds test fixtures, fixture documentation, and focused tests. It uses synthetic data and the existing external-sale idempotency contract. No live osCommerce integration or production database/API behavior is introduced.

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. Thank you.
Posted by the CLA Assistant Lite bot.

@Hemanshu004

Copy link
Copy Markdown
Contributor Author

I have read the CLA document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Oct 7, 2026

@sridharkalaibala sridharkalaibala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the synthetic fixtures, documentation, and existing idempotency contract. All 17 focused fixture/idempotency tests, attribution check, and whitespace check passed locally. The change stays within the fixture-only scope of issue #94. Small documentation follow-up: clarify that an absent optional SKU is a future mapping case, since the table currently calls SKU optional while the invalid-fixture section calls it a validation error.

@sridharkalaibala sridharkalaibala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fixture tests still pass, but the newly completed No secrets in history check failed. Please do not merge until the maintainer has privately triaged the findings and the check passes. Do not paste findings or credentials into this public discussion; use GitHub private vulnerability reporting if enabled, or a private maintainer channel. This supersedes my earlier approval pending that security check.

@sridharkalaibala
sridharkalaibala merged commit e781709 into Posnic:develop Oct 15, 2026
@github-actions github-actions Bot added the ready for QA Merged to develop and live on develop.posnic.io - anyone can test it label Oct 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Merged to develop. Anyone can test this - you do not need write access.

Try it at https://develop.posnic.io, or run it yourself:

git fetch origin develop && git checkout develop
npm install && npm --prefix api install
npm run dev   # then http://localhost:3000

When you have tested it, say what you did and what happened, and set
QA passed or QA failed. If you cannot set labels, just comment -
a maintainer will.

Reporting that something is broken is as useful as fixing it. It is
better found here than by a shopkeeper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for QA Merged to develop and live on develop.posnic.io - anyone can test it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

osCommerce connector: add CSV order import fixture

2 participants