Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm

Fix failing tests

Before all our testing was done manually. This fixes the remaining failing automatic tests.

+24 -5
+24 -5
constellation/src/storage/mod.rs
··· 182 182 "a.com", 183 183 "app.t.c", 184 184 ".abc.uri", 185 + false, 185 186 100, 186 187 None, 187 188 &HashSet::default() ··· 685 686 "a.com", 686 687 "app.t.c", 687 688 ".abc.uri", 689 + false, 688 690 100, 689 691 None, 690 692 &HashSet::default() ··· 730 732 )?; 731 733 } 732 734 let links = 733 - storage.get_links("a.com", "app.t.c", ".abc.uri", 2, None, &HashSet::default())?; 735 + storage.get_links("a.com", "app.t.c", ".abc.uri", false, 2, None, &HashSet::default())?; 734 736 let dids = storage.get_distinct_dids("a.com", "app.t.c", ".abc.uri", 2, None)?; 735 737 assert_eq!( 736 738 links, ··· 765 767 "a.com", 766 768 "app.t.c", 767 769 ".abc.uri", 770 + false, 768 771 2, 769 772 links.next, 770 773 &HashSet::default(), ··· 803 806 "a.com", 804 807 "app.t.c", 805 808 ".abc.uri", 809 + false, 806 810 2, 807 811 links.next, 808 812 &HashSet::default(), ··· 838 842 "a.com", 839 843 "app.t.c", 840 844 ".abc.uri", 845 + false, 841 846 2, 842 847 None, 843 848 &HashSet::from([Did("did:plc:linker".to_string())]), ··· 871 876 "a.com", 872 877 "app.t.c", 873 878 ".abc.uri", 879 + false, 874 880 2, 875 881 None, 876 882 &HashSet::from([Did("did:plc:linker".to_string())]), ··· 893 899 "a.com", 894 900 "app.t.c", 895 901 ".abc.uri", 902 + false, 896 903 2, 897 904 None, 898 905 &HashSet::from([Did("did:plc:someone-else".to_string())]), ··· 940 947 "a.com", 941 948 "app.t.c", 942 949 ".abc.uri", 950 + false, 943 951 2, 944 952 None, 945 953 &HashSet::from([Did("did:plc:linker".to_string())]), ··· 969 977 "a.com", 970 978 "app.t.c", 971 979 ".abc.uri", 980 + false, 972 981 2, 973 982 None, 974 983 &HashSet::from([ ··· 1001 1010 "a.com", 1002 1011 "app.t.c", 1003 1012 ".abc.uri", 1013 + false, 1004 1014 2, 1005 1015 None, 1006 1016 &HashSet::from([Did("did:plc:someone-unknown".to_string())]), ··· 1034 1044 )?; 1035 1045 } 1036 1046 let links = 1037 - storage.get_links("a.com", "app.t.c", ".abc.uri", 2, None, &HashSet::default())?; 1047 + storage.get_links("a.com", "app.t.c", ".abc.uri", false, 2, None, &HashSet::default())?; 1038 1048 assert_eq!( 1039 1049 links, 1040 1050 PagedAppendingCollection { ··· 1059 1069 "a.com", 1060 1070 "app.t.c", 1061 1071 ".abc.uri", 1072 + false, 1062 1073 2, 1063 1074 links.next, 1064 1075 &HashSet::default(), ··· 1104 1115 )?; 1105 1116 } 1106 1117 let links = 1107 - storage.get_links("a.com", "app.t.c", ".abc.uri", 2, None, &HashSet::default())?; 1118 + storage.get_links("a.com", "app.t.c", ".abc.uri", false, 2, None, &HashSet::default())?; 1108 1119 assert_eq!( 1109 1120 links, 1110 1121 PagedAppendingCollection { ··· 1143 1154 "a.com", 1144 1155 "app.t.c", 1145 1156 ".abc.uri", 1157 + false, 1146 1158 2, 1147 1159 links.next, 1148 1160 &HashSet::default(), ··· 1188 1200 )?; 1189 1201 } 1190 1202 let links = 1191 - storage.get_links("a.com", "app.t.c", ".abc.uri", 2, None, &HashSet::default())?; 1203 + storage.get_links("a.com", "app.t.c", ".abc.uri", false, 2, None, &HashSet::default())?; 1192 1204 assert_eq!( 1193 1205 links, 1194 1206 PagedAppendingCollection { ··· 1221 1233 "a.com", 1222 1234 "app.t.c", 1223 1235 ".abc.uri", 1236 + false, 1224 1237 2, 1225 1238 links.next, 1226 1239 &HashSet::default(), ··· 1259 1272 )?; 1260 1273 } 1261 1274 let links = 1262 - storage.get_links("a.com", "app.t.c", ".abc.uri", 2, None, &HashSet::default())?; 1275 + storage.get_links("a.com", "app.t.c", ".abc.uri", false, 2, None, &HashSet::default())?; 1263 1276 assert_eq!( 1264 1277 links, 1265 1278 PagedAppendingCollection { ··· 1288 1301 "a.com", 1289 1302 "app.t.c", 1290 1303 ".abc.uri", 1304 + false, 1291 1305 2, 1292 1306 links.next, 1293 1307 &HashSet::default(), ··· 1369 1383 "a.b.c", 1370 1384 ".d.e", 1371 1385 ".f.g", 1386 + false, 1372 1387 10, 1373 1388 None, 1374 1389 &HashSet::new(), ··· 1412 1427 "app.t.c", 1413 1428 ".abc.uri", 1414 1429 ".def.uri", 1430 + false, 1415 1431 10, 1416 1432 None, 1417 1433 &HashSet::new(), ··· 1511 1527 "app.t.c", 1512 1528 ".abc.uri", 1513 1529 ".def.uri", 1530 + false, 1514 1531 10, 1515 1532 None, 1516 1533 &HashSet::new(), ··· 1527 1544 "app.t.c", 1528 1545 ".abc.uri", 1529 1546 ".def.uri", 1547 + false, 1530 1548 10, 1531 1549 None, 1532 1550 &HashSet::from_iter([Did("did:plc:fdsa".to_string())]), ··· 1543 1561 "app.t.c", 1544 1562 ".abc.uri", 1545 1563 ".def.uri", 1564 + false, 1546 1565 10, 1547 1566 None, 1548 1567 &HashSet::new(),