Skip to content

test(conformance): gate user channel membership APIs#1975

Merged
kriswest merged 4 commits into
finos:mainfrom
LarryHu0217:codex/fdc3-user-channel-conformance-1777
Jul 21, 2026
Merged

test(conformance): gate user channel membership APIs#1975
kriswest merged 4 commits into
finos:mainfrom
LarryHu0217:codex/fdc3-user-channel-conformance-1777

Conversation

@LarryHu0217

@LarryHu0217 LarryHu0217 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Describe your change

Updates the BasicJC1 conformance test so user-channel membership APIs are exercised only when getInfo().optionalFeatures.UserChannelMembershipAPIs is advertised. Implementations without the optional feature no longer fail the basic suite, while implementations that advertise it still validate joinUserChannel, getCurrentChannel, and leaveCurrentChannel.

Resolves #1777.

Contributor License Agreement

  • I acknowledge that a contributor license agreement is required and that I have one in place or will seek to put one in place ASAP.

Validation

  • Prettier and ESLint on changed files
  • npm --workspace toolbox/fdc3-conformance run build
  • git diff --check origin/main...HEAD

@LarryHu0217
LarryHu0217 requested a review from a team as a code owner July 9, 2026 22:04
@netlify

netlify Bot commented Jul 9, 2026

Copy link
Copy Markdown

Deploy Preview for fdc3 ready!

Name Link
🔨 Latest commit c2a62ac
🔍 Latest deploy log https://app.netlify.com/projects/fdc3/deploys/6a5f6a88d8616b0008e5f2b8
😎 Deploy Preview https://deploy-preview-1975.preview-fdc3.finos.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov-commenter

codecov-commenter commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.32%. Comparing base (77ee7a2) to head (c2a62ac).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1975   +/-   ##
=======================================
  Coverage   95.32%   95.32%           
=======================================
  Files          85       85           
  Lines        6698     6698           
  Branches     1044     1044           
=======================================
  Hits         6385     6385           
  Misses        313      313           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kriswest kriswest 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.

Two small improvements that need making, otherwsie LGTM.

Should be tested using the reference implementation for at least the positive case (i.e. UserChannelMembershipAPIs == true)

Comment thread toolbox/fdc3-conformance/src/test/basic/fdc3.basic.ts
try {
const channels = await fdc3.getUserChannels();
if (channels.length === 0) {
assert.fail('No system channels available');

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.

Suggested change
assert.fail('No system channels available');
assert.fail('No user channels available');

@kriswest kriswest 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.

Test definition in docs also needs to be updated when a test is changed

Comment thread toolbox/fdc3-conformance/src/test/basic/fdc3.basic.ts
kriswest
kriswest previously approved these changes Jul 21, 2026

@kriswest kriswest 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.

LGTM

@kriswest

Copy link
Copy Markdown
Contributor

Please resolve Changelog conflict (I would do it for you but I can't then approve and merge). I think these occur less if you add to the bottom of the changelog section you are updating instead of the top.

…el-conformance-1777

# Conflicts:
#	CHANGELOG.md
@LarryHu0217

Copy link
Copy Markdown
Contributor Author

Resolved the CHANGELOG conflict against current main in c2a62ace. The branch is mergeable and the GitHub checks are green.

@kriswest kriswest 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.

LGTM

@kriswest
kriswest merged commit 8130e79 into finos:main Jul 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create basic conformance tests for user channel apis

3 participants