Uploaded image for project: 'OpenShift CFE'
  1. OpenShift CFE
  2. CFE-107

Consistent IP on dashes is different than dots

XMLWordPrintable

    • CFE Sprint 206

      When you obfuscate

       "obfuscate 10.0.129.220 and 10-0-129-220"

       

      The result is  "obfuscate x-ipv4-000001-x and x-ipv4-000002-x", whereas this should actually be the same replacement. That happens frequently with folder names and their corresponding log file contents.

      quick testcase to repro:

      {
      	name:   "standard ipv4 and standard ipv4 should map to same ip",
      	input:  []string{"obfuscate 10.0.129.220 and 10-0-129-220"},
      	output: []string{"obfuscate x-ipv4-000001-x and x-ipv4-000001-x"},
      	report: map[string]string{
      		"10.0.129.220": "x-ipv4-000001-x",
      	},
      },
      

      AC:

      • The same IP should be mapped to the same replacement, regardless of their initial formatting
      • additional unit testing
      • including the above case for the IP obfuscator as a regression test
         

              svanka@redhat.com Sai Ramesh Vanka
              tjungblu@redhat.com Thomas Jungblut
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: