Repository navigation
test(api): correct the tests for DataSpaceBackend#324 and #302 - #385
Merged
Merged
Conversation
…cation ignores it (DataSpaceBackend#324)
…m decided (DataSpaceBackend#302)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.