Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Add new request format to fuzz target #5

Open
wants to merge 12 commits into
base: fixed_version
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .code-intelligence/campaigns/AllController-a7e91866.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"numberOfJobs": 1
}
],
"skipInitialCorpus": true,
"configuredTargets": [
{
"fuzzTarget": "AllController-ae4f0ca2",
Expand Down
2 changes: 2 additions & 0 deletions .code-intelligence/ci_info
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"org.dpppt.backend.sdk.data.util",
"org.dpppt.backend.sdk.model",
"org.dpppt.backend.sdk.model.gaen",
"org.dpppt.backend.sdk.model.gaen.proto",
"org.dpppt.backend.sdk.model.gaen.proto.v2",
"org.dpppt.backend.sdk.model.keycloak",
"org.dpppt.backend.sdk.semver",
"org.dpppt.backend.sdk.utils",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"requests": [
{
"method": "GET",
"uri": "/v1/exposedjson/%FUZZ%1606989600000",
"uri": "/v1/exposedjson/%FUZZ%1615902606000",
"headers": {
},
"contentType": "TEXT_HTML",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"requests": [
{
"method": "GET",
"uri": "/v1/gaen/exposed/%FUZZ%1606989600000?publishedafter=%FUZZ%1606989600000",
"uri": "/v1/gaen/exposed/%FUZZ%1615902606000?publishedafter=%FUZZ%1615902606000",
"headers": {
},
"contentType": "TEXT_HTML",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"requests": [
{
"method": "GET",
"uri": "/v1/exposed/%FUZZ%1606989600000",
"uri": "/v1/exposed/%FUZZ%1615902606000",
"headers": {
},
"contentType": "TEXT_HTML",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"requests": [
{
"method": "GET",
"uri": "/v1/gaen/exposedjson/%FUZZ%1606989600000?publishedafter=%FUZZ%1606989600000",
"uri": "/v1/gaen/exposedjson/%FUZZ%1615902606000?publishedafter=%FUZZ%1615902606000",
"headers": {
},
"contentType": "TEXT_HTML",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"requests": [
{
"method": "GET",
"uri": "/v1/gaen/buckets/03-12-20",
"uri": "/v1/gaen/buckets/2021-03-16",
"headers": {
},
"contentType": "TEXT_HTML",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"headers": {
},
"contentType": "APPLICATION_JSON",
"body": "{\"key\": \"dGVzdEtleTMyQnl0ZXMtLXRlc3RLZXkzMkJ5dGVzLS0=\", \"keyDate\": \"1589039479223\"}",
"body": "{\"gaenKeys\":[{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhMQ==\",\"rollingStartNumber\":2692944,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":0},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNiMg==\",\"rollingStartNumber\":2692944,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":0},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNjMw==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":0},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1}],\"delayedKeyDate\":2693232}",
"isFixed": false,
"webControllerId": "772282204"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"requests": [
{
"method": "GET",
"uri": "/v1",
"uri": "/v2",
"headers": {
},
"contentType": "TEXT_HTML",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"requests": [
{
"method": "POST",
"uri": "/v1/exposed",
"uri": "/v2/exposed",
"headers": {
},
"contentType": "APPLICATION_JSON",
"body": "{\"key\": \"dGVzdEtleTMyQnl0ZXMtLXRlc3RLZXkzMkJ5dGVzLS0=\", \"keyDate\": \"1589039479223\"}",
"body": "{\"gaenKeys\":[{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhMQ==\",\"rollingStartNumber\":2692944,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":0},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNiMg==\",\"rollingStartNumber\":2692944,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":0},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNjMw==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":0},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1},{\"keyData\":\"dGVzdEtleTMyQnl0ZXNhYQ==\",\"rollingStartNumber\":2693088,\"rollingPeriod\":144,\"transmissionRiskLevel\":0,\"fake\":1}],\"delayedKeyDate\":2693232}",
"isFixed": false,
"webControllerId": "-608625832"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"requests": [
{
"method": "GET",
"uri": "/v1/buckets/%FUZZ%",
"uri": "/v2/buckets/%FUZZ%",
"headers": {
},
"contentType": "TEXT_HTML",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"requests": [
{
"method": "POST",
"uri": "/v1/exposedlist",
"uri": "/v2/exposedlist",
"headers": {
},
"contentType": "APPLICATION_JSON",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"requests": [
{
"method": "POST",
"uri": "/v1/gaen/exposednextday",
"uri": "/v2/gaen/exposednextday",
"headers": {
},
"contentType": "APPLICATION_JSON",
Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,52 @@
name: CI
name: Code Intelligence Fuzzing

on:
push:
branches: [ master, demo_before_fix ]
branches: [ master, demo_before_fix, fixed_version ]
pull_request:
branches: [ master, demo_before_fix ]
branches: [ master, demo_before_fix, fixed_version ]

env:
PROJECT_NAME: dp3t
FUZZING_SERVER_ADDRESS: grpc-api.demo.code-intelligence.com:443
DASHBOARD_ADDRESS: https://app.demo.code-intelligence.com
FUZZING_SERVER_ADDRESS: grpc-api.code-intelligence.com:443
DASHBOARD_ADDRESS: https://app.code-intelligence.com

jobs:
fuzz_AllController:
runs-on: ubuntu-latest
steps:
- id: start-fuzzing
name: Build and Instrument
uses: CodeIntelligenceTesting/github-actions/start-fuzzing@master
uses: CodeIntelligenceTesting/github-actions/start-fuzzing@v3
with:
ci_fuzz_api_token: ${{ secrets.CI_FUZZ_API_TOKEN }}
project: ${{ env.PROJECT_NAME }}
test_collection: "AllController"
test_collection: "projects/dp3t_git-cc9aec38a841e381/campaigns/AllController-a7e91866"
git_reference: ${{ github.sha }}
fuzzing_server_address: ${{ env.FUZZING_SERVER_ADDRESS }}
fuzzing_server_address: ${{ env.FUZZING_SERVER_ADDRESS }}
- id: monitor-fuzzing
name: Fuzzing
uses: CodeIntelligenceTesting/github-actions/monitor-fuzzing@master
uses: CodeIntelligenceTesting/github-actions/monitor-fuzzing@v3
with:
ci_fuzz_api_token: ${{ secrets.CI_FUZZ_API_TOKEN }}
project: ${{ env.PROJECT_NAME }}
test_collection_run: ${{ steps.start-fuzzing.outputs.test_collection_run_display_name }}
test_collection_run: ${{ steps.start-fuzzing.outputs.test_collection_run }}
github_token: ${{ secrets.GITHUB_TOKEN }}
pull_request_number: ${{ github.event.pull_request.number }}
owner: ${{ github.event.repository.owner.login }}
repository: ${{ github.event.repository.name }}
fuzzing_server_address: ${{ env.FUZZING_SERVER_ADDRESS }}
dashboard_address: ${{ env.DASHBOARD_ADDRESS }}
timeout: ${{7200}}
- id: report-coverage
name: Report Coverage
uses: CodeIntelligenceTesting/github-actions/report-coverage@master
uses: CodeIntelligenceTesting/github-actions/report-coverage@v3
if: ${{ github.event_name == 'pull_request' && (success() || failure()) }}
with:
ci_fuzz_api_token: ${{ secrets.CI_FUZZ_API_TOKEN }}
project: ${{ env.PROJECT_NAME }}
test_collection_run: ${{ steps.start-fuzzing.outputs.test_collection_run_resource_name }}
test_collection_run: ${{ steps.start-fuzzing.outputs.test_collection_run }}
github_token: ${{ secrets.GITHUB_TOKEN }}
pull_request_number: ${{ github.event.pull_request.number }}
owner: ${{ github.event.repository.owner.login }}
repository: ${{ github.event.repository.name }}
git_reference: ${{ github.sha }}
fuzzing_server_address: ${{ env.FUZZING_SERVER_ADDRESS }}
dashboard_address: ${{ env.DASHBOARD_ADDRESS }}

17 changes: 0 additions & 17 deletions .github/workflows/pre-commit.yaml

This file was deleted.