howler-client 2.4.0.dev37__py3-none-any.whl → 2.4.0.dev43__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: howler-client
3
- Version: 2.4.0.dev37
3
+ Version: 2.4.0.dev43
4
4
  Summary: The Howler client library facilitates issuing requests to Howler
5
5
  License: MIT
6
6
  Keywords: howler,alerting,gc,canada,cse-cst,cse,cst,cyber,cccs
@@ -37,25 +37,36 @@ The Howler client library facilitates issuing requests to Howler.
37
37
 
38
38
  ## Running the Tests
39
39
 
40
- 1. Prepare the howler-api:
41
- 1. Start dependencies
42
- 1. `howler-api > python howler/app.py`
43
- 1. `howler-api > python howler/odm/random_data.py`
44
- 2. Run python integration tests:
45
- 1. `python -m venv env`
46
- 1. `. env/bin/activate`
47
- 1. `pip install -r requirements.txt`
48
- 1. `pip install -r test/requirements.txt`
49
- 1. `pip install -e .`
50
- 1. `pytest -s -v test`
51
-
52
- ## \_sqlite3 error
53
-
54
- You'll likely have to reinstall python3.9 while libsqlite3-dev is installed
55
-
56
- 1. libsqlite3-dev
57
- `sudo apt install libsqlite3-dev`
58
- 2. Python3.9 with loadable-sqlite-extensions enabled
59
- - `./configure --enable-loadable-sqlite-extensions --enable-optimizations`
60
- - `make altinstall`
40
+ ### Prepare the API
41
+
42
+ ```bash
43
+ sudo mkdir -p /etc/howler/conf
44
+ sudo mkdir -p /var/cache/howler
45
+ sudo mkdir -p /var/lib/howler
46
+ sudo mkdir -p /var/log/howler
47
+
48
+ sudo chown -R $USER /etc/howler
49
+ sudo chown $USER /var/cache/howler
50
+ sudo chown $USER /var/lib/howler
51
+ sudo chown $USER /var/log/howler
52
+
53
+ cd api/dev
54
+ docker compose up -d --build
55
+
56
+ cd ..
57
+ poetry install --with dev,test,types
58
+ cp test/unit/config.yml /etc/howler/conf/config.yml
59
+ cp build_scripts/classification.yml /etc/howler/conf/classification.yml
60
+ poetry run server
61
+
62
+ poetry run python howler/odm/random_data.py
63
+ ```
64
+
65
+ ### Run the Tests
66
+
67
+ ```bash
68
+ cd client
69
+
70
+ poetry run test
71
+ ```
61
72
 
@@ -21,8 +21,8 @@ howler_client/module/search/stream.py,sha256=Tgr_tfsrsHUPo2uibiADL-IKupVw7WE5s3x
21
21
  howler_client/module/user.py,sha256=Dcosi_zrZzI0edOpH1ZzKoTa_Q4S0NZM2aWmMHmbDMc,3125
22
22
  howler_client/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  howler_client/utils/json_encoders.py,sha256=wMbNZx4X-K0pKKusrSCem0bpe37e7J7JvTaAQfA5avI,1066
24
- howler_client-2.4.0.dev37.dist-info/LICENSE,sha256=1Sbl0uFuetnPtKrTbzHYw9cu2_83HlqVM3mpC_5SdT4,1384
25
- howler_client-2.4.0.dev37.dist-info/METADATA,sha256=XK6Ze_Z7bGTV4EkdyPgAcMpKkrL5ACtP763_XLhRId8,2177
26
- howler_client-2.4.0.dev37.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
27
- howler_client-2.4.0.dev37.dist-info/entry_points.txt,sha256=O-HDLAR3572yUDhj7s33f5DgGLedxfaGiUEi0BWaKXs,146
28
- howler_client-2.4.0.dev37.dist-info/RECORD,,
24
+ howler_client-2.4.0.dev43.dist-info/LICENSE,sha256=1Sbl0uFuetnPtKrTbzHYw9cu2_83HlqVM3mpC_5SdT4,1384
25
+ howler_client-2.4.0.dev43.dist-info/METADATA,sha256=gWm_n4jdBCzNmusMGRnZySEpnNyMHbon08KkjUl8npI,2120
26
+ howler_client-2.4.0.dev43.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
27
+ howler_client-2.4.0.dev43.dist-info/entry_points.txt,sha256=O-HDLAR3572yUDhj7s33f5DgGLedxfaGiUEi0BWaKXs,146
28
+ howler_client-2.4.0.dev43.dist-info/RECORD,,