|
180 | 180 |
|
181 | 181 | # User, Robot, Session Data Blob Entries |
182 | 182 | function GraphAgentBlobentries!(fg::AbstractDFG) |
183 | | - be = Blobentry(; |
184 | | - id = uuid4(), |
185 | | - blobid = uuid4(), |
186 | | - label = :key1, |
187 | | - blobstore = :b, |
188 | | - hash = "", |
189 | | - origin = "", |
190 | | - description = "", |
191 | | - mimeType = "", |
192 | | - metadata = "", |
193 | | - ) |
| 183 | + be = Blobentry(; label = :key1, blobstore = :b) |
194 | 184 |
|
195 | 185 | # Agent Blob Entries |
196 | 186 | ae = addAgentBlobentry!(fg, be) |
@@ -847,57 +837,22 @@ function DataEntriesTestBlock!(fg, v2) |
847 | 837 | # listBlobentries |
848 | 838 | # emptyDataEntries |
849 | 839 | # mergeDataEntries |
850 | | - storeEntry = Blobentry(; |
851 | | - id = uuid4(), |
852 | | - blobid = uuid4(), |
853 | | - label = :a, |
854 | | - blobstore = :b, |
855 | | - origin = "", |
856 | | - description = "", |
857 | | - mimetype = "", |
858 | | - metadata = "", |
859 | | - ) |
| 840 | + storeEntry = Blobentry(; blobid = uuid4(), label = :a, blobstore = :b) |
860 | 841 | @test getLabel(storeEntry) == storeEntry.label |
861 | 842 | @test getTimestamp(storeEntry) == storeEntry.timestamp |
862 | 843 |
|
863 | 844 | # oid = zeros(UInt8,12); oid[12] = 0x01 |
864 | 845 | # de1 = MongodbDataEntry(:key1, uuid4(), NTuple{12,UInt8}(oid), "", now(localzone())) |
865 | | - de1 = Blobentry(; |
866 | | - id = uuid4(), |
867 | | - blobid = uuid4(), |
868 | | - label = :key1, |
869 | | - blobstore = :b, |
870 | | - origin = "", |
871 | | - description = "", |
872 | | - mimeType = "", |
873 | | - metadata = "", |
874 | | - ) |
| 846 | + de1 = Blobentry(; blobid = uuid4(), label = :key1, blobstore = :b) |
875 | 847 |
|
876 | 848 | # oid = zeros(UInt8,12); oid[12] = 0x02 |
877 | 849 | # de2 = MongodbDataEntry(:key2, uuid4(), NTuple{12,UInt8}(oid), "", now(localzone())) |
878 | | - de2 = Blobentry(; |
879 | | - id = uuid4(), |
880 | | - blobid = uuid4(), |
881 | | - label = :key2, |
882 | | - blobstore = :b, |
883 | | - origin = "", |
884 | | - description = "", |
885 | | - mimeType = "", |
886 | | - metadata = "", |
887 | | - ) |
| 850 | + de2 = Blobentry(; blobid = uuid4(), label = :key2, blobstore = :b) |
888 | 851 |
|
889 | 852 | # oid = zeros(UInt8,12); oid[12] = 0x03 |
890 | 853 | # de2_update = MongodbDataEntry(:key2, uuid4(), NTuple{12,UInt8}(oid), "", now(localzone())) |
891 | | - de2_update = Blobentry(; |
892 | | - id = uuid4(), |
893 | | - blobid = uuid4(), |
894 | | - label = :key2, |
895 | | - blobstore = :b, |
896 | | - origin = "", |
897 | | - description = "Yay", |
898 | | - mimeType = "", |
899 | | - metadata = "", |
900 | | - ) |
| 854 | + de2_update = |
| 855 | + Blobentry(; blobid = uuid4(), label = :key2, blobstore = :b, description = "Yay") |
901 | 856 |
|
902 | 857 | #add |
903 | 858 | v1 = getVariable(fg, :a) |
@@ -947,39 +902,33 @@ end |
947 | 902 |
|
948 | 903 | function blobsStoresTestBlock!(fg) |
949 | 904 | de1 = Blobentry(; |
950 | | - id = uuid4(), |
951 | 905 | blobid = uuid4(), |
952 | 906 | label = :label1, |
953 | 907 | blobstore = :store1, |
954 | | - hash = "AAAA", |
| 908 | + crchash = 0xAAAA, |
955 | 909 | origin = "origin1", |
956 | 910 | description = "description1", |
957 | | - mimeType = "mimetype1", |
958 | | - metadata = "", |
| 911 | + mimetype = "mimetype1", |
959 | 912 | ) |
960 | 913 | de2 = Blobentry(; |
961 | | - id = uuid4(), |
962 | 914 | blobid = uuid4(), |
963 | 915 | label = :label2, |
964 | 916 | blobstore = :store2, |
965 | | - hash = "FFFF", |
| 917 | + crchash = 0xFFFF, |
966 | 918 | origin = "origin2", |
967 | 919 | description = "description2", |
968 | | - mimeType = "mimetype2", |
969 | | - metadata = "", |
970 | | - timestamp = ZonedDateTime("2020-08-12T12:00:00.000+00:00"), |
| 920 | + mimetype = "mimetype2", |
| 921 | + timestamp = DFG.NanoDate("2020-08-12T12:00:00.000"), |
971 | 922 | ) |
972 | 923 | de2_update = Blobentry(; |
973 | | - id = uuid4(), |
974 | 924 | blobid = uuid4(), |
975 | 925 | label = :label2, |
976 | 926 | blobstore = :store2, |
977 | | - hash = "0123", |
| 927 | + crchash = 0x0123, |
978 | 928 | origin = "origin2", |
979 | 929 | description = "description2", |
980 | | - mimeType = "mimetype2", |
981 | | - metadata = "", |
982 | | - timestamp = ZonedDateTime("2020-08-12T12:00:00.000+00:00"), |
| 930 | + mimetype = "mimetype2", |
| 931 | + timestamp = DFG.NanoDate("2020-08-12T12:00:00.000"), |
983 | 932 | ) |
984 | 933 | @test getLabel(de1) == de1.label |
985 | 934 | @test getTimestamp(de1) == de1.timestamp |
|
0 commit comments