Giter Site home page Giter Site logo

Comments (4)

AkashKumar7902 avatar AkashKumar7902 commented on June 19, 2024 1

Hey @Sarthak160
I am thinking of making an entry in keploy-config.yaml like this:

noise: |
    {
      "body": {
        "ts": ["regex", "regex2"]
      },
      "header": {
        "Date": []
      }
    }

WDYT ?

from keploy.

AkashKumar7902 avatar AkashKumar7902 commented on June 19, 2024

hey @Sarthak160
just to clarify do you want a field in test section of config file which will take an array of regular expression ? Each regex in config file will be matched with the value of each entry in json body. If any match occurs, the entry will be ignored.

if this is what we want, why don't we just ask users to provide an array of field names like [header.Date, body.ts, .....] , it would be easier for the users.

from keploy.

Sarthak160 avatar Sarthak160 commented on June 19, 2024

Yes that can be more feasible , but what if the user wants to ignore particular values of that field . Like he wants to ignore those timestamps which contain IST in their values . So basically we should provide both parameters .
By field as well for values .

from keploy.

Sarthak160 avatar Sarthak160 commented on June 19, 2024

Yes that can be more feasible , but what if the user wants to ignore particular values of that field . Like he wants to ignore those timestamps which contain IST in their values . So basically we should provide both parameters .
By field as well for values .

If the user doesn't specify the regex, we will ignore all fields by default

from keploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.