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

Is it possible to reference environment variables with integration tests? #454

Open
zacbe opened this issue Jul 23, 2020 · 3 comments
Open
Labels
question Further information is requested

Comments

@zacbe
Copy link

zacbe commented Jul 23, 2020

I know you can reference an env var form a JSON or YML file to serverless.yml but is it possible to do the same for serverless.test.yml?

By the way, I tried without any success.

My test looks something like this:

- name: TEST
  endpoint:
        function: some_function
  request:
       form:
          api_key: ${file(test/fixtures/http-validation-params.json):api_key}
          app_id: some_id
          feed_name: some_name
  response:
       body: some_body
@medikoo
Copy link
Contributor

medikoo commented Jul 23, 2020

@zacbe sorry, but request is not clear to me. What is serverless.test.yml in your context? Are you relying on some specific plugin? It looks like it doesn't belong to this repository

@medikoo medikoo added the question Further information is requested label Jul 23, 2020
@zacbe
Copy link
Author

zacbe commented Jul 23, 2020

Sorry, I thought the integration test were part of the enterprise-plugin. Basically I'm trying the integrations test based on this example.

@medikoo
Copy link
Contributor

medikoo commented Jul 23, 2020

@zacbe thanks for clarification. Sorry I didn't realize it's about Dashboard functionality.

@astuyve do you know answer to that question?

@medikoo medikoo assigned astuyve and unassigned zacbe Jul 23, 2020
@astuyve astuyve removed their assignment Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants