-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/publish: Add
has_lib
and bin_names
test case
- Loading branch information
Showing
3 changed files
with
119 additions
and
0 deletions.
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
52 changes: 52 additions & 0 deletions
52
src/tests/krate/publish/snapshots/all__krate__publish__manifest__lib_and_bin_crate-2.snap
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
source: src/tests/krate/publish/manifest.rs | ||
expression: response.json() | ||
--- | ||
{ | ||
"version": { | ||
"audit_actions": [ | ||
{ | ||
"action": "publish", | ||
"time": "[datetime]", | ||
"user": { | ||
"avatar": null, | ||
"id": "[id]", | ||
"login": "foo", | ||
"name": null, | ||
"url": "https://github.com/foo" | ||
} | ||
} | ||
], | ||
"bin_names": [ | ||
"bar", | ||
"foo" | ||
], | ||
"checksum": "ed125a8d83193391762787872f6363ef11d472fe9e963b984a761f970d63a7a8", | ||
"crate": "foo", | ||
"crate_size": 241, | ||
"created_at": "[datetime]", | ||
"dl_path": "/api/v1/crates/foo/1.0.0/download", | ||
"downloads": 0, | ||
"features": {}, | ||
"has_lib": true, | ||
"id": "[id]", | ||
"license": "MIT", | ||
"links": { | ||
"authors": "/api/v1/crates/foo/1.0.0/authors", | ||
"dependencies": "/api/v1/crates/foo/1.0.0/dependencies", | ||
"version_downloads": "/api/v1/crates/foo/1.0.0/downloads" | ||
}, | ||
"num": "1.0.0", | ||
"published_by": { | ||
"avatar": null, | ||
"id": "[id]", | ||
"login": "foo", | ||
"name": null, | ||
"url": "https://github.com/foo" | ||
}, | ||
"readme_path": "/api/v1/crates/foo/1.0.0/readme", | ||
"rust_version": null, | ||
"updated_at": "[datetime]", | ||
"yanked": false | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
src/tests/krate/publish/snapshots/all__krate__publish__manifest__lib_and_bin_crate.snap
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
source: src/tests/krate/publish/manifest.rs | ||
expression: response.json() | ||
--- | ||
{ | ||
"crate": { | ||
"badges": null, | ||
"categories": null, | ||
"created_at": "[datetime]", | ||
"description": "description", | ||
"documentation": null, | ||
"downloads": 0, | ||
"exact_match": false, | ||
"homepage": null, | ||
"id": "foo", | ||
"keywords": null, | ||
"links": { | ||
"owner_team": "/api/v1/crates/foo/owner_team", | ||
"owner_user": "/api/v1/crates/foo/owner_user", | ||
"owners": "/api/v1/crates/foo/owners", | ||
"reverse_dependencies": "/api/v1/crates/foo/reverse_dependencies", | ||
"version_downloads": "/api/v1/crates/foo/downloads", | ||
"versions": "/api/v1/crates/foo/versions" | ||
}, | ||
"max_stable_version": "1.0.0", | ||
"max_version": "1.0.0", | ||
"name": "foo", | ||
"newest_version": "1.0.0", | ||
"recent_downloads": null, | ||
"repository": null, | ||
"updated_at": "[datetime]", | ||
"versions": null | ||
}, | ||
"warnings": { | ||
"invalid_badges": [], | ||
"invalid_categories": [], | ||
"other": [] | ||
} | ||
} |