feat(validation): Add MicroK8s firewall validation tests for egress a…#94
Open
NVJCameron wants to merge 11 commits intomainfrom
Open
feat(validation): Add MicroK8s firewall validation tests for egress a…#94NVJCameron wants to merge 11 commits intomainfrom
NVJCameron wants to merge 11 commits intomainfrom
Conversation
…nd pod-to-pod communication - Implemented `ValidateMicroK8sFirewallAllowsEgress` to test egress connectivity from MicroK8s pods. - Implemented `ValidateMicroK8sFirewallAllowsPodToPodCommunication` to verify communication between MicroK8s pods. - Updated validation suite to include new tests for MicroK8s firewall rules.
…ting tests into dedicated functions - Removed inline tests for MicroK8s firewall egress and pod-to-pod communication from the validation suite. - Introduced `runMicroK8sFirewallValidation` function to encapsulate MicroK8s firewall tests. - Enhanced readability and maintainability of the validation code.
…d function - Introduced `runFirewallSubtests` to encapsulate firewall-related validation tests for improved readability and maintainability. - Removed inline firewall tests from `RunInstanceLifecycleValidation` and `RunFirewallValidation` functions. - Ensured consistent testing structure across different validation scenarios.
…or consistency - Changed the parameter order in `runFirewallSubtests` to place context first, aligning with common Go practices. - Updated all calls to `runFirewallSubtests` to reflect the new parameter order, enhancing code readability and maintainability.
…llation retries - Added a command to wait for MicroK8s Nginx service endpoints to be ready before proceeding with tests, preventing race conditions. - Implemented a retry mechanism for the MicroK8s installation process, allowing up to three attempts with delays between retries for improved reliability. - Included a check to wait for CoreDNS pods to be ready, ensuring subsequent commands relying on DNS resolution do not fail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…nd pod-to-pod communication
ValidateMicroK8sFirewallAllowsEgressto test egress connectivity from MicroK8s pods.ValidateMicroK8sFirewallAllowsPodToPodCommunicationto verify communication between MicroK8s pods.