liberty-framework 6.0.47__py3-none-any.whl → 6.0.49__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. {liberty_framework-6.0.47.dist-info → liberty_framework-6.0.49.dist-info}/METADATA +3 -1
  2. liberty_framework-6.0.49.dist-info/RECORD +97 -0
  3. liberty_framework-6.0.49.dist-info/top_level.txt +1 -0
  4. app/.DS_Store +0 -0
  5. app/__pycache__/__init__.cpython-312.pyc +0 -0
  6. app/__pycache__/main.cpython-312.pyc +0 -0
  7. app/__pycache__/test.cpython-312.pyc +0 -0
  8. app/alembic/__pycache__/__init__.cpython-312.pyc +0 -0
  9. app/alembic/__pycache__/env.cpython-312.pyc +0 -0
  10. app/alembic/versions/__pycache__/07301a1e0a40_upgrade.cpython-312.pyc +0 -0
  11. app/alembic/versions/__pycache__/6d15b02a5d62_upgrade.cpython-312.pyc +0 -0
  12. app/alembic/versions/__pycache__/97ce2af21b7b_upgrade.cpython-312.pyc +0 -0
  13. app/alembic/versions/__pycache__/abebaaa0b8b5_upgrade.cpython-312.pyc +0 -0
  14. app/alembic/versions/__pycache__/dd5d460a6436_upgrade.cpython-312.pyc +0 -0
  15. app/alembic/versions/__pycache__/ecb84318e633_upgrade.cpython-312.pyc +0 -0
  16. app/alembic/versions/__pycache__/f93e0f531f2a_upgrade.cpython-312.pyc +0 -0
  17. app/alembic/versions/__pycache__/feb86bf02dac_upgrade.cpython-312.pyc +0 -0
  18. app/business/__pycache__/__init__.cpython-312.pyc +0 -0
  19. app/business/__pycache__/oracle.cpython-312.pyc +0 -0
  20. app/business/__pycache__/postgres.cpython-312.pyc +0 -0
  21. app/config/__pycache__/__init__.cpython-312.pyc +0 -0
  22. app/config/__pycache__/config.cpython-312.pyc +0 -0
  23. app/controllers/__pycache__/__init__.cpython-312.pyc +0 -0
  24. app/controllers/__pycache__/api_controller.cpython-312.pyc +0 -0
  25. app/controllers/__pycache__/react_controller.cpython-312.pyc +0 -0
  26. app/controllers/__pycache__/setup_controller.cpython-312.pyc +0 -0
  27. app/controllers/__pycache__/socket_controller.cpython-312.pyc +0 -0
  28. app/database/__pycache__/__init__.cpython-312.pyc +0 -0
  29. app/database/__pycache__/base_dao.cpython-312.pyc +0 -0
  30. app/database/__pycache__/config.cpython-312.pyc +0 -0
  31. app/database/__pycache__/dao_factory.cpython-312.pyc +0 -0
  32. app/database/__pycache__/ora_dao.cpython-312.pyc +0 -0
  33. app/database/__pycache__/oracle_dao.cpython-312.pyc +0 -0
  34. app/database/__pycache__/pg_dao.cpython-312.pyc +0 -0
  35. app/database/__pycache__/postgres_dao.cpython-312.pyc +0 -0
  36. app/logs/.DS_Store +0 -0
  37. app/logs/__pycache__/__init__.cpython-312.pyc +0 -0
  38. app/logs/__pycache__/logs.cpython-312.pyc +0 -0
  39. app/logs/files/logs-frontend-json.log +0 -209
  40. app/logs/files/logs-frontend-text.log +0 -836
  41. app/models/__pycache__/__init__.cpython-312.pyc +0 -0
  42. app/models/__pycache__/ai.cpython-312.pyc +0 -0
  43. app/models/__pycache__/apidb.cpython-312.pyc +0 -0
  44. app/models/__pycache__/applications.cpython-312.pyc +0 -0
  45. app/models/__pycache__/auth.cpython-312.pyc +0 -0
  46. app/models/__pycache__/base.cpython-312.pyc +0 -0
  47. app/models/__pycache__/checkdb.cpython-312.pyc +0 -0
  48. app/models/__pycache__/modules.cpython-312.pyc +0 -0
  49. app/models/__pycache__/pool.cpython-312.pyc +0 -0
  50. app/models/__pycache__/setup.cpython-312.pyc +0 -0
  51. app/models/__pycache__/themes.cpython-312.pyc +0 -0
  52. app/postgres/.DS_Store +0 -0
  53. app/postgres/__pycache__/__init__.cpython-312.pyc +0 -0
  54. app/postgres/dump/__pycache__/__init__.cpython-312.pyc +0 -0
  55. app/postgres/dump/__pycache__/dump.cpython-312.pyc +0 -0
  56. app/public/__pycache__/__init__.cpython-312.pyc +0 -0
  57. app/routes/__pycache__/__init__.cpython-312.pyc +0 -0
  58. app/routes/__pycache__/api_routes.cpython-312.pyc +0 -0
  59. app/routes/__pycache__/react_routes.cpython-312.pyc +0 -0
  60. app/routes/__pycache__/setup_routes.cpython-312.pyc +0 -0
  61. app/routes/__pycache__/socket_routes.cpython-312.pyc +0 -0
  62. app/services/__pycache__/__init__.cpython-312.pyc +0 -0
  63. app/services/__pycache__/alembic.cpython-312.pyc +0 -0
  64. app/services/__pycache__/api_rest.cpython-312.pyc +0 -0
  65. app/services/__pycache__/db_pool.cpython-312.pyc +0 -0
  66. app/services/__pycache__/db_query.cpython-312.pyc +0 -0
  67. app/setup/__pycache__/__init__.cpython-312.pyc +0 -0
  68. app/setup/data/__pycache__/__init__.cpython-312.pyc +0 -0
  69. app/setup/data/__pycache__/data.cpython-312.pyc +0 -0
  70. app/setup/models/__pycache__/__init__.cpython-312.pyc +0 -0
  71. app/setup/models/__pycache__/airflow.cpython-312.pyc +0 -0
  72. app/setup/models/__pycache__/liberty.cpython-312.pyc +0 -0
  73. app/setup/models/__pycache__/libnetl.cpython-312.pyc +0 -0
  74. app/setup/models/__pycache__/libnjde.cpython-312.pyc +0 -0
  75. app/setup/models/__pycache__/libnsx1.cpython-312.pyc +0 -0
  76. app/setup/models/__pycache__/models.cpython-312.pyc +0 -0
  77. app/setup/models/__pycache__/nomasx1.cpython-312.pyc +0 -0
  78. app/setup/services/__pycache__/__init__.cpython-312.pyc +0 -0
  79. app/setup/services/__pycache__/alembic.cpython-312.pyc +0 -0
  80. app/setup/services/__pycache__/dump.cpython-312.pyc +0 -0
  81. app/setup/services/__pycache__/init.cpython-312.pyc +0 -0
  82. app/setup/services/__pycache__/install.cpython-312.pyc +0 -0
  83. app/setup/services/__pycache__/models.cpython-312.pyc +0 -0
  84. app/setup/services/__pycache__/setup.cpython-312.pyc +0 -0
  85. app/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  86. app/utils/__pycache__/common.cpython-312.pyc +0 -0
  87. app/utils/__pycache__/encrypt.cpython-312.pyc +0 -0
  88. app/utils/__pycache__/jwt.cpython-312.pyc +0 -0
  89. app/utils/__pycache__/logs.cpython-312.pyc +0 -0
  90. app/utils/__pycache__/models.cpython-312.pyc +0 -0
  91. liberty_framework-6.0.47.dist-info/RECORD +0 -211
  92. liberty_framework-6.0.47.dist-info/top_level.txt +0 -2
  93. tests/__init__.py +0 -0
  94. tests/__pycache__/__init__.cpython-312.pyc +0 -0
  95. tests/__pycache__/conftest.cpython-312-pytest-8.3.4.pyc +0 -0
  96. tests/__pycache__/main.cpython-312.pyc +0 -0
  97. tests/__pycache__/test.cpython-312.pyc +0 -0
  98. tests/conftest.py +0 -15
  99. tests/main.py +0 -13
  100. tests/scenarios/__init__.py +0 -0
  101. tests/scenarios/__pycache__/__init__.cpython-312.pyc +0 -0
  102. tests/scenarios/__pycache__/test_auth_token.cpython-312-pytest-8.3.4.pyc +0 -0
  103. tests/scenarios/__pycache__/test_auth_user.cpython-312-pytest-8.3.4.pyc +0 -0
  104. tests/scenarios/__pycache__/test_db_check.cpython-312-pytest-8.3.4.pyc +0 -0
  105. tests/scenarios/__pycache__/test_db_close.cpython-312-pytest-8.3.4.pyc +0 -0
  106. tests/scenarios/__pycache__/test_db_open.cpython-312-pytest-8.3.4.pyc +0 -0
  107. tests/scenarios/__pycache__/test_fmw_applications.cpython-312-pytest-8.3.4.pyc +0 -0
  108. tests/scenarios/__pycache__/test_fmw_encrypt.cpython-312-pytest-8.3.4.pyc +0 -0
  109. tests/scenarios/__pycache__/test_fmw_modules.cpython-312-pytest-8.3.4.pyc +0 -0
  110. tests/scenarios/__pycache__/test_fmw_themes.cpython-312-pytest-8.3.4.pyc +0 -0
  111. tests/scenarios/test_auth_token.py +0 -38
  112. tests/scenarios/test_auth_user.py +0 -47
  113. tests/scenarios/test_db_check.py +0 -50
  114. tests/scenarios/test_db_close.py +0 -55
  115. tests/scenarios/test_db_open.py +0 -47
  116. tests/scenarios/test_fmw_applications.py +0 -21
  117. tests/scenarios/test_fmw_encrypt.py +0 -20
  118. tests/scenarios/test_fmw_modules.py +0 -19
  119. tests/scenarios/test_fmw_themes.py +0 -26
  120. {liberty_framework-6.0.47.dist-info → liberty_framework-6.0.49.dist-info}/LICENSE +0 -0
  121. {liberty_framework-6.0.47.dist-info → liberty_framework-6.0.49.dist-info}/WHEEL +0 -0
  122. {liberty_framework-6.0.47.dist-info → liberty_framework-6.0.49.dist-info}/entry_points.txt +0 -0
Binary file
Binary file
Binary file
Binary file
app/postgres/.DS_Store DELETED
Binary file
Binary file
Binary file
@@ -1,211 +0,0 @@
1
- app/.DS_Store,sha256=9QdUI08wHd9bOhlvztubSB3sn71yRGIz3vg8aiP1oxU,10244
2
- app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- app/alembic.ini,sha256=sGxERO831p17gli3eIq0FMmGhUvcdWDAtxridcpjrNc,3738
4
- app/main.py,sha256=_9G2vEHFAHtr-pieOuLVAT-1qclxEsb9v3QZH1qst2A,9072
5
- app/__pycache__/__init__.cpython-312.pyc,sha256=KQ0g4dUDkYAFgxsgrQfAnhb6n2EmSKcnQ0q50K0WgIc,197
6
- app/__pycache__/main.cpython-312.pyc,sha256=fHD7vmlzA2WVW7yhGC1bK0FAWLP9Hvid0ZmCzT7dBNM,13051
7
- app/__pycache__/test.cpython-312.pyc,sha256=3PTT3pV6-K-q9CDNHO0Pkj2Ur7V0XPHkHen8_JG8CeM,806
8
- app/alembic/README,sha256=YkE69IyN86OVtkHeD1a5chTe29HgmFxs2rBw1MxZIGo,94
9
- app/alembic/env.py,sha256=dQtJL1_2X-53xDUxe1Wy-y5Y-qtDcijDVM1j5wr7kTk,6063
10
- app/alembic/script.py.mako,sha256=N06nMtNSwHkgl0EBXDyMt8njp9tlOesR583gfq21nbY,1090
11
- app/alembic/__pycache__/__init__.cpython-312.pyc,sha256=kZqU18EwQQmV3zfOmtWVXoIrIL_pXzZL0oKCRpWZg-I,170
12
- app/alembic/__pycache__/env.cpython-312.pyc,sha256=SMgHwF0C_pU1y8GznO-vamwNkKgW1rS_sMKt_MsiuBw,7477
13
- app/alembic/versions/README,sha256=NCCgieGmMg17JYmbBdTWnHw-p9t3X6WKcxWLIyGekmc,70
14
- app/alembic/versions/__pycache__/07301a1e0a40_upgrade.cpython-312.pyc,sha256=fYGvUSAK0wsqk8ef4eV3aEESEx7EnrB889w3Pk0lGoo,8255
15
- app/alembic/versions/__pycache__/6d15b02a5d62_upgrade.cpython-312.pyc,sha256=eaUESwlxXevHtWC4xabV5Eb9pGN3pY8vXw98Q-04vS4,8255
16
- app/alembic/versions/__pycache__/97ce2af21b7b_upgrade.cpython-312.pyc,sha256=_uigrWghiGqCpGpGtlwP9OgUBF88U4Nhn9J4wVIb_Ts,2276
17
- app/alembic/versions/__pycache__/abebaaa0b8b5_upgrade.cpython-312.pyc,sha256=08VUBROrqcWvrfffdgp2AmPe1-cD5ojLn_92KRKLilI,5652
18
- app/alembic/versions/__pycache__/dd5d460a6436_upgrade.cpython-312.pyc,sha256=Zp57-LNkIGHUKPKNbGK8VsmG09ExoVJpmeOTUPoUd6c,38812
19
- app/alembic/versions/__pycache__/ecb84318e633_upgrade.cpython-312.pyc,sha256=nu-EJf4mtZ5AoYxaT_qx-XQDrFQgFOiu1FTtdjHl8q8,8255
20
- app/alembic/versions/__pycache__/f93e0f531f2a_upgrade.cpython-312.pyc,sha256=dOrL94aG1ZZLieRXr1RHYiUfHyJz_X-spHTrPDbmYGE,8273
21
- app/alembic/versions/__pycache__/feb86bf02dac_upgrade.cpython-312.pyc,sha256=3E9vvTa1xCEcTRBTtK4lLx-jOpi-fg4fqaTf6WXbSmo,9644
22
- app/business/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- app/business/oracle.py,sha256=onKL9IpAH97TSLTHWlSUwUQGgH1BhZyUueYMFYHeD_w,2705
24
- app/business/postgres.py,sha256=ZcG04EtjFyRJIWx4tSE4knLR8cthN583Y6Fpixy0El4,6493
25
- app/business/__pycache__/__init__.cpython-312.pyc,sha256=bcu-NlA5yVvIGkkD1Pt9nBgWDnch8hJ_7TxR-vy7VQs,206
26
- app/business/__pycache__/oracle.cpython-312.pyc,sha256=7sdH1BZiRKiwWtPpcDKUtqzjnc6C8Ntlo45aFLvlovQ,3922
27
- app/business/__pycache__/postgres.cpython-312.pyc,sha256=u1gF6xApEZr3HNFwii8zjSefYjbUws3tpWpvCyhwlIs,9361
28
- app/config/__init__.py,sha256=3K_Nb8pNysyY47rqQZWnWfrQvyjhOHgBETS66tr00LM,687
29
- app/config/__pycache__/__init__.cpython-312.pyc,sha256=sHDvTIPFsnK8jrKWQauAwMc7jOMAyHumYIjWTyB-fT0,1413
30
- app/config/__pycache__/config.cpython-312.pyc,sha256=dJDpQHukSNdXJe8znD3JmjJjwvfGlDlNCcvG4JwJOrY,769
31
- app/config/files/liberty.ini,sha256=otQotGlvSYtBGiTEcDhDLNqlmxp2yxYNxWoxPOVOTvo,558
32
- app/controllers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- app/controllers/api_controller.py,sha256=QEJ2lecgVgU4HpMlQkYMeJkFsDQ1khXmDo8oj57RT2c,2712
34
- app/controllers/setup_controller.py,sha256=YfrLnlTCK_isIOZbVbHxph95Ma7mTfmsoUBvdWqfzL8,1528
35
- app/controllers/socket_controller.py,sha256=ok5nbibPEeV4oVx1i_tzoecZwXNocgIUe-ECb_pFAVc,9228
36
- app/controllers/__pycache__/__init__.cpython-312.pyc,sha256=x4fclq5ptyLRFD1BLp3RPqwh_g1g3NR0v1DI_Y1ofgg,209
37
- app/controllers/__pycache__/api_controller.cpython-312.pyc,sha256=Q-tJJ8I3Vj6DyrXZ8bTGaYvouw83w9us419veG_3yzU,6606
38
- app/controllers/__pycache__/react_controller.cpython-312.pyc,sha256=l7_oBeQbJuevc9pd0qZgK7C3QCuOAgR8q2bR_id9xfI,744
39
- app/controllers/__pycache__/setup_controller.cpython-312.pyc,sha256=Lw-miWD6XqR996eRAxDaxODqfzJTcg_xz3kfaP59dLw,3666
40
- app/controllers/__pycache__/socket_controller.cpython-312.pyc,sha256=wKhC-tGf9VOfL2QpfFK-LIwFWHkoSLlfsaYG111SVLk,12191
41
- app/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- app/database/base_dao.py,sha256=eSZx21R3sTsjWUH9AxOg5nyDa0REzDIzR8pwb5Dh-eg,20275
43
- app/database/ora_dao.py,sha256=YTl6sWe4cbu012LBqJQ8YHxkX4fm5hzF4F2ynz7Whuw,6198
44
- app/database/pg_dao.py,sha256=Aetzn4DM7bTg_-IpCQL1ShNXjcFDWhdNlQAPkSNGEC0,6148
45
- app/database/__pycache__/__init__.cpython-312.pyc,sha256=R3Kcn3vWDNw-8yxcBh4dXE7UUfasBYIXXagVPlJ6sLY,206
46
- app/database/__pycache__/base_dao.cpython-312.pyc,sha256=leV7RLEsjhMOR6vwag9JG1ip4l7E2AzKlqokikQj8RE,26162
47
- app/database/__pycache__/config.cpython-312.pyc,sha256=ag-qLa_l-CJDWoS_rL4ZTY18_N_GkZlsj6a2--QBSxc,623
48
- app/database/__pycache__/dao_factory.cpython-312.pyc,sha256=dU4lmJ-z4AAvFZ8ZLdle_1h5W5xf_3ekmgzbyJtojCU,973
49
- app/database/__pycache__/ora_dao.cpython-312.pyc,sha256=VdM5mGOy-b2sIOOxZafQJhPfkq-Y3icu8MOmJeEHR-w,9596
50
- app/database/__pycache__/oracle_dao.cpython-312.pyc,sha256=8LFH7EO6wdt6gVGBpkgF3qqqkWpY0JpBgEFTOkRQaLk,3275
51
- app/database/__pycache__/pg_dao.cpython-312.pyc,sha256=8NocgmtbMwX8IYPqEM16rHhmaAq7fn47MNeazViNIcA,9416
52
- app/database/__pycache__/postgres_dao.cpython-312.pyc,sha256=tmVAMYBLJ5a9Is-jZgBLc21lcM02LIg73yPfVdM_S-k,29539
53
- app/logs/.DS_Store,sha256=ZGQO-xjQOCQsmmfWoWR3ZEogZ9oYhCs_x2KGpHyB8UQ,6148
54
- app/logs/__init__.py,sha256=xjkrhY9xSUg41sFGl2_tuOWANnaP4fYX8RQAn3NvAFs,514
55
- app/logs/__pycache__/__init__.cpython-312.pyc,sha256=aGm5f9YknIc8Ip1C4XXk1Of1BvnlqXD16oSHkZSmKRA,889
56
- app/logs/__pycache__/logs.cpython-312.pyc,sha256=yQEGRGLwe5bK9jD1AaDCdEsEGLO_76eM7V2WQrn2_20,885
57
- app/logs/files/logs-frontend-json.log,sha256=Tc6sdY1w-x2KMEDeiHBaSOKcg6GOxzsllhJ56kDoJpA,130434
58
- app/logs/files/logs-frontend-text.log,sha256=5lopS17CsZ4-bYburZWdf4mm-_3JWI38VLmVI_Hsciw,44857
59
- app/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
- app/models/ai.py,sha256=x9QhDHeVly0Paa-GZhkpJBZegS0sZQMmVeJAzAtzmLI,241
61
- app/models/apidb.py,sha256=OmOVGSc1r1_sK-CzehlPDeo-Pq2H1yT8EUVsiXPizo4,3556
62
- app/models/applications.py,sha256=1RwXeDDZUtR-O606bg7pyDQB-d3C6ApmaheWOUB9cBU,1679
63
- app/models/auth.py,sha256=l2gDyUUG3JYJs51VAs8AEg9fmwaQEA10Rq8iqv-vO-Q,1596
64
- app/models/base.py,sha256=BApFmQrW-jdGLvbE4pAP2IgDfDBv0esghcZzhWINoqI,2955
65
- app/models/modules.py,sha256=nsNeMUO5gTjDJl2YoZXm2Sj85gE2O5Jvh12hIdoP-38,2044
66
- app/models/pool.py,sha256=WZAzz3gbqBx7XBY_su1OoyROjE1pwSD9q4eRDtE9io4,391
67
- app/models/setup.py,sha256=BycjwHIbSAl-e_aCqjdmZH3rHFhyFiHcpnZ7BOB02js,887
68
- app/models/themes.py,sha256=XTCpc2gGF-lg3k8abo_xsneTv3eXTnfHEEYpNLmpdd8,1272
69
- app/models/__pycache__/__init__.cpython-312.pyc,sha256=THrpQ910DdudL2c8KyLUSgCfpnxMxWh8FV_mHj_qbIw,173
70
- app/models/__pycache__/ai.cpython-312.pyc,sha256=gVvFXfL65eXGhqSBIkhROTPRPGkhNOWZh1D-9URVUgQ,437
71
- app/models/__pycache__/apidb.cpython-312.pyc,sha256=JzxBPKZpyWjPWPUZHrsq8yUz23EHw2_MtrsfuwRW2A0,4868
72
- app/models/__pycache__/applications.cpython-312.pyc,sha256=IhT6gzSPGGexun0EVl1YOXNM9yRvCoRggXbX01Myjtg,2161
73
- app/models/__pycache__/auth.cpython-312.pyc,sha256=gIMFsXatmB8Y-975RhfKooCUf2g6CeBb_dHJcrjPSis,2293
74
- app/models/__pycache__/base.cpython-312.pyc,sha256=VoZV64R0hqGT2lt5-lo1iMw0LWzTgE2Lm87tvBnMZcA,3558
75
- app/models/__pycache__/checkdb.cpython-312.pyc,sha256=xGJ9pEE-GZXiGZu2d-6cNWGt0SKGGevb1LSvWJmqtVY,1741
76
- app/models/__pycache__/modules.cpython-312.pyc,sha256=Cp9q_eirwSElqIQMxhBuptwfgwXDbQfc9KeyCTywz-A,2244
77
- app/models/__pycache__/pool.cpython-312.pyc,sha256=mFowin-5N38BbcS-ULmIE-_vCoHV8ND6swQ3rZV-2YA,552
78
- app/models/__pycache__/setup.cpython-312.pyc,sha256=ZO1VHzCcSJdaTJy9RU9jPjVkHrFq-XCrEUvZELX_ZJM,1526
79
- app/models/__pycache__/themes.cpython-312.pyc,sha256=v6YJHjoKtlbn8gLr4nGnxeuizPi-kJB8cAsoFMkbUTk,1810
80
- app/postgres/.DS_Store,sha256=1PsY3kXXvWpzmt2RSYnlNMGI6I9r1N0MJWuRml4yjo8,8196
81
- app/postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
82
- app/postgres/__pycache__/__init__.cpython-312.pyc,sha256=zecmSTkuxgXcg7zVd5o03Cv9fox536LKVl-rGgWiTzs,175
83
- app/postgres/dump/__init__.py,sha256=OWyQ1sBi-sCO_wol4bhHA1boUkuqs8y3yAqndiSabHk,253
84
- app/postgres/dump/airflow.dump,sha256=FLC-RRoVsqvg8i90tWb6QXBGA2r3yfUUtZJKUVm54hI,382440
85
- app/postgres/dump/gitea.dump,sha256=Upbm-5AGnabgaxocz0DBYjAZePLyL2esVlcUfHEmCt4,337763
86
- app/postgres/dump/keycloak.dump,sha256=J2ZZWzuC37j_RXWLY1L1wkRbaaPSZGSQMsS2toX7Puc,212083
87
- app/postgres/dump/liberty.dump,sha256=ga-wsZ8D1H9a_4CpdL01oWJonHQNPIoiNm4sodgxKx0,212416
88
- app/postgres/dump/libnetl.dump,sha256=EjoGKH7fMWQkHYNZ7bPoQg_smK0Z6ydXeB_WXzN_XnE,109600
89
- app/postgres/dump/libnjde.dump,sha256=A3UGn5P8RRfeamk1b8QvPKaTfdYqnhOXoW4U2z9UjNw,118116
90
- app/postgres/dump/libnsx1.dump,sha256=TB_7BywCUgjvk4anoWggXZidpaknDfYFR6gQXqZThLw,150937
91
- app/postgres/dump/nomajde.dump,sha256=-yZfz-KJpRGZSV7n2F3Sydyyri5YgPk-iEvjhcvKZBc,10278
92
- app/postgres/dump/nomasx1.dump,sha256=RXrD93u1xhjpcYoPf5RF85UnZyrngYFbRedSeQ9nxMQ,150881
93
- app/postgres/dump/__pycache__/__init__.cpython-312.pyc,sha256=AWSJySPGee6eunpXRDMqHsDh7Yf22gFrAt4ci-Qc41U,598
94
- app/postgres/dump/__pycache__/dump.cpython-312.pyc,sha256=L5r2tZQtyllS6rcOLOHXX23LO1sQUqtF2bQSnJpA-MA,718
95
- app/public/__init__.py,sha256=X9OPx-1zYGkaYoqtEl8m9rj-8q74RRQkINjXdg-ZNhQ,775
96
- app/public/__pycache__/__init__.cpython-312.pyc,sha256=Bl8IRS24bNQzZYE_AKR_QD8DK84m6WMyeue05WJ1CNs,1653
97
- app/public/frontend/index.html,sha256=JlNQE1LRi3D0_Putv6XNLVReBiSJR-9LoPEiYKeVGdo,483
98
- app/public/frontend/assets/background_ly-VdfFMP8a.jpg,sha256=BKIF4GdQXYGMkRADrEFgMmIdxGH6c-5HGGa84oEMFTc,4409225
99
- app/public/frontend/assets/index-BEQMJlHa.js,sha256=OUHzqg7imMbhhbqWc1X5pm-KLPmYkHayKi4FHfbiE28,3550884
100
- app/public/frontend/assets/index-BEQMJlHa.js.map,sha256=gdjC2dyOI1ECMu8WEmaJOXEac8U9glyMe-iPXGxciec,9864950
101
- app/public/frontend/assets/index.es-mB7ZF8OM-DnpXL3xF.js,sha256=D_jDrH9xcfsEmNdWsoO3UpGsBQDVYJ5yA3sPeDhr7FI,158417
102
- app/public/frontend/assets/index.es-mB7ZF8OM-DnpXL3xF.js.map,sha256=QWDEdF2VzA-HJ7ATzvS1HKzxW2Egk91MNI3KcrSN46c,462185
103
- app/public/frontend/assets/logo_ly-HGj2PB94.svg,sha256=2xnOaSTVYAYU2-ARq5iO80PsKpQveFONztGCoFHl5TU,1466
104
- app/public/frontend/assets/purify.es-CKk_t3XZ-CB-r1fqE.js,sha256=xKzxLWuvelI9STInN4pdiiMcjDgxLRsEA0izfdVv72c,22362
105
- app/public/frontend/assets/purify.es-CKk_t3XZ-CB-r1fqE.js.map,sha256=7J6r6lBzpaSqMDUBFu-g2ef-rXD5A5TpTZdRjGGWu88,54908
106
- app/public/offline/offline.html,sha256=9ylWTfQfVHeLEBLFbRpU0xd5n-gh5DwVGjDGnOPP5z0,1491
107
- app/public/offline/assets/logo_ly.png,sha256=CpGKneK3ZhhL2VM4FXrebm0_hg6qMrUyrcLnT7jWrnY,32394
108
- app/public/setup/index.html,sha256=v-oDYY7NdbV8Y_h7HPFKkPBkcNIaBpt7u135BtpSZeU,575
109
- app/public/setup/setup/assets/background_ly-VdfFMP8a.jpg,sha256=BKIF4GdQXYGMkRADrEFgMmIdxGH6c-5HGGa84oEMFTc,4409225
110
- app/public/setup/setup/assets/index-BBGAGXd2.css,sha256=hw2AYJTqhCkAQjp94mGoU184BKT8biiKC72Mgu_cgAs,382
111
- app/public/setup/setup/assets/index-BnpY-7P6.js,sha256=qwUSyqToiQpJw0zkLdZ2dnzXvjy5mzFKTlK2co85Px8,235301
112
- app/public/setup/setup/assets/index-BnpY-7P6.js.map,sha256=SxHf_DbBfePZXzpvij_EtZmQcF1NnORVo3hGrW2h1_I,3133938
113
- app/public/setup/setup/assets/logo_ly-HGj2PB94.svg,sha256=2xnOaSTVYAYU2-ARq5iO80PsKpQveFONztGCoFHl5TU,1466
114
- app/routes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
- app/routes/api_routes.py,sha256=8c4aLp7pqewr3VsZf2tpENnsUk7fGj4ah5uukl6qFis,24125
116
- app/routes/react_routes.py,sha256=mO52Juyz3SDXHxCKKrRHSN33e-CeJjlEfxqBn-odGo8,1418
117
- app/routes/setup_routes.py,sha256=OzMzpEqRXM-srXGmGdsiMelQ-jgqt3RUHj1rfqLHdVc,8391
118
- app/routes/socket_routes.py,sha256=DjHh03aEFPKWaMPkzjAmrl3jxQ9TyWSdhyTcDzIjdXk,560
119
- app/routes/__pycache__/__init__.cpython-312.pyc,sha256=Y2jZB16q6GIgs_2KUkT_KQELK64DcIovLJna2lGNqmc,204
120
- app/routes/__pycache__/api_routes.cpython-312.pyc,sha256=hkUKzPrtdzIxoxlO8hGxQ0FkTQMeRKP0nTaY7LvTRL0,23576
121
- app/routes/__pycache__/react_routes.cpython-312.pyc,sha256=5iiOkojr1yV68ORi_dtOhJIAlrMkICjN5AxOHCWTGpQ,2302
122
- app/routes/__pycache__/setup_routes.cpython-312.pyc,sha256=zF4YBdXOKZFPIwEnN703SQkroFbJSn69HYLDc4GO7kM,10105
123
- app/routes/__pycache__/socket_routes.cpython-312.pyc,sha256=T46m7FBCH1DxdBIVjyQbd_geYdQRo9O_ZpXNvlghHT8,1419
124
- app/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
125
- app/services/api_rest.py,sha256=w-dIFj-cVGYLNxWTNwjkTibdBX0isK8jeihAwPtv06k,12295
126
- app/services/db_pool.py,sha256=gLWCEQ7Pq_6gKoChHJkQH7YmnZoNEMrN6P1MJUiAUec,2043
127
- app/services/db_query.py,sha256=IoLrWI4JmZjGP4GgswmXih0IRpvRs7SNNfqREjbrWtE,27475
128
- app/services/__pycache__/__init__.cpython-312.pyc,sha256=mcbX3fcnuuxC4RYKQ4PrUp2hLOg-29jJQ8XvXvLoxhw,206
129
- app/services/__pycache__/alembic.cpython-312.pyc,sha256=rIS4OWJ4gPJjrUkyalK7wcQ3mWGXTnKZ_OprVObmJ9k,3036
130
- app/services/__pycache__/api_rest.cpython-312.pyc,sha256=YnFtnoPzwcR6IFa9lqJtggZjUXrDQxSGwKnpcHqDIFk,16206
131
- app/services/__pycache__/db_pool.cpython-312.pyc,sha256=C9NB4znvWLa_kTgbwDK2xBVQ7VR4DLPbVHtHrNTISmA,4076
132
- app/services/__pycache__/db_query.cpython-312.pyc,sha256=1A1An2UJ7DyUbPEatKQEFPKDHW6XiM5TLuBELjXGKDI,32790
133
- app/setup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
134
- app/setup/__pycache__/__init__.cpython-312.pyc,sha256=wLhPd-VFjbmMSwl8dlNxKMq0m_HdNzI0TbmAK6WToKw,170
135
- app/setup/data/__init__.py,sha256=O_sR1CffdiknRqZEek6A4RehrzaRU4PsvrRaxISTqgo,312
136
- app/setup/data/liberty.json,sha256=IOSM9drYx9rN6WSQi_8J_rRJeWIM4CrBltr57ZkiGCU,1813661
137
- app/setup/data/libnetl.json,sha256=-RwcmMimteEyaq5swc8TjppJWZ3hbg9tFr0QZSWIX8s,56812
138
- app/setup/data/libnjde.json,sha256=kRTkB2U-PjBOxIntsoS2ShBqUE-z0RLf5S66VBtI7is,551310
139
- app/setup/data/libnsx1.json,sha256=I5Oy9XG8iCUmHUod3RQr44VOAuAnEO9gmwjbc_z7zOg,1222122
140
- app/setup/data/nomasx1.json,sha256=BKlfaBj-aijbQq13Lcv2NGwGuy5ypF3QoxwwBaydooM,352058
141
- app/setup/data/__pycache__/__init__.cpython-312.pyc,sha256=VApnI1ASZQ-ENeeLDJuggPgYpP-8TZtpe19hgZlsn18,617
142
- app/setup/data/__pycache__/data.cpython-312.pyc,sha256=goFS2gV2gIKcilCUHz1qJ4RdqKBniMb4Jmlttxam1OM,552
143
- app/setup/models/__init__.py,sha256=cJWsJtbU3-aFnJZ45hcEMDEThfwOyrsWI62sX2vOUFU,251
144
- app/setup/models/liberty.py,sha256=GN7s65YoOmseJu8CrUdVfUYJ08psW4GdEZV-xP3yDfU,49880
145
- app/setup/models/nomasx1.py,sha256=8S75KADMeu0QAW4z9TGQqNPzbbo8IDe5paINYjg7urY,62600
146
- app/setup/models/__pycache__/__init__.cpython-312.pyc,sha256=JX4Q0fI75Iq2FFiqRx0SpvX8DpZsZxq57jmCL5A0zwo,597
147
- app/setup/models/__pycache__/airflow.cpython-312.pyc,sha256=B-XOvZttt4v7B0znRu1WDL3QFwXEy1VDAuMnrDDmKBI,31683
148
- app/setup/models/__pycache__/liberty.cpython-312.pyc,sha256=3lyl_Y4l6kyrNCXlKj2pDfUZjboYRbDQ3fxQXpomdzA,52016
149
- app/setup/models/__pycache__/libnetl.cpython-312.pyc,sha256=DDE6iC4q9LKQuTlOmkGCya9vk8PjKu30f1N7WEwJmok,51683
150
- app/setup/models/__pycache__/libnjde.cpython-312.pyc,sha256=kzrBbfwsm0FhDFC1KfJUri-V91YGdMW8hrk7MrNsBn4,51683
151
- app/setup/models/__pycache__/libnsx1.cpython-312.pyc,sha256=m3Dh0HfrqIRUQnyUKYe9K-sKJNDnDB65DZN3gnxjuZs,51753
152
- app/setup/models/__pycache__/models.cpython-312.pyc,sha256=rZWsiXGgX267UqPyMA77f5hIfzeZ6SXaOW2StKYEN9w,561
153
- app/setup/models/__pycache__/nomasx1.cpython-312.pyc,sha256=4FwPwbwppSeahC7_rGPRNYDIC2_i0HlHJ2PBBSdaZD8,63567
154
- app/setup/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
155
- app/setup/services/alembic.py,sha256=EoV5Cf_TjutwFKLFquFTAzG-Pfhbd8imlcTL4YkvSsA,3144
156
- app/setup/services/dump.py,sha256=7pJwwB351kosN-4WHkSagKYL5fzGwCYc6YROovRzQI4,7552
157
- app/setup/services/install.py,sha256=txzO6KRjzc1J7tX2Z8IR6I3DscFtr9TRcxKJDX5uFYM,8779
158
- app/setup/services/models.py,sha256=M3FHSDXvFYBdqYNF_3bzYY3UfKXjgy_jQFqkqn-SP-k,10039
159
- app/setup/services/setup.py,sha256=dW0G9tRYOdvY7WIy0bxb8qfRX0nXk2BtIBcH9vNxv5c,23852
160
- app/setup/services/__pycache__/__init__.cpython-312.pyc,sha256=yjoKcph4MN-OJKFAhvDN9iY2UkBwAeM-aUmJj55Mf2g,180
161
- app/setup/services/__pycache__/alembic.cpython-312.pyc,sha256=PIkNJJIC8K_3wPGHBQzL9l1mR5cJ25h4XWNb4lUXnPQ,4638
162
- app/setup/services/__pycache__/dump.cpython-312.pyc,sha256=TfXpk2EWcrBeOY-IafRWiTopYdmM2FAMlRWPj9tZIOw,11289
163
- app/setup/services/__pycache__/init.cpython-312.pyc,sha256=EiUBfSie7VtB2HOL8Mq1xwCXP29NpynX-eR14fE16xQ,4561
164
- app/setup/services/__pycache__/install.cpython-312.pyc,sha256=3XBrnQIgd7Fv5L1zBTwo1zoXZC7MIrZhOZEzT6gUs-w,12026
165
- app/setup/services/__pycache__/models.cpython-312.pyc,sha256=ae3uMFVs5G1uOTwqI5dhh-YCwviUlGkSILBQ248gbVc,11084
166
- app/setup/services/__pycache__/setup.cpython-312.pyc,sha256=sLUFxniCQKH6nIBqEL-uS-ig56U952Urq4l-8Z0hDtI,26155
167
- app/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
168
- app/utils/common.py,sha256=UrbbEeqwJ9WXxgTixlOI6wQl06OJBNtEVabiTN77EVc,355
169
- app/utils/encrypt.py,sha256=4rPgyIlgZv3LiNl9uWAQafpqvcRV9XB5PW_c0hKXYHo,2819
170
- app/utils/jwt.py,sha256=jVELaLho1h2wieEqdpHamBnb2XP4HByIGq57il60GMw,4584
171
- app/utils/logs.py,sha256=OEqgQ_TS9rhWNlsesK0S-2pZCsAKip7sU5quLOMfVC8,13842
172
- app/utils/test.py,sha256=SUnmWK-4MI9eeJ2DDdd83aMDd82mlFsjcY9aPXNe1nU,46520
173
- app/utils/__pycache__/__init__.cpython-312.pyc,sha256=O6K3VxuFjKQTI2uU4dyBS-i4Zza0zxnpXKPdjDO3mVM,203
174
- app/utils/__pycache__/common.cpython-312.pyc,sha256=Li_V81V_d6Tqia8CygJL0m9tcvnegkQd8xAX8f8_ndU,773
175
- app/utils/__pycache__/encrypt.cpython-312.pyc,sha256=0OiDOgc9sUwoCRK5xyjCYRS_xlL6ENFPt_MU46UXa8Q,3763
176
- app/utils/__pycache__/jwt.cpython-312.pyc,sha256=4ZVkPWBf3LtUQFRjpxCzGB7qG92fhhnNtUDJwlZMuTM,7315
177
- app/utils/__pycache__/logs.cpython-312.pyc,sha256=nfYxKlZZkgAeMXYUthr4OLlma8hv1Kmi8IU47FDXmO8,16645
178
- app/utils/__pycache__/models.cpython-312.pyc,sha256=pUY2aL4FJ9GZDotNlnEZGP7oGigF7Kg1Yd89M8Zxqrk,1478
179
- tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
180
- tests/conftest.py,sha256=6lU-EgOKn1Ph5nndUNyrhtLcS_PdZuUhCa7CkxD-Yjk,328
181
- tests/main.py,sha256=En0YmYil9U3gz-7J5PgI5Tu01we0TwnACnKshMXU7dw,452
182
- tests/__pycache__/__init__.cpython-312.pyc,sha256=7ywsYdikbVD-hS-HCwqY74H2tE588aCu4fSmDJRhg80,172
183
- tests/__pycache__/conftest.cpython-312-pytest-8.3.4.pyc,sha256=3RvlZwgzMEHRHMlOHbcmRF9yttg6HEwPfXA4yhXexes,1120
184
- tests/__pycache__/main.cpython-312.pyc,sha256=bFZag7ReWbYghFdARoaOheyrz9_lEbvBrehqa9xhX50,830
185
- tests/__pycache__/test.cpython-312.pyc,sha256=XimhzCI2wfg0_NFnJ6p6btCYi-qZ_9oApHonq-AFNXM,833
186
- tests/scenarios/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
187
- tests/scenarios/test_auth_token.py,sha256=-0UogCmg2Kqi05sOZATVpiJXLfzzRIzSrufWBNDztCM,1665
188
- tests/scenarios/test_auth_user.py,sha256=LVaEO75rDaVsr8k9mZ_ep-BR59qlejjFcc5Vurxkhkc,2092
189
- tests/scenarios/test_db_check.py,sha256=xlfsYZP8EKeVrXt6G4Rxj-v9_DOP5SJtOHemeRRHg90,2186
190
- tests/scenarios/test_db_close.py,sha256=aCNd6B5qJGhpEtSxxpNowoVQN_QOk4SlCocNHAXotm0,2616
191
- tests/scenarios/test_db_open.py,sha256=WlPywqE4O4tiwXXDb3dxj1rias8K0GCRULYphW40BQU,2004
192
- tests/scenarios/test_fmw_applications.py,sha256=hJoMAJtMtaQrULxnryOC06iQJge26NwgWaHunQ1gieg,899
193
- tests/scenarios/test_fmw_encrypt.py,sha256=s3HhZS0IpkmbEkJkblSBoriXJhw9oKlyoWbu-X3UYlw,669
194
- tests/scenarios/test_fmw_modules.py,sha256=AC7LCm_CUsRPQ34bQyedNWbh-5yQ5XHWiJXbQM4Zu4U,759
195
- tests/scenarios/test_fmw_themes.py,sha256=dRMcEsrveZvA9ODirZ-XQrHB-6Pn5Is72qd4VIAI2PY,1036
196
- tests/scenarios/__pycache__/__init__.cpython-312.pyc,sha256=wjH9FpD0DUgfF8ku3GasaGgzWVyBw3fdm0nEer5SOJE,182
197
- tests/scenarios/__pycache__/test_auth_token.cpython-312-pytest-8.3.4.pyc,sha256=yuQYjbEcPUDb0DUBAL55EYHvJL--Wyf7hYz-K4hBrA8,5903
198
- tests/scenarios/__pycache__/test_auth_user.cpython-312-pytest-8.3.4.pyc,sha256=fV0WPTaUGwbC4xhol1IKRFVwiLRMbd4wtRmqziHdI_k,7289
199
- tests/scenarios/__pycache__/test_db_check.cpython-312-pytest-8.3.4.pyc,sha256=eQDQwTaa8ArvT_RQZxi9HA5SjkHD6hobinawaUdD-0c,7757
200
- tests/scenarios/__pycache__/test_db_close.cpython-312-pytest-8.3.4.pyc,sha256=V1AT3d6m99B3hrGWz2Misvcg48UT005CVJ_wuB-1C0s,8405
201
- tests/scenarios/__pycache__/test_db_open.cpython-312-pytest-8.3.4.pyc,sha256=LxEIdGNGtTiAcTar_tM6xjcIs9kwnF5jLmwotDXxDp4,6264
202
- tests/scenarios/__pycache__/test_fmw_applications.cpython-312-pytest-8.3.4.pyc,sha256=Z-pCrw83NLKv4pNVkrc_Qs1TVLpBbAAgJhIiMZEqY_I,4755
203
- tests/scenarios/__pycache__/test_fmw_encrypt.cpython-312-pytest-8.3.4.pyc,sha256=VllhpnVjcJtvmJhaagWcDQpzD1GxZ72eFT4yoOy3Bck,2880
204
- tests/scenarios/__pycache__/test_fmw_modules.cpython-312-pytest-8.3.4.pyc,sha256=ccuuDE4SD_TRq98nKRwoIBPztSAnVw5RaSoXjeaWQv4,3837
205
- tests/scenarios/__pycache__/test_fmw_themes.cpython-312-pytest-8.3.4.pyc,sha256=rfQXJFo9xKCdkxbytBnmLpAKgvk9vW475Ov-3ENBm2o,4900
206
- liberty_framework-6.0.47.dist-info/LICENSE,sha256=ILBn-G3jdarm2w8oOrLmXeJNU3czuJvVhDLBASWdhM8,34522
207
- liberty_framework-6.0.47.dist-info/METADATA,sha256=JMXPJesqdHskqPIHggCuI1pg-d8qZdnLKBNYZipFVzo,8023
208
- liberty_framework-6.0.47.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
209
- liberty_framework-6.0.47.dist-info/entry_points.txt,sha256=iVkIVLRG-sd7KeOUBSf7Ew_1ckUK5hvZZocaTh3Nq6Q,48
210
- liberty_framework-6.0.47.dist-info/top_level.txt,sha256=MJXn5pCZl0XSEeWNKzshxzMMANr3AymeoMYBO1JNPyU,10
211
- liberty_framework-6.0.47.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- app
2
- tests
tests/__init__.py DELETED
File without changes
Binary file
Binary file
Binary file
tests/conftest.py DELETED
@@ -1,15 +0,0 @@
1
- import os
2
- import sys
3
- import pytest
4
- from fastapi.testclient import TestClient
5
-
6
- sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
7
-
8
-
9
- from app.main import app
10
-
11
- @pytest.fixture(scope="module")
12
- def client():
13
- """Create a test client for FastAPI app"""
14
- with TestClient(app) as c:
15
- yield c
tests/main.py DELETED
@@ -1,13 +0,0 @@
1
- import os
2
-
3
- VALID_CREDENTIALS = {"user": "admin", "password": "ENC:i9w7bfJU0T7D7rBzgQkgBvjnFdV/gfhrx1rxG4DInCRoTPfSTPJQ8JeHI+pd1SZXud2zSTeDUAY2O2BgROE4Qp4OgnZAlTQBES5V2cP1tLQ3W8me37hy/Lbg1hJuDRckpOYGdE8z"}
4
-
5
- def run_tests():
6
- """
7
- Run all tests and generate Allure reports.
8
- """
9
- os.system("pytest --alluredir=tests/results")
10
- os.system("allure serve --host localhost --port 8001 tests/results")
11
-
12
- if __name__ == "__main__":
13
- run_tests()
File without changes
@@ -1,38 +0,0 @@
1
- import pytest
2
- import allure
3
-
4
- from tests.main import VALID_CREDENTIALS
5
-
6
- AUTH_QUERY_PARAMS = {"pool": "default", "mode": "framework", "type": "database"}
7
- INVALID_CREDENTIALS = {"user": "testuser", "password": ""}
8
-
9
- @allure.feature("Authentication")
10
- @allure.story("Generate JWT Token")
11
-
12
- def test_get_valid_token(client):
13
- """
14
- Test `/api/auth/token` with valid credentials`.
15
- """
16
- with allure.step("Get a valid token from /auth/token"):
17
- response = client.post("/api/auth/token", json=VALID_CREDENTIALS, params=AUTH_QUERY_PARAMS)
18
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
19
-
20
- with allure.step("Validate response"):
21
- assert response.status_code == 200, "Token request failed"
22
- response_json = response.json()
23
- assert response_json["access_token"] != "", "Token is empty when it should contain a value"
24
- assert response_json["status"] == "success", "Status returned is wrong"
25
-
26
- def test_get_invalid_token(client):
27
- """
28
- Test `/api/auth/token` with invalid credentials`.
29
- """
30
- with allure.step("Get a valid token from /auth/token"):
31
- response = client.post("/api/auth/token", json=INVALID_CREDENTIALS, params=AUTH_QUERY_PARAMS)
32
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
33
-
34
- with allure.step("Validate response"):
35
- assert response.status_code == 200, "Token request failed"
36
- response_json = response.json()
37
- assert response_json["access_token"] == "", "Token contain a value when it should not"
38
- assert response_json["status"] == "error", "Status returned is wrong"
@@ -1,47 +0,0 @@
1
- import pytest
2
- import allure
3
-
4
- from tests.main import VALID_CREDENTIALS
5
-
6
- # Define query parameters required for /auth/user
7
- AUTH_QUERY_PARAMS = {"pool": "default", "mode": "framework", "type": "database"}
8
- USER_QUERY_PARAMS = {"pool": "default", "mode": "framework", "user": "admin"}
9
-
10
- @allure.feature("Authentication")
11
- @allure.story("Retrieve User Info with Valid Token")
12
- def test_user_valid_token(client):
13
- """
14
- Test `/api/auth/user` by first obtaining a valid JWT token from `/auth/token`.
15
- """
16
- with allure.step("Get a valid token from /auth/token"):
17
- response = client.post("/api/auth/token", json=VALID_CREDENTIALS, params=AUTH_QUERY_PARAMS)
18
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
19
- assert response.status_code == 200, "Token request failed"
20
- token = response.json()["access_token"]
21
-
22
-
23
- with allure.step("Use token to retrieve user info from /api/auth/user"):
24
- response = client.get("/api/auth/user", params=USER_QUERY_PARAMS, headers={"Authorization": f"Bearer {token}"})
25
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
26
-
27
- with allure.step("Validate response"):
28
- assert response.status_code == 200
29
- response_json = response.json()
30
-
31
- assert "items" in response_json, "Response does not contain 'items'"
32
- assert len(response_json["items"]) > 0, "Response 'items' list is empty"
33
- assert response_json["items"][0]["USR_ID"] == "admin", "USR_ID is not 'admin'"
34
-
35
-
36
- @allure.feature("Authentication")
37
- @allure.story("Fail to Retrieve User Info if not authenticated")
38
- def test_user_invalid_token(client):
39
- """
40
- Test `/api/auth/user` with an invalid token.
41
- """
42
- with allure.step("Use an invalid token to retrieve user info"):
43
- response = client.get("/api/auth/user", params=USER_QUERY_PARAMS)
44
-
45
- with allure.step("Validate response"):
46
- assert response.status_code == 401 # Unauthorized
47
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
@@ -1,50 +0,0 @@
1
- import pytest
2
- import allure
3
-
4
- from tests.main import VALID_CREDENTIALS
5
-
6
- # Define query parameters required for /auth/user
7
- AUTH_QUERY_PARAMS = {"pool": "default", "mode": "framework", "type": "database"}
8
- CHECK_QUERY_PARAMS = {"framework_pool": "default", "target_pool": "default"}
9
-
10
- @allure.feature("Authentication")
11
- @allure.story("Check database connection with Valid Token")
12
- def test_check_valid_token(client):
13
- """
14
- Test `api/db/check` by first obtaining a valid JWT token from `/auth/token`.
15
- """
16
- with allure.step("Get a valid token from /auth/token"):
17
- response = client.post("/api/auth/token", json=VALID_CREDENTIALS, params=AUTH_QUERY_PARAMS)
18
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
19
- assert response.status_code == 200, "Token request failed"
20
- token = response.json()["access_token"]
21
-
22
-
23
- with allure.step("Use token to check database connection from api/db/check"):
24
- response = client.get("api/db/check", params=CHECK_QUERY_PARAMS, headers={"Authorization": f"Bearer {token}"})
25
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
26
-
27
- with allure.step("Validate response"):
28
- assert response.status_code == 200
29
- response_json = response.json()
30
-
31
- assert "rows" in response_json, "Response does not contain 'rows'"
32
- assert len(response_json["rows"]) > 0, "Response 'rows' list is empty"
33
- assert "CURRENT_DATE" in response_json["rows"][0], "Response does not contain 'CURRENT_DATE'"
34
- assert response_json["status"] == "success", "Status returned is wrong"
35
-
36
-
37
-
38
- @allure.feature("Authentication")
39
- @allure.story("Fail to check database if not authenticated")
40
- def test_check_invalid_token(client):
41
- """
42
- Test `/api/db/check` with an invalid token.
43
- """
44
- with allure.step("Use an invalid token to check database"):
45
- response = client.get("/api/db/check", params=CHECK_QUERY_PARAMS)
46
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
47
-
48
- with allure.step("Validate response"):
49
- assert response.status_code == 401 # Unauthorized
50
-
@@ -1,55 +0,0 @@
1
- import pytest
2
- import allure
3
-
4
- from tests.main import VALID_CREDENTIALS
5
-
6
- # Define query parameters required for /auth/user
7
- AUTH_QUERY_PARAMS = {"pool": "default", "mode": "framework", "type": "database"}
8
- OPEN_QUERY_PARAMS = {"framework_pool": "default", "target_pool": "libnsx1"}
9
- CLOSE_QUERY_PARAMS = {"pool": "libnsx1"}
10
-
11
- @allure.feature("Authentication")
12
- @allure.story("Check closing database with Valid Token")
13
- def test_close_valid_token(client):
14
- """
15
- Test `api/db/close` by first obtaining a valid JWT token from `/auth/token`.
16
- """
17
- with allure.step("Get a valid token from /auth/token"):
18
- response = client.post("/api/auth/token", json=VALID_CREDENTIALS, params=AUTH_QUERY_PARAMS)
19
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
20
- assert response.status_code == 200, "Token request failed"
21
- token = response.json()["access_token"]
22
-
23
-
24
- with allure.step("Use token to open database connection from api/db/open"):
25
- response = client.get("api/db/open", params=OPEN_QUERY_PARAMS, headers={"Authorization": f"Bearer {token}"})
26
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
27
- assert response.status_code == 200, "Database open request failed"
28
- response_json = response.json()
29
- assert response_json["status"] == "success", "Status returned is wrong"
30
-
31
- with allure.step("Use token to close database connection from api/db/close"):
32
- response = client.get("api/db/close", params=CLOSE_QUERY_PARAMS, headers={"Authorization": f"Bearer {token}"})
33
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
34
- assert response.status_code == 200, "Database close request failed"
35
-
36
- with allure.step("Validate response"):
37
- assert response.status_code == 200
38
- response_json = response.json()
39
-
40
- assert response_json["status"] == "success", "Status returned is wrong"
41
- assert response_json["message"] == "disconnected", "Message returned is wrong"
42
-
43
-
44
- @allure.feature("Authentication")
45
- @allure.story("Fail to close database if not authenticated")
46
- def test_close_invalid_token(client):
47
- """
48
- Test `/api/db/close` with an invalid token.
49
- """
50
- with allure.step("Use an invalid token to open database"):
51
- response = client.get("/api/db/open", params=CLOSE_QUERY_PARAMS)
52
- allure.attach(response.text, name="Results", attachment_type=allure.attachment_type.JSON)
53
-
54
- with allure.step("Validate response"):
55
- assert response.status_code == 401 # Unauthorized