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

updating unittests in src/app-layer-htp.c to new FAIL/PASS API/v1 #11909

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Nancyenos
Copy link

Ticket: #6935

Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.

Contribution style:

Our Contribution agreements:

Changes (if applicable):

Link to ticket: https://redmine.openinfosecfoundation.org/issues/

Describe changes:

-updated HTPParserTest01a in src/app-layer-htp.c to new FAIL/PASS API

Provide values to any of the below to override the defaults.

  • To use an LibHTP, Suricata-Verify or Suricata-Update pull request,
    link to the pull request in the respective _BRANCH variable.
  • Leave unused overrides blank or remove.

SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=
LIBHTP_REPO=
LIBHTP_BRANCH=

Copy link

github-actions bot commented Oct 9, 2024

NOTE: This PR may contain new authors.

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.12%. Comparing base (501f79c) to head (e4f12b5).
Report is 12 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11909      +/-   ##
==========================================
- Coverage   82.56%   79.12%   -3.44%     
==========================================
  Files         912      912              
  Lines      249354   249151     -203     
==========================================
- Hits       205880   197152    -8728     
- Misses      43474    51999    +8525     
Flag Coverage Δ
fuzzcorpus 60.71% <ø> (+0.24%) ⬆️
livemode 18.72% <ø> (-0.01%) ⬇️
pcap 44.12% <ø> (+0.03%) ⬆️
suricata-verify ?
unittests 58.94% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Member

@inashivb inashivb left a comment

Choose a reason for hiding this comment

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

Congrats on your first contribution, @Nancyenos ! :)
The changes are looking ok from a brief overview, however, we need to rework a few things:

  • Rebase your branch on the latest master
  • Cover all the tests in this file
  • Commit message should be reworded to something like: applayer/htp: convert to new FAIL/PASS API

Nice first try! ⭐

@Nancyenos
Copy link
Author

Thank you @inashivb .Working on it!

@inashivb inashivb added the outreachy Contributions made by Outreachy applicants label Oct 10, 2024
@victorjulien
Copy link
Member

Please open a new branch and PR for implementing the requested changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outreachy Contributions made by Outreachy applicants
Development

Successfully merging this pull request may close these issues.

3 participants