-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
302 additions
and
15 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
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
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
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
16 changes: 16 additions & 0 deletions
16
tests/resources/profiles/test_profiles/allow_fetch_invalid.json
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,16 @@ | ||
{ | ||
"BagIt-Profile-Info":{ | ||
"BagIt-Profile-Identifier":"http://somewhere.org/my/profile.json", | ||
"BagIt-Profile-Version": "0.1", | ||
"Source-Organization":"Monsters, Inc.", | ||
"Contact-Name":"Mike Wazowski", | ||
"External-Description":"Profile for testing bad bag info tag options", | ||
"Version":"0.3" | ||
}, | ||
"Require-Fetch.txt": true, | ||
"Allow-Fetch.txt": false, | ||
"Serialization": "forbidden", | ||
"Accept-BagIt-Version":[ | ||
"1.0" | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
tests/resources/profiles/test_profiles/allow_fetch_invalid_2.json
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,16 @@ | ||
{ | ||
"BagIt-Profile-Info":{ | ||
"BagIt-Profile-Identifier":"http://somewhere.org/my/profile.json", | ||
"BagIt-Profile-Version": "0.1", | ||
"Source-Organization":"Monsters, Inc.", | ||
"Contact-Name":"Mike Wazowski", | ||
"External-Description":"Profile for testing bad bag info tag options", | ||
"Version":"0.3" | ||
}, | ||
"Allow-Fetch.txt": false, | ||
"Require-Fetch.txt": true, | ||
"Serialization": "forbidden", | ||
"Accept-BagIt-Version":[ | ||
"1.0" | ||
] | ||
} |
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,19 @@ | ||
{ | ||
"BagIt-Profile-Info":{ | ||
"BagIt-Profile-Identifier":"http://somewhere.org/my/profile.json", | ||
"BagIt-Profile-Version": "0.1", | ||
"Source-Organization":"Monsters, Inc.", | ||
"Contact-Name":"Mike Wazowski", | ||
"External-Description":"Profile for testing bad bag info tag options", | ||
"Version":"0.3" | ||
}, | ||
"Manifests-Allowed": [ | ||
"md5", | ||
"sha512" | ||
], | ||
"Data-Empty": true, | ||
"Serialization": "forbidden", | ||
"Accept-BagIt-Version":[ | ||
"1.0" | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
tests/resources/profiles/test_profiles/invalid_bag_info_tag_options.json
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,24 @@ | ||
{ | ||
"BagIt-Profile-Info":{ | ||
"BagIt-Profile-Identifier":"http://somewhere.org/my/profile.json", | ||
"BagIt-Profile-Version": "0.1", | ||
"Source-Organization":"Monsters, Inc.", | ||
"Contact-Name":"Mike Wazowski", | ||
"External-Description":"Profile for testing bad bag info tag options", | ||
"Version":"0.3" | ||
}, | ||
"Bag-Info":{ | ||
"Source-Organization":{ | ||
"required":true, | ||
"values":[ | ||
"Simon Fraser University", | ||
"York University" | ||
], | ||
"help": "This is the organization that originally created the bag." | ||
} | ||
}, | ||
"Serialization": "forbidden", | ||
"Accept-BagIt-Version":[ | ||
"1.0" | ||
] | ||
} |
19 changes: 19 additions & 0 deletions
19
tests/resources/profiles/test_profiles/profile_identifier_bag_info_tag.json
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,19 @@ | ||
{ | ||
"BagIt-Profile-Info":{ | ||
"BagIt-Profile-Identifier":"http://somewhere.org/my/profile.json", | ||
"BagIt-Profile-Version": "0.1", | ||
"Source-Organization":"Monsters, Inc.", | ||
"Contact-Name":"Mike Wazowski", | ||
"External-Description":"Profile for testing bad bag info tag options", | ||
"Version":"0.3" | ||
}, | ||
"Bag-Info":{ | ||
"BagIt-Profile-Identifier":{ | ||
"required":true | ||
} | ||
}, | ||
"Serialization": "forbidden", | ||
"Accept-BagIt-Version":[ | ||
"1.0" | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
tests/resources/profiles/test_profiles/set_manifest_allowed_invalid.json
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,18 @@ | ||
{ | ||
"BagIt-Profile-Info":{ | ||
"BagIt-Profile-Identifier":"http://somewhere.org/my/profile.json", | ||
"BagIt-Profile-Version": "0.1", | ||
"Source-Organization":"Monsters, Inc.", | ||
"Contact-Name":"Mike Wazowski", | ||
"External-Description":"Profile for testing bad bag info tag options", | ||
"Version":"0.3" | ||
}, | ||
"Manifests-Required": [ | ||
"md5", | ||
"sha512" | ||
], | ||
"Manifests-Allowed": [ | ||
"md5", | ||
"sha256" | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
tests/resources/profiles/test_profiles/set_manifest_allowed_valid.json
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,18 @@ | ||
{ | ||
"BagIt-Profile-Info":{ | ||
"BagIt-Profile-Identifier":"http://somewhere.org/my/profile.json", | ||
"BagIt-Profile-Version": "0.1", | ||
"Source-Organization":"Monsters, Inc.", | ||
"Contact-Name":"Mike Wazowski", | ||
"External-Description":"Profile for testing bad bag info tag options", | ||
"Version":"0.3" | ||
}, | ||
"Manifests-Allowed": [ | ||
"md5", | ||
"sha256" | ||
], | ||
"Serialization": "forbidden", | ||
"Accept-BagIt-Version":[ | ||
"1.0" | ||
] | ||
} |