-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add_links_to_xrays
- Loading branch information
Showing
116 changed files
with
16,586 additions
and
8,277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ Read the [full article](https://intuitem.com/blog/we-are-going-open-source/) abo | |
- CMMC v2 | ||
- PSPF | ||
|
||
Checkout the [library](/library/libraries/) for the Domain Specific Language used and how you can define your own. | ||
Checkout the [library](/library/libraries/) and [tools](/tools/) for the Domain Specific Language used and how you can define your own. | ||
|
||
### Coming soon | ||
|
||
|
@@ -75,6 +75,8 @@ You can then reach CISO Assistant using your web brower at [https://localhost:84 | |
|
||
For the following executions, use "docker-compose up" directly. | ||
|
||
If you want to restart a fresh install, simply delete the db directory, where the database is stored. | ||
|
||
## Setting up CISO Assistant for development | ||
|
||
### Requirements | ||
|
@@ -132,7 +134,7 @@ export EMAIL_HOST_USER_RESCUE=<XXX> | |
export EMAIL_HOST_PASSWORD_RESCUE=<XXX> | ||
export EMAIL_USE_TLS_RESCUE=True | ||
|
||
# You can define the email of the first superuser, useful for automation | ||
# You can define the email of the first superuser, useful for automation. A mail is sent to the superuser for password initlization | ||
export CISO_SUPERUSER_EMAIL=<XXX> | ||
|
||
# By default, Django secret key is generated randomly at each start of CISO Assistant. This is convenient for quick test, | ||
|
@@ -267,6 +269,25 @@ python manage.py migrate | |
|
||
These migration files should be tracked by version control. | ||
|
||
## Test harness | ||
|
||
To run API tests on the backend, simply type "pytest" in a shell in the backend folder. | ||
|
||
To run functional tests on the frontend, do the following actions: | ||
- in the backend folder, launch the following commands: | ||
```shell | ||
[email protected] DJANGO_SUPERUSER_PASSWORD=1234 python manage.py createsuperuser --noinput | ||
CISO_ASSISTANT_URL=http://localhost:4173 python manage.py runserver | ||
``` | ||
- in parallel, in the frontend folder, launch the following command: | ||
```shell | ||
PUBLIC_BACKEND_API_URL=http://localhost:8000/api npx playwright test | ||
``` | ||
|
||
For tests requiring mail sending, it is necessary to launch mailhog in a separate terminal. | ||
|
||
The goal of the test harness is to prevent any regression, i.e. all the tests shall be successful. This is achieved for API tests, and will be soon achieved for functional tests. | ||
|
||
## Built With | ||
|
||
- [Django](https://www.djangoproject.com/) - Python Web Development Framework | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.