-
-
Notifications
You must be signed in to change notification settings - Fork 657
Implement fuzztesting. #1139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement fuzztesting. #1139
Changes from 129 commits
bc40efb
6c18da7
4a17780
75aa9fe
625cc0e
b078e92
f1f6718
c0ed1f9
998bd29
6b240b4
f060510
ab68f1a
d1d48ea
54f7fbe
12b5139
21283f7
c47b9fd
de81b25
5f79854
8330865
1ed4452
dd36f25
0a9068d
c5363db
ccc28c8
ef20adb
845e1c1
8755056
6637d8c
decec65
672f097
ed62759
49fa5f8
e1533ab
dcba769
5e85b0b
70312c5
751f105
4cb975a
47daeda
5e08107
de6bf2e
d908fcf
d3f2987
d3fd074
7d5c20d
03ecb0c
cf07402
e0459d4
54ce26a
deaf1d0
2236c73
8ada3b9
013537b
8ec969f
3839ef1
f1e2c56
2fabe70
56acd52
a2436f5
25b98f5
eb8c087
e27ce00
8d8e3fe
303f825
b57d2b2
8bb36c9
c79570c
09fd7c5
51a74b1
fdfc29d
663b3e5
c4eab67
133c89f
59007a9
2e4c7f8
ab32308
166f387
bf07032
e7b6329
a7862ac
958c84e
4076d72
88858ca
c65e4cb
7d33ba8
a48b578
27d468f
6d9f6a1
891baaf
4247342
c75ff58
b697d7a
a4d740b
cd56848
1640b3b
04c8f1d
b7d7f5d
fcc4927
240720b
df73958
e308775
c643ada
a6d5605
52a9b68
029db6e
de86aab
47d0feb
e62fed6
86184a7
5f7ad2d
2f78434
c400be4
7ea774e
fed517c
02b5e63
ea7e23d
2c59b86
f67d9ac
4edfb7b
2fcf6b9
db1a7a1
cefb150
7fb30f3
8444288
f79b403
6c2d0f0
6f15af2
9886459
c648ada
00b1f84
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this now is not e2e specific, it's backend setup action with e2e tied DB credentials. Also -- do you still need psql client step?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, psql client is required as we load the data with it in the fuzz and e2e tests jobs. This workflow is just for DRY. It saves use some lines of code. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: Set up Backend environment | ||
|
|
||
| description: Sets up the Backend environment testing. | ||
|
|
||
| inputs: | ||
| db_username: | ||
| description: 'Database username' | ||
| required: true | ||
| db_name: | ||
| description: 'Database name' | ||
| required: true | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Wait for database to be ready | ||
| env: | ||
| DB_USERNAME: ${{ inputs.db_username }} | ||
| DB_NAME: ${{ inputs.db_name }} | ||
| run: | | ||
| timeout 5m bash -c ' | ||
| until docker exec ${{ job.services.db.id }} pg_isready -U $DB_USERNAME -d $DB_NAME; do | ||
| echo "Waiting for database..." | ||
| sleep 5 | ||
| done | ||
| ' | ||
| shell: bash | ||
|
ahmedxgouda marked this conversation as resolved.
|
||
|
|
||
| - name: Install PostgreSQL client | ||
| run: sudo apt-get install -y postgresql-client | ||
| shell: bash | ||
|
|
||
| - name: Build backend image | ||
| uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 | ||
| with: | ||
| cache-from: | | ||
| type=gha | ||
| cache-to: | | ||
| type=gha,compression=zstd | ||
| context: backend | ||
| file: backend/docker/Dockerfile | ||
| load: true | ||
| platforms: linux/amd64 | ||
| tags: owasp/nest:test-backend-latest | ||
|
ahmedxgouda marked this conversation as resolved.
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| DJANGO_ALGOLIA_APPLICATION_ID=None | ||
| DJANGO_ALGOLIA_EXCLUDED_LOCAL_INDEX_NAMES=None | ||
| DJANGO_ALGOLIA_WRITE_API_KEY=None | ||
| DJANGO_ALLOWED_HOSTS=* | ||
| DJANGO_AWS_ACCESS_KEY_ID=None | ||
| DJANGO_AWS_SECRET_ACCESS_KEY=None | ||
| DJANGO_SETTINGS_MODULE=settings.e2e | ||
| DJANGO_CONFIGURATION=E2E | ||
| DJANGO_DB_HOST=db | ||
| DJANGO_DB_NAME=nest_db_e2e | ||
| DJANGO_DB_USER=nest_user_e2e | ||
| DJANGO_DB_PASSWORD=nest_user_e2e_password | ||
| DJANGO_DB_PORT=5432 | ||
| DJANGO_OPEN_AI_SECRET_KEY=None | ||
| DJANGO_PUBLIC_IP_ADDRESS="127.0.0.1" | ||
| DJANGO_REDIS_HOST=None | ||
| DJANGO_REDIS_PASSWORD=None | ||
| DJANGO_RELEASE_VERSION=None | ||
| DJANGO_SECRET_KEY=None | ||
| DJANGO_SENTRY_DSN=None | ||
| DJANGO_SLACK_BOT_TOKEN=None | ||
| DJANGO_SLACK_SIGNING_SECRET=None | ||
| GITHUB_TOKEN=None |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| DJANGO_ALGOLIA_APPLICATION_ID=None | ||
| DJANGO_ALGOLIA_EXCLUDED_LOCAL_INDEX_NAMES=None | ||
| DJANGO_ALGOLIA_WRITE_API_KEY=None | ||
| DJANGO_ALLOWED_HOSTS=* | ||
|
ahmedxgouda marked this conversation as resolved.
|
||
| DJANGO_AWS_ACCESS_KEY_ID=None | ||
| DJANGO_AWS_SECRET_ACCESS_KEY=None | ||
| DJANGO_SETTINGS_MODULE=settings.fuzz | ||
| DJANGO_CONFIGURATION=Fuzz | ||
| DJANGO_DB_HOST=db | ||
| DJANGO_DB_NAME=nest_db_fuzz | ||
| DJANGO_DB_USER=nest_user_fuzz | ||
| DJANGO_DB_PASSWORD=nest_user_fuzz_password | ||
| DJANGO_DB_PORT=5432 | ||
| DJANGO_OPEN_AI_SECRET_KEY=None | ||
| DJANGO_PUBLIC_IP_ADDRESS="127.0.0.1" | ||
| DJANGO_REDIS_HOST=None | ||
| DJANGO_REDIS_PASSWORD=None | ||
| DJANGO_RELEASE_VERSION=None | ||
| DJANGO_SECRET_KEY=None | ||
| DJANGO_SENTRY_DSN=None | ||
| DJANGO_SLACK_BOT_TOKEN=None | ||
| DJANGO_SLACK_SIGNING_SECRET=None | ||
| GITHUB_TOKEN=None | ||
Uh oh!
There was an error while loading. Please reload this page.