Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • forge forge
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • forgeforge
  • Merge requests
  • !175

forensic logging: multiple requests, same client

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Andrei Pavel requested to merge forensic-logging into master May 12, 2021
  • Overview 8
  • Commits 2
  • Pipelines 7
  • Changes 6

Noticed that in 1.9.7 in v6, only the first DHCPREQUEST was getting logged, the subsequent ones weren't. As opposed to DHCPRENEWs which where logged. So the main intended change in this MR was to:

  • send multiple DHCPREQUESTs
  • check that they are all logged which is now true for master.

Other changes that make it work with master:

  • space added: Address:3000::5 -> Address: 3000::5
  • "has been renewed" is now logged as "has been assigned" - kea#1868 addresses this, for the time being the test caters to the current behavior

Other changes:

  • deduplicated code in some helper functions
  • added missing check at the end of "test_v6_legal_log_address_assigned_duid"
  • "test_v4_legal_log_assigned_address_via_relay_pgsql_1" was not about postgres, renamed it to "test_v4_legal_log_assigned_address_via_relay_one_address"
  • added missing relay pytest marks
  • any test that doesn't have "relay" in the name no longer uses relayed packets
  • check the whole line once instead of checking parts of it multiple times
  • there was no order of tests, mysql and pgsql orders were mixed, i ordered them by file -> mysql -> pgsql
  • renamed "test_v6_loggers_legal_log_hook_*" to "test_v6_legal_log_*" for consistency with the v4 counterparts and for shorter names
  • maybe some others... huge sorry for the big changes
Edited May 13, 2021 by Andrei Pavel
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: forensic-logging