Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

ref(make): add variables for e2e test flags #1857

Merged
merged 1 commit into from
Oct 16, 2020
Merged

ref(make): add variables for e2e test flags #1857

merged 1 commit into from
Oct 16, 2020

Conversation

nojnhuh
Copy link
Contributor

@nojnhuh nojnhuh commented Oct 16, 2020

Description:

This change adds two new variables to the Makefile to handle e2e test
flags: E2E_FLAGS and E2E_FLAGS_DEFAULT. These flags can optionally
be defined on the command line while invoking make test-e2e so flags
can be modified while also automatically building the required images.

Two separate flags were created so a sensible set of
defaults can be kept in E2E_FLAGS_DEFAULT and flags more likely to be
changed like cleanup or focus can be overridden without redefining all
the default flags. The default flags include verbose output and image
parameters, so the test-e2e target will always test with locally built
images from the current source. To use pre-built images, go test
should be invoked directly.

The default behavior for make test-e2e is unchanged.

Affected area:

  • New Functionality [ ]
  • Documentation [ ]
  • Install [ ]
  • Control Plane [ ]
  • CLI Tool [ ]
  • Certificate Management [ ]
  • Networking [ ]
  • Metrics [ ]
  • SMI Policy [ ]
  • Security [ ]
  • Tests [X]
  • CI System [ ]
  • Performance [ ]
  • Other [ ]

Please answer the following questions with yes/no.

  • Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
    No

This change adds two new variables to the Makefile to handle e2e test
flags: `E2E_FLAGS` and `E2E_FLAGS_DEFAULT`. These flags can optionally
be defined on the command line while invoking `make test-e2e` so flags
can be modified while also automatically building the required images.

Two separate flags were created so a sensible set of
defaults can be kept in `E2E_FLAGS_DEFAULT` and flags more likely to be
changed like cleanup or focus can be overridden without redefining all
the default flags. The default flags include verbose output and image
parameters, so the `test-e2e` target will always test with locally built
images from the current source. To use pre-built images, `go test`
should be invoked directly.

The default behavior for `make test-e2e` is unchanged.
@nojnhuh nojnhuh requested a review from a team as a code owner October 16, 2020 17:52
@nojnhuh nojnhuh merged commit 84c0b6b into openservicemesh:main Oct 16, 2020
@nojnhuh nojnhuh deleted the e2e-make-flag branch October 16, 2020 21:28
draychev pushed a commit to draychev/osm that referenced this pull request Oct 28, 2020
This change adds two new variables to the Makefile to handle e2e test
flags: `E2E_FLAGS` and `E2E_FLAGS_DEFAULT`. These flags can optionally
be defined on the command line while invoking `make test-e2e` so flags
can be modified while also automatically building the required images.

Two separate flags were created so a sensible set of
defaults can be kept in `E2E_FLAGS_DEFAULT` and flags more likely to be
changed like cleanup or focus can be overridden without redefining all
the default flags. The default flags include verbose output and image
parameters, so the `test-e2e` target will always test with locally built
images from the current source. To use pre-built images, `go test`
should be invoked directly.

The default behavior for `make test-e2e` is unchanged.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants