Skip to content

Commit

Permalink
[#3688] Add fixtures to Objects APIs for following tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos authored and sergei-maertens committed Mar 22, 2024
1 parent d0ea12f commit beb52f2
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 1 deletion.
20 changes: 20 additions & 0 deletions docker/objects-apis/fixtures/objects_api_fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
"_name": "Person"
}
},
{
"model": "core.objecttype",
"pk": 2,
"fields": {
"service": 1,
"uuid": "527b8408-7421-4808-a744-43ccb7bdaaa2",
"_name": "File uploads"
}
},
{
"model": "token.tokenauth",
"pk": "7657474c3d75f56ae0abd0d1bf7994b09964dca9",
Expand All @@ -32,6 +41,17 @@
"fields": null
}
},
{
"model": "token.permission",
"pk": 1,
"fields": {
"token_auth": "7657474c3d75f56ae0abd0d1bf7994b09964dca9",
"object_type": 2,
"mode": "read_and_write",
"use_fields": false,
"fields": null
}
},
{
"model": "zgw_consumers.service",
"pk": 1,
Expand Down
55 changes: 54 additions & 1 deletion docker/objects-apis/fixtures/objecttypes_api_fixtures.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,29 @@
"allow_geometry": true
}
},
{
"model": "core.objecttype",
"pk": 3,
"fields": {
"uuid": "527b8408-7421-4808-a744-43ccb7bdaaa2",
"name": "File Uploads",
"name_plural": "File Uploads",
"description": "",
"data_classification": "confidential",
"maintainer_organization": "",
"maintainer_department": "",
"contact_person": "",
"contact_email": "",
"source": "",
"update_frequency": "unknown",
"provider_organization": "",
"documentation_url": "",
"labels": {},
"created_at": "2024-02-08",
"modified_at": "2024-02-08",
"allow_geometry": true
}
},
{
"model": "core.objectversion",
"pk": 1,
Expand Down Expand Up @@ -133,7 +156,9 @@
"name": {
"type": "object",
"properties": {
"last.name": {"type": "string"}
"last.name": {
"type": "string"
}
}
},
"submission_pdf_url": {
Expand Down Expand Up @@ -186,6 +211,34 @@
"status": "published"
}
},
{
"model": "core.objectversion",
"pk": 5,
"fields": {
"object_type": 3,
"version": 1,
"created_at": "2024-02-08",
"modified_at": "2024-02-08",
"published_at": "2024-02-08",
"json_schema": {
"type": "object",
"title": "File uploads",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"single_file": {
"type": "string"
},
"multiple_files": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"status": "published"
}
},
{
"model": "token.tokenauth",
"pk": "171be5abaf41e7856b423ad513df1ef8f867ff48",
Expand Down

0 comments on commit beb52f2

Please sign in to comment.