Adrien Aury

Results 17 comments of Adrien Aury

- [ ] Each mask should know if the secure mode is active or not. - [ ] If secure mode is active, each unsecure mask should fail on error...

We could create a drop-down buttons list on the upper right corner (similar to https://jqplay.org/). Buttons : - Share : copy link - Export as Venom Test

This is the expected output if the global seed is set like in your first example

Maybe instead of `9:14PM INF Add mask config=masking.yml context=stdin mask="constant Benjamin" path=name ` use `9:14PM INF Configure mask config=masking.yml context=stdin mask="constant Benjamin" path=name ` Because there is a mask named...

> Or this the generator (singular) that is defined with a list of masks ? Yes, the generator is defined by the whole list

Note: first post updated A generator could also be defined like this filename : **nir.yml** ```yaml masking: - selector: jsonpath: "gender" #if present then gender is used a parameter masks:...

Ok for the "now" value. But "now + 1", ... can be handled with existing masks : - https://github.com/CGI-FR/PIMO#duration - https://github.com/CGI-FR/PIMO#randomDuration

> I think that "now" should be valued only one time for consistency and performance For `add-transient` we defined a "cleanup" process that is executed by a mask once at...

## Drafts ```console $ echo '{"userid": "6022955c5e70a4fbbd9fcfae"}' | pimo mock get https://www.data.gouv.fr/api/1/users/{{.userid}}/ {"about": null,"active": true,"avatar": null,"avatar_thumbnail": null,"email": null,"first_name": "coralie","id": "6022955c5e70a4fbbd9fcfae","last_name": "spillebout","metrics": {"datasets": 0,"followers": 0,"following": 0,"reuses": 0},"organizations": [],"page": "https://www.data.gouv.fr/fr/users/coralie-spillebout-1/","roles": [],"since": "2021-02-09T14:59:56.271000","slug":...

# Example 1 : Emulate fake web service **`routes.yml`** ```yaml version: "1" routes: - name: api/users/:{userid}/ method: get maskingfile: masking-user.yml ``` **`masking-user.yml`** ```yaml version: "1" masking: - selector: jsonpath: "response.body.id"...