John-Mark Gurney
e51b7a62ac
cover a couple missed cases for _archive..
hide coverage in test code
2 years ago
John-Mark Gurney
b75a4d82da
add support for archives, such as tar.gz...
2 years ago
John-Mark Gurney
f4fd04ec10
if container is already present and complete, skip it..
2 years ago
John-Mark Gurney
17453c9b8c
w/ sqlite3 objects aren't exactly the same, use == instead
2 years ago
John-Mark Gurney
5006cb622f
drop unneed arg to ObjectStore, add type column via migration
add tests for migration, good example for future needs..
2 years ago
John-Mark Gurney
633a957bbc
change the ignore to match the correct extension.
2 years ago
John-Mark Gurney
0a036e092c
switch to edgold from cryptography.
We were only using the ed448 code, and cryptography requires rust
to compile, and contains a LOT of other code, while edgold is much
smaller, and doesn't require a rust compiler, and will work on more
systems.. Keep around an old identity generated from cryptography
to make sure the two libraries are compatible.
2 years ago
John-Mark Gurney
003612d47e
convert the main data store to SQLite3...
one minor issue is that the identity object gets dump'd twice..
2 years ago
John-Mark Gurney
dcc46bc962
add comment
2 years ago
John-Mark Gurney
356be8332b
support mappings, that is one host has the same files as another...
this fleshes out hostuuid better..
add a more useful debug print..
2 years ago
John-Mark Gurney
56503fdcdb
add host object, to be used for mappings...
2 years ago
John-Mark Gurney
0d0ae8ead4
make ms:tag unique, drop dups..
2 years ago
John-Mark Gurney
f2db9119e4
print out which container didn't have all it's files added
2 years ago
John-Mark Gurney
e5e22a0361
allow updating the container object...
2 years ago
John-Mark Gurney
609ef37b96
dump out the identity as well, makes it easier to import
2 years ago
John-Mark Gurney
cf7a81b22a
add option to sign on import..
If the identity changed, generate a new uuid, and set created_by and
modified appropriately...
2 years ago
John-Mark Gurney
f9659df3b3
make sure that importing only takes the latest FileObject...
the modified is the correct, not mtime, as someone can put an
"older" modified file, but at a later time, so it's assumed
that the most recently modified fileobject has the most up to
date data..
2 years ago
John-Mark Gurney
549de4082c
add container support, handle when a fileobject exists, but no metadata
The later happens after importing a container.
2 years ago
John-Mark Gurney
c895cd2ebd
simplify regex in test..
2 years ago
John-Mark Gurney
22970029de
add a file that should have been added a while back..
2 years ago
John-Mark Gurney
cd9159ddf3
add auto command to populate some standard fields, e.g. mimetype
2 years ago
John-Mark Gurney
4a28327b7d
forgot this modifications..
2 years ago
John-Mark Gurney
69b1b1c856
implement import (json, from dump) and drop (delete from db)
2 years ago
John-Mark Gurney
0d258c04f4
make sure that iter returns uniq objects..
2 years ago
John-Mark Gurney
bf0677d6a3
add skip, make sure hostid is a uuid when reloaded..
2 years ago
John-Mark Gurney
53c6d72103
spell genident properly..
2 years ago
John-Mark Gurney
c2f3364647
add support for hostid..
2 years ago
John-Mark Gurney
37212a4c08
if list creates a file, write it out..
2 years ago
John-Mark Gurney
cda0102972
update pasn1 to UTC support, add missing test files...
fix up code to pass all the tests...
2 years ago
John-Mark Gurney
6c521cbcf5
these changes are broken, but about to clean stuff up so checkpoint..
This was partial work to go to python3, but I've now since learned that
going twisted is not the way I want to work for web frameworks, so a
large amount of this code will be dropped (kleintest.py) or rewritten..
3 years ago
John-Mark Gurney
7d6f404bcd
encode UUIDs as bytes.. This shrinks the pubkey string significantly...
5 years ago
John-Mark Gurney
997ca67c62
add signing support...
as part of this work, also uplifted automatic promotion of uuid
to a UUID object...
add encode/decode methods to MDBase to make things more simple
when handling serialization...
5 years ago
John-Mark Gurney
247eb2dde7
add Persona and various tests for it..
5 years ago
John-Mark Gurney
e30849421f
move fixtures ignore to the dir, and add the new persona
5 years ago
John-Mark Gurney
8562359ad0
add module to parse mtree output that is compatible w/ bsdtar..
5 years ago
John-Mark Gurney
5359b43697
properties need to be lists, as there might be multiple ones..
add new_version that creates a new version with modifications
5 years ago
John-Mark Gurney
b19d98a07e
it's creator, not author, add some comments on tests to add and
private members... also increase coverage back to 100%, delete
outdated comments..
5 years ago
John-Mark Gurney
8c25fc0fd8
start adding support for the command to list the properties...
this involved restructing the objectstore to be more of a complete
repo, keeping things like create_by_ref for new objects...
5 years ago
John-Mark Gurney
665a46e86d
make genfixtures use ObjectStore so it's like what the cli uses..
5 years ago
John-Mark Gurney
762e422586
add created_by_ref, and some previously missing files..
5 years ago