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

Azure functions Unit test cases #88

Merged
merged 5 commits into from
Apr 23, 2024
Merged

Conversation

Sivakumar3695
Copy link
Contributor

@Sivakumar3695 Sivakumar3695 commented Apr 16, 2024

Description:

  1. Added unit test case for Azure Blob Forwarder function.
  2. Added unit test case for Azure Event Hub message Forwarder function.
  3. Updated github actions to run test case for PRs.

Technical description for test cases:

  1. Blob Forwarder Fn: Created buffer through code and passed the created buffer to Blob forwarder function -> checked the logs from NR account to ensure logs are forwarded to NR.
  2. Event Hub Msg Forwarder: Created array of strings through code and passed the created array to Event hub message forwarder function -> checked the logs from NR account to ensure logs are forwarded to NR.

List of test cases for Blob Forwarder:

  1. a simple blob forwarding
  2. a simple blob forwarding count test
  3. a huge blob forwarding divide and conquer test
  4. compressed single line > 1MB test

List of test cases for Event Hub message Forwarder:

  1. a simple event hub message forwarding
  2. a simple event hub forwarding count test

@Sivakumar3695 Sivakumar3695 force-pushed the blob-forwarder-test-cases branch 4 times, most recently from ed8586d to 22ced82 Compare April 16, 2024 14:36
@Sivakumar3695 Sivakumar3695 marked this pull request as ready for review April 16, 2024 14:49
@Sivakumar3695 Sivakumar3695 changed the title Blob forwarder test cases Azure functions Unit test cases Apr 17, 2024
Copy link
Contributor

@jsubirat jsubirat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice stuff @Sivakumar3695 ! Left you a few comments

.github/workflows/pr.yml Outdated Show resolved Hide resolved
test-suite/lib/environmentVariables.js Outdated Show resolved Hide resolved
test-suite/lib/logger.js Outdated Show resolved Hide resolved
test-suite/eventHubForwarder.test.js Outdated Show resolved Hide resolved
test-suite/blobForwarder.test.js Outdated Show resolved Hide resolved
test-suite/blobForwarder.test.js Outdated Show resolved Hide resolved
@Sivakumar3695 Sivakumar3695 force-pushed the blob-forwarder-test-cases branch 3 times, most recently from 4e77e64 to 7a20460 Compare April 19, 2024 16:37
@Sivakumar3695 Sivakumar3695 merged commit 62d0dff into master Apr 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants