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

tests/e2e: add NoInstall option #1894

Merged
merged 5 commits into from
Oct 23, 2020
Merged

Conversation

eduser25
Copy link
Contributor

@eduser25 eduser25 commented Oct 22, 2020

Adds new e2e install option NoInstall.

NoInstall means to run the tests assuming there is already
a running, permanent instance of OSM in namespace osmNamespace, part
of the test suite flags.

OSM will therefore not be installed/cleaned up between tests,
all other resources used by the tests (clients, other namespaces,
SMI defs, etc) will get cleaned though.

Since a single install is assumed, it assumes inmutability of the
install, so tests that require or test specific parts of the
installation will be skipped.

Dynamic configuration (configmap) is however supported, and tests
that would usually call Install will instead set/reset the dynamic
config map values that the install command would originally set.

Affected area:

  • New Functionality [X]

  • Tests [X]

  • CI System [X]

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

@eduser25 eduser25 requested a review from a team as a code owner October 22, 2020 18:09
@eduser25 eduser25 requested a review from nojnhuh October 22, 2020 18:10
@codecov-io
Copy link

codecov-io commented Oct 22, 2020

Codecov Report

Merging #1894 into main will increase coverage by 0.13%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1894      +/-   ##
==========================================
+ Coverage   58.42%   58.55%   +0.13%     
==========================================
  Files         129      129              
  Lines        5267     5267              
==========================================
+ Hits         3077     3084       +7     
+ Misses       2187     2180       -7     
  Partials        3        3              
Impacted Files Coverage Δ
pkg/envoy/route/config.go 95.83% <0.00%> (+0.83%) ⬆️
...ertificate/providers/tresor/certificate_manager.go 76.40% <0.00%> (+6.74%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dbb3ec7...5f39e66. Read the comment docs.

tests/e2e/common.go Show resolved Hide resolved
tests/e2e/common.go Outdated Show resolved Hide resolved
tests/e2e/common.go Outdated Show resolved Hide resolved
tests/e2e/common.go Show resolved Hide resolved
case SelfInstall:
fallthrough
case KindCluster:
fallthrough
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I've ever actually seen fallthrough used before in the wild. 😄

tests/e2e/common.go Show resolved Hide resolved
nojnhuh
nojnhuh previously approved these changes Oct 22, 2020
Adds new install option `NoInstall`.

NoInstall means to run the tests assuming there is already
a running instance of OSM in namespace `osmNamespace`, part
of the test suite flags.

OSM will therefore not be installed/cleaned up between tests,
all other resources used by the tests (clients, other namespaces,
etc) will get cleaned though.

Since a single install is assumed, it assumes inmutability of the
install, so tests that _require_ or test specific parts of the
installation will be skipped.

Dynamic configuration (configmap) is however supported, and tests
that would usually call Install will instead set/reset the dynamic
config map values that the install command would originally set.

[] rebase
@eduser25 eduser25 merged commit 517501c into openservicemesh:main Oct 23, 2020
@eduser25 eduser25 deleted the noinstall-e2e branch October 23, 2020 21:59
draychev pushed a commit to draychev/osm that referenced this pull request Oct 28, 2020
* tests/e2e: add NoInstall option

Adds new install option `NoInstall`.

NoInstall means to run the tests assuming there is already
a running instance of OSM in namespace `osmNamespace`, part
of the test suite flags.

OSM will therefore not be installed/cleaned up between tests,
all other resources used by the tests (clients, other namespaces,
etc) will get cleaned though.

Since a single install is assumed, it assumes inmutability of the
install, so tests that _require_ or test specific parts of the
installation will be skipped.

Dynamic configuration (configmap) is however supported, and tests
that would usually call Install will instead set/reset the dynamic
config map values that the install command would originally set.

[] rebase
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.

5 participants