Skip to content

PT-2218 - Add test to check per container logs for pxc#1101

Open
BON4 wants to merge 2 commits into3.xfrom
PT-2218-logs-per-container-test
Open

PT-2218 - Add test to check per container logs for pxc#1101
BON4 wants to merge 2 commits into3.xfrom
PT-2218-logs-per-container-test

Conversation

@BON4
Copy link
Copy Markdown
Contributor

@BON4 BON4 commented Mar 31, 2026

This issue have been fixed since #1054 was merged. This PR introduces modification of already existing test, to check if logs are indeed separated by container for pxc.

  • The contributed code is licensed under GPL v2.0
  • Contributor Licence Agreement (CLA) is signed
  • util/update-modules has been ran
  • Documentation updated
  • Test suite update

continue
}

if !slices.Contains(result, b) && b != "." && b != "" {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure under what circumstances b may be dot or empty here if we explicitly compare it with required few lines above?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed, it is a excess defensive check. I will remove it.

"logs.log": true,
"pxc-init.log": true,
"pxc.log": true,
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor: It's better to implement sets like map[string]struct{} and use _, ok := required[b] to check if value is there.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants