Skip to content

test(api): correct the tests for DataSpaceBackend#324 and #302 - #385

Merged
saqibmanan merged 2 commits into
CIfrom
fix-324-302-tests
Nov 26, 2026
Merged

saqibmanan merged 2 commits into
CIfrom
fix-324-302-tests

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

Both cards had a backend-team reply I had missed.

#324 (whitespace-only publication title): the backend was right. createPublication ignores the title argument (the draft is named by the backend), so the old test never sent spaces and its publish succeeded for the generated title. With the title set through updatePublication it is stored empty and publishing is refused with 'Title is required.'. The test now does that and checks the stored title and the message. The known_failures.txt entry is removed.

#302 (global activity feed answers 401 to anonymous callers): the backend team decided login is intended, because the feed lists all platform activity including drafts. The two xfail tests are replaced by: anonymous gets 401/403, and a signed-in caller gets 200.

Both files ran against dev: 24 passed.

@saqibmanan
saqibmanan merged commit 24e1290 into CI Nov 26, 2026
1 of 2 checks passed
@saqibmanan
saqibmanan deleted the fix-324-302-tests branch November 26, 2026 10:14
saqibmanan added a commit that referenced this pull request Nov 26, 2026
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.

1 participant