Skip to content

Google Spreadsheets tests refactoring#8788

Merged
davsclaus merged 1 commit intoapache:mainfrom
bvfalcon:google-sheets-tests-refactoring
Nov 30, 2022
Merged

Google Spreadsheets tests refactoring#8788
davsclaus merged 1 commit intoapache:mainfrom
bvfalcon:google-sheets-tests-refactoring

Conversation

@bvfalcon
Copy link
Contributor

@bvfalcon bvfalcon commented Nov 28, 2022

At the Image 1 is shown work of application with Google Spreadspeets component in "real-life"-mode
Image 1 - Real work
Image 1 - Real work

Tests before (link side) and after (right side) this PR are shown at the Image 2
Image 2 - Tests changes
Image 2 - Tests changes

Advantages of new schema:

  1. Where are no unnecessary dependencies.
    Dependencies Citrus Framework, Spring Security, AssertJ are used by embedded server. These dependencies are test-scoped and were used only to mock remote Google Services. This is not necessary: Google Api Client itself supports test-mode.
  2. OAuth2 realization not necessary and removed.
    OAuth2 Mock server is build with Spring Security OAuth library which is deprecated. Implementing new OAuth2 Mock server using new Spring component is difficult because required profound knowledge of OAuth2 protocol. And this is not necessary ;) -- Google Api Client library makes this work for us.

(!) Not solved problem: both schemas - old and new - have no control of Sheets API change. If this API changes, component will work in corrupted mode. Make this check is possible with analysis of Sheets API Schema, but this aspect is out of scoped for this PR and will stay for future.

@github-actions
Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟

⚠️ Please note that the changes on this PR may be tested automatically.

If necessary Apache Camel Committers may access logs and test results in the job summaries!

@github-actions
Copy link
Contributor

Components tested:

Total Tested Failed ❌ Passed ✅
1 1 1 0

@orpiske
Copy link
Contributor

orpiske commented Nov 29, 2022

Components tested:

Total Tested Failed ❌ Passed ✅
1 1 1 0

It seems to be failing due to checkstyle issues.

components-camel-google.log

@bvfalcon bvfalcon force-pushed the google-sheets-tests-refactoring branch from b86c28e to 0e39a92 Compare November 29, 2022 08:45
@bvfalcon
Copy link
Contributor Author

It seems to be failing due to checkstyle issues.

Yes, you are right. Some conventional things were forgotten. Solved now

@github-actions
Copy link
Contributor

Components tested:

Total Tested Failed ❌ Passed ✅
7 7 1 7

@davsclaus davsclaus merged commit 4e58ebd into apache:main Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants