-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref #6009 https://pulp.plan.io/issues/6009
- Loading branch information
David Davis
committed
Mar 9, 2020
1 parent
be6e05b
commit a38d1eb
Showing
7 changed files
with
249 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import json | ||
import os | ||
|
||
location = os.path.dirname(os.path.realpath(__file__)) | ||
|
||
with open(os.path.join(location, "copy_criteria.json")) as copy_json: | ||
COPY_CRITERIA_SCHEMA = json.load(copy_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,205 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "CopyCriteria", | ||
"description": "Criteria for copying content between repos", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"minProperties": 1, | ||
"properties": { | ||
|
||
"package": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"properties": { | ||
"pulp_href": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"epoch": { | ||
"type": "string" | ||
}, | ||
"version": { | ||
"type": "string" | ||
}, | ||
"release": { | ||
"type": "string" | ||
}, | ||
"arch": { | ||
"type": "string" | ||
}, | ||
"pkgId": { | ||
"type": "string" | ||
}, | ||
"checksum_type": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"advisory": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"properties": { | ||
"pulp_href": { | ||
"type": "string" | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"updated_date": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"packagecategory": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"properties": { | ||
"pulp_href": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"packagegroup": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"properties": { | ||
"pulp_href": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"packageenvironment": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"properties": { | ||
"pulp_href": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"packagelangpacks": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"properties": { | ||
"pulp_href": { | ||
"type": "string" | ||
}, | ||
"digest": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"repo_metadata_file": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"properties": { | ||
"pulp_href": { | ||
"type": "string" | ||
}, | ||
"data_type": { | ||
"type": "string" | ||
}, | ||
"checksum_type": { | ||
"type": "string" | ||
}, | ||
"checksum": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"modulemd": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"properties": { | ||
"pulp_href": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"stream": { | ||
"type": "string" | ||
}, | ||
"version": { | ||
"type": "string" | ||
}, | ||
"context": { | ||
"type": "string" | ||
}, | ||
"arch": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
|
||
"modulemd_defaults": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"minProperties": 1, | ||
"additionalProperties": false, | ||
"properties": { | ||
"pulp_href": { | ||
"type": "string" | ||
}, | ||
"module": { | ||
"type": "string" | ||
}, | ||
"stream": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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