smartcat-labs / ranger

Ranger is contextual data generator used to make sensible data for integration tests or to play with it in the database
https://www.smartcat.io/products/ranger-contextual-data-and-load-generator
Apache License 2.0
59 stars 11 forks source link

Support multi file configuration and module references #152

Open vajda opened 7 years ago

vajda commented 7 years ago

Idea is to support definition of configuration objects in multiple files and be able to reference values across configuration files. This will provide support for implementing domain specific objects that could be packaged within jar and reused.

Configuration would look similar to the following: userFile.yml

...
values:
  user:
    username: random(['Legolas', 'Aragorn', 'Gandalf'])
    firstName: random(['Peter', 'John', 'Mathew'])
    lastName: Smith

config.yml

...
include: userFile.yml as userFile

values:
  result:
    id: uuid()
    user: $userFile.user