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

Add ability to generate random data for tests #45

Closed
dpfg opened this issue May 22, 2017 · 2 comments
Closed

Add ability to generate random data for tests #45

dpfg opened this issue May 22, 2017 · 2 comments
Assignees
Milestone

Comments

@dpfg
Copy link
Collaborator

dpfg commented May 22, 2017

Could be useful to have an ability to generate some arguments on the fly. E.g. timestamp.

@dpfg
Copy link
Collaborator Author

dpfg commented May 22, 2017

Double curly braces could be an extension to an {argName}

"args": {
  "base": "{currency}", // arg
  "iso_now": "{{ isoTimestamp }}", // function
  "unix_now": "{{ timestamp }}" // function
}

@dpfg dpfg self-assigned this May 22, 2017
@dpfg dpfg modified the milestone: 0.8.9 May 22, 2017
@vadimkonovod
Copy link

vadimkonovod commented Jan 30, 2018

Faced with the need for such improvement when were testing resource "changed" endpoint.
It would be cool to have an ability to set a timestamp for "since" query param dynamically :
../changed?since={{ isoNow() }}

Also it would be great to add some math operations on timestamp values. It will allow to test TimeZone processing:
../changed?since={{ isoNow("UTC", -3) }} or like this
../changed?since={{ isoNow(hh, -3) }}

@dpfg dpfg added this to the 0.8.12 milestone May 14, 2018
@dpfg dpfg mentioned this issue May 14, 2018
@dpfg dpfg closed this as completed Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants