-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update mutable tests with new spec #6
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a452899
Update README and fix existing tests
makew0rld 1c2b23b
Add remaining mutable tests
makew0rld 21eb5ec
Update for spec changes (IPNS key API)
makew0rld a888639
Update for spec changes and errant URLs. Also .url won\
makew0rld 03f9438
Fix key GET test
makew0rld b228994
Fixes for mutable tests
RangerMauve b13756c
Undo IPNS key change
makew0rld f4a15fc
Use URL to check hostname on ipns redirect
RangerMauve d31cd84
Fix up tests
makew0rld 2c4f444
Fix last failing mutable test, all pass now
makew0rld 0b72465
Merge pull request #1 from AgregoreWeb/daemon-spec
RangerMauve c60d8d3
Fix merge errors
RangerMauve 097fe35
Manually specify API to use so that Agregore's built in node can be c…
RangerMauve 1ec3ca1
Merge branch 'daemon-spec' into default
RangerMauve 9bd62d4
Use proper format strings
RangerMauve File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,19 +31,25 @@ Progress: https://github.com/ipfs/community/discussions/573 | |
- [x] Render empty directories | ||
- [x] Resolve `index.html` in a path | ||
- `mutable.html` Tests (experimental, some things subject to change) | ||
- [x] JS `fetch('ipfs://CID/example.txt', {method: 'POST'})` | ||
- [x] JS `fetch('ipns://CID/', {method: 'POST'})` | ||
- [x] JS `fetch('ipns://CID/example.txt', {method: 'POST'})` | ||
- [x] JS `fetch('ipfs://CID/', {method: 'POST', body: new FormData})` | ||
- [x] JS `fetch('ipfs://CID/example.txt', {method: 'DELETE'})` | ||
- [x] JS `fetch('ipns://CID/example.txt', {method: 'DELETE'})` | ||
- [x] JS `fetch('ipfs://<CID>/example.txt', {method: 'PUT'})` | ||
- [x] JS `fetch('ipfs://<CID>/', {method: 'PUT', body: new FormData})` | ||
- [x] JS `fetch('ipfs://<CID>/example.txt', {method: 'DELETE'})` | ||
- [x] JS `fetch('ipns://<key>', {method: 'POST', body: <CID>})` | ||
- [x] JS `fetch('ipns://<key>/example.txt', {method: 'POST', body: <CID>})` | ||
- [x] JS `fetch('ipns://<key>', {method: 'PUT', body: file})` | ||
- [x] JS `fetch('ipns://<key>/example', {method: 'PUT', body: file})` | ||
- [x] JS `fetch('ipns://<key>', {method: 'PUT', body: formdata})` | ||
- [x] JS `fetch('ipns://<key>/example', {method: 'PUT', body: formdata})` | ||
- [x] JS `fetch('ipns://<key>/example.txt', {method: 'DELETE'})` | ||
- [x] JS `fetch('ipns://localhost?key=<name>', {method: 'GET})` | ||
- [x] JS `fetch('ipns://localhost?key=<name>', {method: 'DELETE})` | ||
- `dag.html` Tests (experimental, some things subject to change) | ||
- [x] GET `ipfs://CID/?format=CAR` | ||
- [x] GET `ipfs://CID/?format=block` | ||
- [x] GET `ipfs://CID/?format=dag-json` | ||
- [x] GET `ipfs://CID/?format=dag-cbor` | ||
- [x] POST `Content-Type: application/json` `?format=dag-cbor` & GET `?format=dag-cbor` | ||
- [x] POST over existing CID to add to graph | ||
- [x] GET `ipfs://<CID>/?format=car` | ||
- [x] GET `ipfs://<CID>/?format=raw` | ||
- [x] GET `ipfs://<CID>/?format=dag-json` | ||
- [x] GET `ipfs://<CID>/?format=dag-cbor` | ||
Comment on lines
+47
to
+50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💭 we should add tests with |
||
- [x] POST `Content-Type: application/json` `?format=dag-cbor` & GET `?format=dag-cbor` | ||
- [x] POST over existing CID to add to graph | ||
|
||
## Screenshots: | ||
|
||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💭 sending CID in the body feels weird, but I can't put my finger on why 😅
I was thinking that maybe it is squatting too much, what if one wants to do IPNS in userland, maintain keys on their own, create, sign record in JS, and then send it to
ipns://
only for publishing? I believe we should make sure a primitive for doing it exists.I guess that could be represented as
POST
withContent-Type: application/vnd.ipfs.ipns.record
?