debian-koji/tests/test_hub/data/image/import_1/db.json
2017-10-06 17:16:03 -04:00

208 lines
7.4 KiB
JSON

{
"inserts": [
[
"INSERT INTO archiveinfo (build_id, archive_id, type_id, checksum, filename, checksum_type, btype_id, buildroot_id, id, size) VALUES (%(build_id)s, %(archive_id)s, %(type_id)s, %(checksum)s, %(filename)s, %(checksum_type)s, %(btype_id)s, %(buildroot_id)s, %(id)s, %(size)s)",
{
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "19a674d997af7098a444b60d7b51cee6",
"filename": "tdl-x86_64.xml",
"checksum_type": 0,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1001,
"size": 36
},
{}
],
[
"INSERT INTO image_archives (archive_id, arch) VALUES (%(archive_id)s, %(arch)s)",
{
"archive_id": 1001,
"arch": "x86_64"
},
{}
],
[
"INSERT INTO archiveinfo (build_id, archive_id, type_id, checksum, filename, checksum_type, btype_id, buildroot_id, id, size) VALUES (%(build_id)s, %(archive_id)s, %(type_id)s, %(checksum)s, %(filename)s, %(checksum_type)s, %(btype_id)s, %(buildroot_id)s, %(id)s, %(size)s)",
{
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "a5114a20d790cf17eca1b1115a4546f8",
"filename": "image.ks",
"checksum_type": 0,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1002,
"size": 30
},
{}
],
[
"INSERT INTO image_archives (archive_id, arch) VALUES (%(archive_id)s, %(arch)s)",
{
"archive_id": 1002,
"arch": "x86_64"
},
{}
],
[
"INSERT INTO archiveinfo (build_id, archive_id, type_id, checksum, filename, checksum_type, btype_id, buildroot_id, id, size) VALUES (%(build_id)s, %(archive_id)s, %(type_id)s, %(checksum)s, %(filename)s, %(checksum_type)s, %(btype_id)s, %(buildroot_id)s, %(id)s, %(size)s)",
{
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "9828cf75d9d17ac8e79e53ed71c6a71c",
"filename": "image-base.ks",
"checksum_type": 0,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1003,
"size": 35
},
{}
],
[
"INSERT INTO image_archives (archive_id, arch) VALUES (%(archive_id)s, %(arch)s)",
{
"archive_id": 1003,
"arch": "x86_64"
},
{}
],
[
"INSERT INTO archiveinfo (build_id, archive_id, type_id, checksum, filename, checksum_type, btype_id, buildroot_id, id, size) VALUES (%(build_id)s, %(archive_id)s, %(type_id)s, %(checksum)s, %(filename)s, %(checksum_type)s, %(btype_id)s, %(buildroot_id)s, %(id)s, %(size)s)",
{
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "f601c0f647d7cdd4c92aa511876f8533",
"filename": "foo-x86_64.xml",
"checksum_type": 0,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1004,
"size": 36
},
{}
],
[
"INSERT INTO image_archives (archive_id, arch) VALUES (%(archive_id)s, %(arch)s)",
{
"archive_id": 1004,
"arch": "x86_64"
},
{}
],
[
"INSERT INTO archiveinfo (build_id, archive_id, type_id, checksum, filename, checksum_type, btype_id, buildroot_id, id, size) VALUES (%(build_id)s, %(archive_id)s, %(type_id)s, %(checksum)s, %(filename)s, %(checksum_type)s, %(btype_id)s, %(buildroot_id)s, %(id)s, %(size)s)",
{
"build_id": 137,
"archive_id": "ARCHIVE_ID",
"type_id": "ARCHIVETYPE",
"checksum": "84547200ef5002292ecdd50c62de518e",
"filename": "my-image-7.4.2-2.x86_64.ova",
"checksum_type": 0,
"btype_id": "BTYPEID:image",
"buildroot_id": null,
"id": 1005,
"size": 49
},
{}
],
[
"INSERT INTO image_archives (archive_id, arch) VALUES (%(archive_id)s, %(arch)s)",
{
"archive_id": 1005,
"arch": "x86_64"
},
{}
],
[
"INSERT INTO archive_rpm_components (archive_id, rpm_id) VALUES (%(archive_id)s, %(rpm_id)s)",
{
"archive_id": 1002,
"rpm_id": 1000
},
{}
],
[
"INSERT INTO archive_rpm_components (archive_id, rpm_id) VALUES (%(archive_id)s, %(rpm_id)s)",
{
"archive_id": 1002,
"rpm_id": 1001
},
{}
],
[
"INSERT INTO archive_rpm_components (archive_id, rpm_id) VALUES (%(archive_id)s, %(rpm_id)s)",
{
"archive_id": 1002,
"rpm_id": 1002
},
{}
],
[
"INSERT INTO archive_rpm_components (archive_id, rpm_id) VALUES (%(archive_id)s, %(rpm_id)s)",
{
"archive_id": 1003,
"rpm_id": 1000
},
{}
],
[
"INSERT INTO archive_rpm_components (archive_id, rpm_id) VALUES (%(archive_id)s, %(rpm_id)s)",
{
"archive_id": 1003,
"rpm_id": 1001
},
{}
],
[
"INSERT INTO archive_rpm_components (archive_id, rpm_id) VALUES (%(archive_id)s, %(rpm_id)s)",
{
"archive_id": 1003,
"rpm_id": 1002
},
{}
],
[
"INSERT INTO archive_rpm_components (archive_id, rpm_id) VALUES (%(archive_id)s, %(rpm_id)s)",
{
"archive_id": 1005,
"rpm_id": 1000
},
{}
],
[
"INSERT INTO archive_rpm_components (archive_id, rpm_id) VALUES (%(archive_id)s, %(rpm_id)s)",
{
"archive_id": 1005,
"rpm_id": 1001
},
{}
],
[
"INSERT INTO archive_rpm_components (archive_id, rpm_id) VALUES (%(archive_id)s, %(rpm_id)s)",
{
"archive_id": 1005,
"rpm_id": 1002
},
{}
]
],
"updates": [
[
"UPDATE build SET state = %(data.state)s, id = %(data.id)s, completion_time = (now())\nWHERE ( id=%(build_id)i )",
{
"state": 1,
"id": "BUILD_ID"
},
{
"completion_time": "now()"
}
]
]
}