Skip to content

Commit

Permalink
Add 'module' for rpm info in workflow data schema
Browse files Browse the repository at this point in the history
* STONEBLD-258

Signed-off-by: Robert Cerven <rcerven@redhat.com>
  • Loading branch information
rcerven committed Mar 28, 2024
1 parent 477d0a8 commit 7f4cac9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions atomic_reactor/schemas/workflow_data.json
Expand Up @@ -90,9 +90,10 @@
"arch": {"type": "string"},
"sigmd5": {"type": "string"},
"signature": {"type": ["string", "null"]},
"epoch": {"type": ["integer", "null"], "minimum": 0}
"epoch": {"type": ["integer", "null"], "minimum": 0},
"module": {"type": ["string", "null"]}
},
"required": ["type", "name", "version", "release", "arch", "sigmd5", "signature", "epoch"],
"required": ["type", "name", "version", "release", "arch", "sigmd5", "signature", "epoch", "module"],
"additionalProperties": false
},
"dockerfile_images": {
Expand Down
12 changes: 6 additions & 6 deletions tests/test_schemas.py
Expand Up @@ -173,28 +173,28 @@ def get_workflow_data_json():
'version': '1.3.1', 'release': '1.fc24',
'arch': 'noarch',
'sigmd5': '7c1f60d8cde73e97a45e0c489f4a3b26',
'signature': None, 'epoch': None},
'signature': None, 'epoch': None, 'module': None},
{'type': 'rpm', 'name': 'fedora-repos-rawhide',
'version': '24', 'release': '0.1', 'arch': 'noarch',
'sigmd5': 'd41df1e059544d906363605d47477e60',
'signature': None, 'epoch': None},
'signature': None, 'epoch': None, 'module': None},
{'type': 'rpm', 'name': 'gpg-pubkey-doc',
'version': '1.0', 'release': '1', 'arch': 'noarch',
'sigmd5': '00000000000000000000000000000000',
'signature': None, 'epoch': None}],
'signature': None, 'epoch': None, 'module': None}],
'ppc64le': [{'type': 'rpm', 'name': 'python-docker-py',
'version': '1.3.1', 'release': '1.fc24',
'arch': 'noarch',
'sigmd5': '7c1f60d8cde73e97a45e0c489f4a3b26',
'signature': None, 'epoch': None},
'signature': None, 'epoch': None, 'module': None},
{'type': 'rpm', 'name': 'fedora-repos-rawhide',
'version': '24', 'release': '0.1', 'arch': 'noarch',
'sigmd5': 'd41df1e059544d906363605d47477e60',
'signature': None, 'epoch': None},
'signature': None, 'epoch': None, 'module': None},
{'type': 'rpm', 'name': 'gpg-pubkey-doc',
'version': '1.0', 'release': '1', 'arch': 'noarch',
'sigmd5': '00000000000000000000000000000000',
'signature': None, 'epoch': None}],
'signature': None, 'epoch': None, 'module': None}],
}

with TemporaryDirectory() as d:
Expand Down

0 comments on commit 7f4cac9

Please sign in to comment.