Commit Graph

38 Commits

Author SHA1 Message Date
11e8095348
fix: fix order of instructions in .pol files (#80)
* fix: rewrite `PolicyTree` type

* fix: rewrite parser to work with new `PolicyTree`

* fix: rewrite polformat to work with new `PolicyTree`

* fix: update test

* fix: incorect `operator==`

* style: remove unnecessary `get()`
2024-08-14 13:43:53 +04:00
e9275cca3a
fix: fix endianness in pol parser tests (#81)
* fix: make test cross-platform

* chore: add `PRegParser` header test (endianness)

* fix: header incorrect endianness
2024-08-14 13:42:21 +04:00
361155f763
wip: rewrite pol file serializator/deserializator (#68)
* wip: adding ragel file `pol.rl`

* wip: init cmake

* feat: update cmake files

* fead: add empty `parser.h`

* feat: add ragel to dockerfile

* wip: `libparsepol` adding

* fix: remove unnecessary `std::move`

* chore: remove ragel from docker

* chore: remove unnecessary comments

* chore: splitting tests into different methods

* chore: use `qDebug`/`qWarning`/`qCritical` instead of `std::cout`/`std::cerr`

* chore: use `QCOMPARE` instead of `std::runtime_error`/`assert` in tests

* chore: improve test for `QTest`

* fix: `BE QWORD` -> `LE QWORD`

* fix: allow multiply value with same `keyPath` and `valueName`

* chore: replace preprocessor macros with functions

* style: adding a line between functions

* chroe: small changes

style: small fix code format
wip: use one `uint64_t` variable instead of two `uint32_t` to comparison
fix: adding `Keypath` `Valuename` and type validation into writer

* chore: separate LE and BE tests

* chore: throw exception on `REG_NONE` and invalid iconv descriptor

* style: remove `./` from includes

* style: rename some functions

`bufferToString` -> `readStringFromBuffer`, `stringToBuffer` -> `writeStringToBuffer`,
`bufferToStrings` -> `readStringsFromBuffer`,
`stringsToBuffer` -> `writeStringsFromBuffer`,
`bufferToVector` -> `readVectorFromBuffer`,
`vectorToBuffer` -> `writeVectorToBuffer`,

* chore: minimize `getType`

* chore: rename `bufferToIntegral` -> `readIntegralFromBuffer`, `integralToBuffer` -> `writeIntegralToBuffer`

* chore: add new constants and use it insted of `reinterpret_cast<iconv_t>(-1)` and `reinterpret_cast<size_t>(-1)`

* chore: remove missing `./`

* chore: add missing include

* fix: rename `LittleEngian` -> `LittleEndian`

* fix: removing unnecessary PolicyBody

* chore: make `PRegParser` final and make all methods  non-virtual

* chore: remove unnecessary include

* style: rename iconv descriptors

* style: fix style
2024-08-05 15:56:14 +04:00
august-alt
1908488b00
feat: implement filter dialog for administrative templates (#39)
* feat: add template filter

* feat: implement filter

* chore: add policyelement includes

* chore: remove template filters form mainwindow

* feat: add platform model

* chore: refactor template filter dialog

* chore: refactor administrative template snapin

* feat: add translation for filters

* fix: fix tests
2023-06-20 19:11:59 +04:00
august-alt
18aa62bb7a fix: fix presentation builder test 2023-04-11 17:48:38 +04:00
august-alt
636a6d3c7f fix: fix tests 2023-04-11 14:33:38 +04:00
AlexSP0
0ae9861008
chore: add test for TranslatorStorage 2023-04-11 14:15:20 +04:00
august-alt
02c10cd8f7 wip, chore: update tests 2022-04-01 22:45:08 +04:00
august-alt
a2173ddbb8 feat, tests: add files for smb protocol
- implement classes to read files and directories
- implement routines to write files on smb shares
- remove nemofolderlist model
- add files for smb tests
2022-02-01 13:58:02 +04:00
august-alt
64b19fe423 fix, test: update test for drives 2021-10-25 15:53:44 +04:00
august-alt
06e31054e7 fix, tests: fix tests for adml and presentation builder 2021-09-22 19:19:41 +04:00
august-alt
cfe57593b6 feat: update plugins test cmake file 2021-09-22 19:08:20 +04:00
august-alt
1ea11666a7 tests: add test for variables widget 2021-09-22 19:06:17 +04:00
august-alt
665b64cfae tests: add test for folders widget 2021-09-22 19:05:57 +04:00
august-alt
9f16d7a546 tests: add test for shares widget 2021-09-22 19:04:59 +04:00
august-alt
9ed216ed4c tests: add test for ini widget 2021-09-22 19:04:51 +04:00
august-alt
d056d39212 tests: add test for files widget 2021-09-22 19:04:41 +04:00
august-alt
fdd762d0be tests: add tests for drives 2021-09-22 19:03:46 +04:00
august-alt
7d1b97554a test: update preferences cmake file 2021-09-09 16:47:28 +04:00
august-alt
d7cbc01ed0 test: update preferences dialog test 2021-09-09 16:46:03 +04:00
august-alt
36ab9457ce feat, tests: update tests cmake files 2021-09-08 19:26:26 +04:00
august-alt
d13b6382b2 feat: add preferences dialog test 2021-09-08 19:26:05 +04:00
august-alt
a702579964 feat: add shortcuts widget test 2021-09-08 19:25:40 +04:00
august-alt
8f1d3f9a4a tests: add pol file test 2021-07-21 17:40:14 +04:00
august-alt
b8e34d674a tests: update tests 2021-07-14 17:58:41 +04:00
august-alt
f1a76d23f6 license: update license 2021-07-13 17:35:53 +04:00
august-alt
a7b5b3b889 tests: update adml test 2021-07-12 16:48:00 +04:00
august-alt
47a4064d7e fix, test: correct presentation builder tests 2021-07-09 17:49:44 +04:00
august-alt
8821d67180 tests: add empty policybundle test 2021-07-05 17:01:15 +04:00
august-alt
2ad20714d3 wip: add files for policy bundle test 2021-07-02 19:01:27 +04:00
august-alt
3c355d7159 chore: update cmake files 2021-03-30 18:44:33 +04:00
august-alt
4c28ac066c chore: refactor admx test 2021-03-30 18:43:51 +04:00
august-alt
b5ef92baa0 chore: refactor policy file test 2021-03-30 18:41:20 +04:00
august-alt
6eecedfb1d tests: add adml test 2021-03-30 18:37:57 +04:00
august-alt
d87d036172 feat: add test for admx 2021-03-24 17:58:49 +04:00
august-alt
ff0a3fd763 test: implement tests for policyfile 2021-03-23 15:28:05 +04:00
august-alt
5b0b4e570a chore: move widget models to presentation folder 2021-03-22 12:59:00 +04:00
august-alt
42fa762fd6 feat: add initial presentation widgets model 2021-03-19 14:38:24 +04:00