Commit Graph

70944 Commits

Author SHA1 Message Date
Bo Maryniuk
f936dc4892 Check readability permissions (if minion is not root) 2016-07-06 10:09:14 +02:00
Bo Maryniuk
82ed36ef00 Configure Inspector with a proper configuration 2016-07-06 10:09:14 +02:00
Bo Maryniuk
aed8410398 Avoid ID gets rounded by Salt as "float" 2016-07-06 10:09:14 +02:00
Bo Maryniuk
6e907d44c8 Implement database delete 2016-07-06 10:09:14 +02:00
Bo Maryniuk
2a9d9aa765 Implement snapshot listing 2016-07-06 10:09:14 +02:00
Bo Maryniuk
783dfabbdf Add return value when flushing the database 2016-07-06 10:09:14 +02:00
Bo Maryniuk
073dcad779 Rename module from "node" to "inspector" 2016-07-06 10:09:14 +02:00
Bo Maryniuk
d1c2d5aaaa Lintfix 2016-07-06 10:09:14 +02:00
Bo Maryniuk
88ab5f4755 Fix Python3 compat (StringIO) 2016-07-06 10:09:14 +02:00
Bo Maryniuk
f1d0961e69 Fix boolean comparison 2016-07-06 10:09:14 +02:00
Bo Maryniuk
dc53267c97 Bugfix: return boolean value True if an object has been updated 2016-07-06 10:09:14 +02:00
Bo Maryniuk
f275378e24 Add unit test for update an object 2016-07-06 10:09:14 +02:00
Bo Maryniuk
6174f4ad4a Fix imports 2016-07-06 10:09:14 +02:00
Bo Maryniuk
bf9ba65489 Add unit test for deleting objects 2016-07-06 10:09:14 +02:00
Bo Maryniuk
1ce88be0ef Add unit test for criteria matcher 2016-07-06 10:09:14 +02:00
Bo Maryniuk
a20019d859 Add unit test for "matches" criteria selector 2016-07-06 10:09:14 +02:00
Bo Maryniuk
844eefd758 Add unit test for "less than" criteria selector 2016-07-06 10:09:14 +02:00
Bo Maryniuk
fac88ac41b Add unit test for "equals" criteria selector 2016-07-06 10:09:14 +02:00
Bo Maryniuk
1dfe81bfe6 Add unit test for "more than" criteria selector 2016-07-06 10:09:14 +02:00
Bo Maryniuk
fcea03044b Bugfix: more than and less than should not take equal as. 2016-07-06 10:09:14 +02:00
Bo Maryniuk
99848659c9 Add unit test on getting objects 2016-07-06 10:09:14 +02:00
Bo Maryniuk
bc1a8b7e45 Accept content in Writer 2016-07-06 10:09:14 +02:00
Bo Maryniuk
c4c2ac7e70 Add object storing unit test 2016-07-06 10:09:14 +02:00
Bo Maryniuk
9d055023af Add code author string 2016-07-06 10:09:14 +02:00
Bo Maryniuk
8e537ccc9e Reset data in Writable 2016-07-06 10:09:14 +02:00
Bo Maryniuk
c744aa1caf Add unit test for database listing 2016-07-06 10:09:14 +02:00
Bo Maryniuk
f7dc2b9c84 Add unit test for object validation 2016-07-06 10:09:14 +02:00
Bo Maryniuk
234e342aa7 Add unit test for object serialization 2016-07-06 10:09:14 +02:00
Bo Maryniuk
0a177297f4 Rename Writable class 2016-07-06 10:09:14 +02:00
Bo Maryniuk
8927d6fef6 Rename "TestEntity" as it accidentally picked by PyTest 2016-07-06 10:09:14 +02:00
Bo Maryniuk
4c7e4d36b7 Fix docstring 2016-07-06 10:09:14 +02:00
Bo Maryniuk
1df6b0a6a9 Add test creating table 2016-07-06 10:09:14 +02:00
Bo Maryniuk
54e5655e11 Add unit test for database close 2016-07-06 10:09:14 +02:00
Bo Maryniuk
f9c40170e5 Add initial tests for fsdb 2016-07-06 10:09:14 +02:00
Bo Maryniuk
eff3f4ef66 Fix broken tests: add os.mkdir mocking 2016-07-06 10:09:14 +02:00
Bo Maryniuk
e85343df9b Add licence to the inspector collector unit test 2016-07-06 10:09:14 +02:00
Bo Maryniuk
692c322098 Switch the main point to fsdb 2016-07-06 10:09:14 +02:00
Bo Maryniuk
26da61725a Remove SQLite completely 2016-07-06 10:09:14 +02:00
Bo Maryniuk
22a3dd4410 Remove querying SQLite 2016-07-06 10:09:14 +02:00
Bo Maryniuk
7a379fe969 Fix lint 2016-07-06 10:09:14 +02:00
Bo Maryniuk
6689642446 Move querying the configuration files from SQLite to fsdb. 2016-07-06 10:09:14 +02:00
Bo Maryniuk
0ff9b7b373 Move table initialization to the constructor 2016-07-06 10:09:14 +02:00
Bo Maryniuk
56de4c6c0c Fix the variable naming (remove shadowing) 2016-07-06 10:09:14 +02:00
Bo Maryniuk
22480bfe80 Fix docstring 2016-07-06 10:09:14 +02:00
Bo Maryniuk
fde3a5719e Implement object update 2016-07-06 10:09:14 +02:00
Bo Maryniuk
f301281a66 Remove update mode from storing function 2016-07-06 10:09:14 +02:00
Bo Maryniuk
30df4b54e8 Return boolean if data has been deleted 2016-07-06 10:09:14 +02:00
Bo Maryniuk
5db726bdf4 Implement getting objects by a query criteria 2016-07-06 10:09:14 +02:00
Bo Maryniuk
7623ac6d0a Implement distinct storage 2016-07-06 10:09:14 +02:00
Bo Maryniuk
fb97b4694f Implement object delete. This re-flushes the whole database via in-memory. 2016-07-06 10:09:14 +02:00