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

Support struct vars in integ test generation #178

Open
colin-lamed opened this issue Jul 28, 2015 · 0 comments
Open

Support struct vars in integ test generation #178

colin-lamed opened this issue Jul 28, 2015 · 0 comments

Comments

@colin-lamed
Copy link

we have struct vars to support matrix parameters, json query-parameters, with format:

    ";groupFilter" {
      :type :MatrixParams
      :doc "matrix parameters to filter groups. Valid parameters are: groupId (multiple), city (multiple)"
      :struct {
        "groupId" ["${groupId}" :optional :multiple]
        "city"    ["${city}"    :optional :multiple]
      }
    }
    "paginationFilter" {
      :type :Json
      :doc "json parameter for pagination. Has optional keys: page, pageSize"
      :struct {
        "page" ["${page}" :optional]
        "pageSize"    ["${pageSize}"    :optional]
      }
    }

currently, in integ test generation, the whole variable will or will not be generated, depending on whether the top level (groupFilter or paginationFilter) is required or optional.

For finer testing, we should respect the optionality of each of the composing keys.
E.g. when providing a struct, if we don't provide a required key, do we get a 400?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant