Skip to content
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

[bacl] Fix step def for batch account lookup int test #282

Open
wants to merge 3 commits into
base: master
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
47 changes: 23 additions & 24 deletions .github/workflows/jit-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-trivy-alpine:latest

enrich:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'enrich' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-enrichment-code'
runs-on: ubuntu-22.04
Expand All @@ -31,7 +31,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-enrichment-slim:latest

iac-misconfig-detection-kubernetes:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'iac-misconfig-detection-kubernetes' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-kubernetes-iac-misconfiguration-detection'
runs-on: ubuntu-22.04
Expand All @@ -42,7 +42,7 @@ jobs:
with:
security_control: registry.jit.io/control-kubescape-slim:latest
security_control_output_file: /code/results.json

remediation-pr:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'remediation-pr' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-remediation-pr'
runs-on: ubuntu-22.04
Expand All @@ -53,7 +53,7 @@ jobs:
with:
security_control: registry.jit.io/open-remediation-pr-alpine:latest
security_control_output_file: /opt/code/jit-report/results.json

secret-detection:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'secret-detection' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-secret-detection'
runs-on: ubuntu-22.04
Expand All @@ -64,7 +64,7 @@ jobs:
with:
security_control: registry.jit.io/control-gitleaks-alpine:latest
security_control_output_file: /tmp/report.json

software-bill-of-materials:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'software-bill-of-materials' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sbom'
runs-on: ubuntu-22.04
Expand All @@ -75,7 +75,7 @@ jobs:
with:
security_control: registry.jit.io/control-syft-alpine:latest
fail_if_cannot_checkout: false

software-component-analysis-go:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'software-component-analysis-go' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sca'
runs-on: ubuntu-22.04
Expand All @@ -85,7 +85,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-nancy-alpine:latest

software-component-analysis-java:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'software-component-analysis-java' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sca'
runs-on: ubuntu-22.04
Expand All @@ -95,7 +95,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-osv-scanner-alpine:latest

software-component-analysis-js:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'software-component-analysis-js' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sca'
runs-on: ubuntu-22.04
Expand All @@ -106,7 +106,7 @@ jobs:
with:
security_control: registry.jit.io/control-npm-audit-slim:latest
security_control_output_file: /code/jit-report/enriched-audit-results.json

software-component-analysis-php:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'software-component-analysis-php' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sca'
runs-on: ubuntu-22.04
Expand All @@ -116,7 +116,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-osv-scanner-alpine:latest

software-component-analysis-python:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'software-component-analysis-python' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sca'
runs-on: ubuntu-22.04
Expand All @@ -126,7 +126,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-osv-scanner-alpine:latest

software-component-analysis-trivy-csharp:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'software-component-analysis-trivy-csharp' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sca'
runs-on: ubuntu-22.04
Expand All @@ -136,7 +136,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-trivy-dotnet-slim:latest

static-code-analysis-c-cpp:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-c-cpp' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -146,7 +146,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-csharp:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-csharp' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -156,7 +156,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-go:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-go' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -166,7 +166,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-gosec-alpine:latest

static-code-analysis-java:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-java' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -176,7 +176,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-js:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-js' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -186,7 +186,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-kotlin:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-kotlin' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -196,7 +196,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-php:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-php' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -206,7 +206,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-python-semgrep:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-python-semgrep' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -216,7 +216,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-ruby:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-ruby' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -226,7 +226,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-rust:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-rust' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -236,7 +236,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-scala:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-scala' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -246,7 +246,7 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

static-code-analysis-swift:
if: fromJSON(github.event.inputs.client_payload).payload.workflow_job_name == 'static-code-analysis-swift' && fromJSON(github.event.inputs.client_payload).payload.workflow_slug == 'workflow-sast'
runs-on: ubuntu-22.04
Expand All @@ -256,4 +256,3 @@ jobs:
uses: jitsecurity-controls/[email protected]
with:
security_control: registry.jit.io/control-semgrep-alpine:latest

1 change: 1 addition & 0 deletions .jit/jit-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 0 additions & 1 deletion .jit/jit-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ items:
jitsecurity-controls/jit-plans/items/code/item-software-bill-of-materials.yml@latest
- name: Scan your API for vulnerabilities
uses: jitsecurity-controls/jit-plans/items/runtime/item-api-security.yml@latest

Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ public void iCallTheSubBatchSummaryAPIForSubBatchSummaryWithExpectedStatusOf(int

BatchAndSubBatchSummaryResponse res = objectMapper.readValue(scenarioScopeState.response,
BatchAndSubBatchSummaryResponse.class);
assertThat(res.getTotal()).isEqualTo(res.getSuccessful());
assertThat(res.getTotal()).isEqualTo(3);
});
}

Expand Down Expand Up @@ -786,10 +786,12 @@ public void iCallTheBatchTransactionsEndpointWithExpectedStatusOfAndCallbackurlA
logger.info("Batch Transactions Response: " + scenarioScopeState.response);
}

@And("I should assert total txn count and successful txn count in payment batch detail response for batch account lookup")
public void iShouldAssertTotalTxnCountAndSuccessfulTxnCountInPaymentBatchDetailResponseForBatchAccountLookup() {
assertThat(scenarioScopeState.paymentBatchDetail).isNotNull();
assertThat(scenarioScopeState.paymentBatchDetail.getInstructionList().size()).isEqualTo(3);
@And("I should assert total txn count and successful txn count with {int} txns in payment batch detail response for batch account lookup")
public void iShouldAssertTotalTxnCountAndSuccessfulTxnCountInPaymentBatchDetailResponseForBatchAccountLookup(int expectedCount) {
await().atMost(awaitMost, SECONDS).pollDelay(pollDelay, SECONDS).pollInterval(pollInterval, SECONDS).untilAsserted(() -> {
assertThat(scenarioScopeState.paymentBatchDetail).isNotNull();
assertThat(scenarioScopeState.paymentBatchDetail.getInstructionList().size()).isEqualTo(expectedCount);
});
}

@And("I am able to parse actuator response")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ public void iCanCallTheBillerRTPStatusAPIWithExpectedStatusOf(int expectedStatus
});
}

@When("I call the mock bills payment api with invalid header from PBB to Biller with billid with expected status of {int}")
@When("I call the mock bills payment api with invalid header from PBB to Biller with billid with expected status of {int}")
public void iCallTheMockBillsPaymentApiWithInvalidFromPBBToBillerWithBillidWithExpectedStatusOf(int expectedStatus) {
RequestSpecification requestSpec = Utils.getDefaultSpec();
requestSpec.header(CONTENT_TYPE, "application/json");
Expand Down
Loading