github.com/kaleido-io/firefly@v0.0.0-20210622132723-8b4b6aacb971/kat/src/test/samples.ts (about) 1 // Copyright © 2021 Kaleido, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 16 export const testDescription = { 17 schema: { 18 object: { 19 type: 'object', 20 required: ['my_description_string', 'my_description_number', 'my_description_boolean'], 21 properties: { 22 my_description_string: { 23 type: 'string' 24 }, 25 my_description_number: { 26 type: 'number' 27 }, 28 my_description_boolean: { 29 type: 'boolean' 30 } 31 } 32 }, 33 ipfsSha256: '0xbde03e0e77b5422ff3ce4889752ac9450343420a6a4354542b9fd14fd5fa435c', 34 ipfsMultiHash: 'Qmb7r5v11TYsJE8dYfnBFjwQsKapX1my7hzfAnd5GFq2io', 35 }, 36 sample: { 37 object: { 38 my_description_string: 'sample description string', 39 my_description_number: 123, 40 my_description_boolean: true 41 }, 42 ipfsSha256:'0x2ef1f576d187bb132068095b05a6796891bd0ee1bd69037c6c60f2a6b705d35a', 43 ipfsMultiHash: 'QmRVuTF2ktoKop95VbgARPZksdfZgpxx6xCJwFE3UbcMmT' 44 } 45 }; 46 47 export const testContent = { 48 schema: { 49 object: { 50 type: 'object', 51 required: ['my_content_string', 'my_content_number', 'my_content_boolean'], 52 properties: { 53 my_content_string: { 54 type: 'string' 55 }, 56 my_content_number: { 57 type: 'number' 58 }, 59 my_content_boolean: { 60 type: 'boolean' 61 } 62 } 63 }, 64 }, 65 sample: { 66 object: { 67 my_content_string: 'sample content string', 68 my_content_number: 456, 69 my_content_boolean: true 70 }, 71 ipfsSha256: '0x12e850feabadae5158666a3d03b449fbd4f04582ef0c9b5a91247a02af110016', 72 ipfsMultiHash: 'QmPcTWXWiUEwect513QdDtw1wa9QWcRgGTVebGbjhMKNxV', 73 docExchangeSha256: '0xb681804d7f63b532394091f9a0eab0c94e82a92332b4d299ba7493903b27c9e1' 74 } 75 }; 76 77 export const testIndexes = [ 78 { 79 fields: ["author"], 80 unique: false 81 }, 82 { 83 fields: ["author", "assetDefinitionID"], 84 unique: false 85 } 86 ];