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

[TT-9829] Fix checking json.Marshal errors in tests #5426

Merged
merged 4 commits into from
Aug 17, 2023

Conversation

titpetric
Copy link
Contributor

@titpetric titpetric commented Aug 16, 2023

TT-9829
Summary Fix checking json.Marshal error returns in tests
Type Task Task
Status In Code Review
Points N/A
Labels -

  • Added test.MarshalJSON utility for encoding json in tests and asserting the error return is nil,
  • Updated usage in tests

This is required to resolve some sonarcloud errors in existing tests code.

https://tyktech.atlassian.net/browse/TT-9829

@TykTechnologies TykTechnologies deleted a comment from github-actions bot Aug 16, 2023
@TykTechnologies TykTechnologies deleted a comment from github-actions bot Aug 16, 2023
@titpetric titpetric changed the title Fix checking json.Marshal errors in tests [TT-9829] Fix checking json.Marshal errors in tests Aug 16, 2023
@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 16, 2023

API tests result: success
Branch used: refs/pull/5426/merge
Commit: 7a9e3b4
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 16, 2023

API tests result: success
Branch used: refs/pull/5426/merge
Commit:
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 16, 2023

💔 The detected issue is not in one of the allowed statuses 💔

Detected Status Open
Allowed Statuses In Dev,In Code Review,Ready for Testing,In Test,In Progress,In Review ✔️

Please ensure your jira story is in one of the allowed statuses

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 16, 2023

API tests result: success
Branch used: refs/pull/5426/merge
Commit: 72c5057
Triggered by: pull_request (@titpetric)
Execution page

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 16, 2023

API tests result: success
Branch used: refs/pull/5426/merge
Commit: a5e466d
Triggered by: pull_request (@titpetric)
Execution page

@titpetric titpetric requested a review from jeffy-mathew August 17, 2023 08:30
@titpetric titpetric force-pushed the fix/tests-json-marshalling branch from a5e466d to c4231ad Compare August 17, 2023 08:31
@titpetric titpetric enabled auto-merge (squash) August 17, 2023 08:31
@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 17, 2023

I'm a bot and I 👍 this PR title. 🤖

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability E 1 Vulnerability
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

83.3% 83.3% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@Tyk-ITS
Copy link
Contributor

Tyk-ITS commented Aug 17, 2023

API tests result: success
Branch used: refs/pull/5426/merge
Commit: c4231ad
Triggered by: pull_request (@titpetric)
Execution page

@titpetric titpetric merged commit c985ee4 into master Aug 17, 2023
@titpetric titpetric deleted the fix/tests-json-marshalling branch August 17, 2023 09:01
@titpetric
Copy link
Contributor Author

/release to release-5-lts

@tykbot
Copy link

tykbot bot commented Aug 17, 2023

Working on it! Note that it can take a few minutes.

@tykbot
Copy link

tykbot bot commented Aug 17, 2023

@titpetric Succesfully merged PR

tykbot bot pushed a commit that referenced this pull request Aug 17, 2023
- Added `test.MarshalJSON` utility for encoding json in tests and
asserting the error return is nil,
- Updated usage in tests

This is required to resolve some sonarcloud errors in existing tests
code.

https://tyktech.atlassian.net/browse/TT-9829

---------

Co-authored-by: Tit Petric <tit@tyk.io>
(cherry picked from commit c985ee4)
buger added a commit that referenced this pull request Aug 17, 2023
…in tests (#5426)

[TT-9829] Fix checking json.Marshal errors in tests (#5426)

- Added `test.MarshalJSON` utility for encoding json in tests and
asserting the error return is nil,
- Updated usage in tests

This is required to resolve some sonarcloud errors in existing tests
code.

https://tyktech.atlassian.net/browse/TT-9829

---------

Co-authored-by: Tit Petric <tit@tyk.io>
@titpetric
Copy link
Contributor Author

/release to release-5.2

@tykbot
Copy link

tykbot bot commented Aug 17, 2023

Working on it! Note that it can take a few minutes.

tykbot bot pushed a commit that referenced this pull request Aug 17, 2023
- Added `test.MarshalJSON` utility for encoding json in tests and
asserting the error return is nil,
- Updated usage in tests

This is required to resolve some sonarcloud errors in existing tests
code.

https://tyktech.atlassian.net/browse/TT-9829

---------

Co-authored-by: Tit Petric <tit@tyk.io>
(cherry picked from commit c985ee4)
@tykbot
Copy link

tykbot bot commented Aug 17, 2023

@titpetric Succesfully merged PR

buger added a commit that referenced this pull request Aug 17, 2023
… tests (#5426)

[TT-9829] Fix checking json.Marshal errors in tests (#5426)

- Added `test.MarshalJSON` utility for encoding json in tests and
asserting the error return is nil,
- Updated usage in tests

This is required to resolve some sonarcloud errors in existing tests
code.

https://tyktech.atlassian.net/browse/TT-9829

---------

Co-authored-by: Tit Petric <tit@tyk.io>
@titpetric
Copy link
Contributor Author

/release to release-4-lts

Copy link

tykbot bot commented Nov 7, 2023

Working on it! Note that it can take a few minutes.

tykbot bot pushed a commit that referenced this pull request Nov 7, 2023
- Added `test.MarshalJSON` utility for encoding json in tests and
asserting the error return is nil,
- Updated usage in tests

This is required to resolve some sonarcloud errors in existing tests
code.

https://tyktech.atlassian.net/browse/TT-9829

---------

Co-authored-by: Tit Petric <tit@tyk.io>
(cherry picked from commit c985ee4)
Copy link

tykbot bot commented Nov 7, 2023

@titpetric Succesfully merged PR

titpetric added a commit that referenced this pull request Nov 7, 2023
- Added `test.MarshalJSON` utility for encoding json in tests and
asserting the error return is nil,
- Updated usage in tests

This is required to resolve some sonarcloud errors in existing tests
code.

https://tyktech.atlassian.net/browse/TT-9829

---------

Co-authored-by: Tit Petric <tit@tyk.io>
(cherry picked from commit c985ee4)
titpetric added a commit that referenced this pull request Nov 7, 2023
…in tests (#5426) (#5751)

[TT-9829] Fix checking json.Marshal errors in tests (#5426)

- Added `test.MarshalJSON` utility for encoding json in tests and
asserting the error return is nil,
- Updated usage in tests

This is required to resolve some sonarcloud errors in existing tests
code.

https://tyktech.atlassian.net/browse/TT-9829

---------

Co-authored-by: Tit Petric <tit@tyk.io>

[TT-9829]:
https://tyktech.atlassian.net/browse/TT-9829?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Tit Petric <tit.petric@monotek.net>
Co-authored-by: Tit Petric <tit@tyk.io>
lghiur pushed a commit that referenced this pull request Jan 22, 2024
…in tests (#5426) (#5751)

[TT-9829] Fix checking json.Marshal errors in tests (#5426)

- Added `test.MarshalJSON` utility for encoding json in tests and
asserting the error return is nil,
- Updated usage in tests

This is required to resolve some sonarcloud errors in existing tests
code.

https://tyktech.atlassian.net/browse/TT-9829

---------

Co-authored-by: Tit Petric <tit@tyk.io>

[TT-9829]:
https://tyktech.atlassian.net/browse/TT-9829?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

---------

Co-authored-by: Tit Petric <tit.petric@monotek.net>
Co-authored-by: Tit Petric <tit@tyk.io>
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.

3 participants