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

tests/e2e: isolate framework from tests, restructure files #2090

Merged
merged 3 commits into from
Nov 19, 2020

Conversation

eduser25
Copy link
Contributor

@eduser25 eduser25 commented Nov 19, 2020

New file structure:

  • tests/
    • framework/
      • Contains framework files. Importing these will automatically
        set up init, BeaforeEach, AfterEach... hooks we usually run
        between tests.
    • e2e/
      • contains end-to-end tests.
    • scenarios/
      • Contains larger, use-case driven tests that might benefit from
        using framework itself.

Changes:

  • Updated some README.md references
  • Moved framework specific files to "framework" folder.
  • Made most of the usable framework structures and attributess
    public for importing modules/tests to use.
  • Moved mutating_webhook scenario under scenarios.

Affected area:

  • Tests [X]
  • CI System [X]

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

@eduser25 eduser25 requested a review from a team as a code owner November 19, 2020 00:32
New file structure:
tests/
  framework/
     # Contains framework files. Importing these will automatically
     # set up init, BeaforeEach, AfterEach... hooks we usually run
     # between tests.
  e2e/
     # contains end-to-end tests.
  scenarios/
     # Contains larger, use-case driven tests that might benefit from
     # using framework itself.

- Updated some README.md references
- Moved framework specific files to "framework" folder.
- Made most of the usable framework structures and attributess
public for importing modules/tests to use.
- Moved mutating_webhook scenario under scenarios.

Signed-off-by: Eduard Serra <eduser25@gmail.com>
@eduser25 eduser25 force-pushed the test-file-structure branch from cd86eb3 to db73205 Compare November 19, 2020 00:39
Signed-off-by: Eduard Serra <eduser25@gmail.com>
@eduser25 eduser25 force-pushed the test-file-structure branch from 2bef582 to c320b15 Compare November 19, 2020 00:43
@codecov-io
Copy link

codecov-io commented Nov 19, 2020

Codecov Report

Merging #2090 (2bef582) into main (1e0ba08) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2090      +/-   ##
==========================================
- Coverage   58.35%   58.34%   -0.02%     
==========================================
  Files         143      143              
  Lines        5869     5869              
==========================================
- Hits         3425     3424       -1     
- Misses       2442     2443       +1     
  Partials        2        2              
Impacted Files Coverage Δ
pkg/envoy/route/config.go 95.23% <0.00%> (-0.80%) ⬇️

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 1e0ba08...c320b15. Read the comment docs.

nojnhuh
nojnhuh previously approved these changes Nov 19, 2020
Copy link
Contributor

@nojnhuh nojnhuh left a comment

Choose a reason for hiding this comment

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

Assuming the CI failure is a flake, LGTM.

tests/framework/common.go Outdated Show resolved Hide resolved
snehachhabria
snehachhabria previously approved these changes Nov 19, 2020
@eduser25 eduser25 dismissed stale reviews from snehachhabria and nojnhuh via 5851d12 November 19, 2020 19:32
- proper packaging name
- fixed few flags that have recently changed (deploy-prometheus, grafana)

Signed-off-by: Eduard Serra <eduser25@gmail.com>
@eduser25 eduser25 force-pushed the test-file-structure branch from 5851d12 to 3e87485 Compare November 19, 2020 19:34
. "github.com/onsi/gomega"
)

func TestSuite(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

@eduser25 eduser25 merged commit d2d9d42 into openservicemesh:main Nov 19, 2020
@eduser25 eduser25 deleted the test-file-structure branch November 19, 2020 20:15
draychev pushed a commit to draychev/osm that referenced this pull request Dec 14, 2020
…cemesh#2090)

* tests/e2e: isolate framework from tests, restructure files

New file structure:
tests/
  framework/
     # Contains framework files. Importing these will automatically
     # set up init, BeaforeEach, AfterEach... hooks we usually run
     # between tests.
  e2e/
     # contains end-to-end tests.
  scenarios/
     # Contains larger, use-case driven tests that might benefit from
     # using framework itself.

- Updated some README.md references
- Moved framework specific files to "framework" folder.
- Made most of the usable framework structures and attributess
public for importing modules/tests to use.
- Moved mutating_webhook scenario under scenarios.

Signed-off-by: Eduard Serra <eduser25@gmail.com>
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.

6 participants