-
Notifications
You must be signed in to change notification settings - Fork 0
Minor fixes to work on multiple platforms #1
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
base: dh-policy-testing-2
Are you sure you want to change the base?
Minor fixes to work on multiple platforms #1
Conversation
Includes rebase conflict fix from 1439e44 Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
The container failure check is new, and it is failing because sometimes the container will successfully come up and then successfully restart, and that should be expected, but the check thinks it went down. Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
That's a recent change to how the policies work Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Also added testLinkPolicy (only a shell) and other refactoring to reuse code Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
The site-controller image is still not fixed to allow linke re creation on CRD removal Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
- moving stuff to their proper places - renaming to make more explicit Committing early so I can rebase with the latest code Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
- add GetCheck to policyTestSetup - updated existing tests to use GetCheck - added test case 'previously-created-token' - improved test interruption handling Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
It's not working, but I'm guessing due to upstream image changes. I'll rebase and investigate Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
And other minor, unrelated changes I'll probably enter an issue for that error, but I have a workaround
…Scenario Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Mostly moving stuff around Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Most importantly, init and clean become normal PolicyTestCase entries, instead of special parts of the code. This allows the runner to be properly reusable. Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
- defined it on the features file - defined service.StatusTester.unauthInterfaces, and implementation for it - adapted tests for failing service-creation-after-policy-allowing - created the actual first tests for binding Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Also, reorganized env file and identified 'sections' Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
And accompanying changes Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
This code will be removed before merging into main Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
With infra changes Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
…vals Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Used testNamespace test that was failing due to recent policy code changes making the policy CR changes take a bit longer to reflect on the clusters. Also took the time to complete that test further. Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
along with its contextMap Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
…Instructions Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
It's now just a function to change a string into another; the actual intelligence is on the preHook closure of the testcase Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
…d for now The test is failing, probably because of a bug in skupper. I'll keep only the create tester for today at least, to avoid unnecessary warnings on the CI Signed-off-by: Danilo Gonzalez Hashimoto <dhashimo@redhat.com>
f4d4173 to
0d19413
Compare
bee091a to
00b6854
Compare
11d3237 to
0cef60e
Compare
hash-d
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have addressed all suggestions, some in ways that differ from this PR. Individual comments added for each of them.
I'll not merge this PR, as it would require rebase, and, as mentioned, all suggestions have already been addressed
| EnableConsole: false, | ||
| EnableRouterConsole: false, | ||
| // ConsoleIngress: "none", | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have kept the original configuration, as I want to keep as close as possible to the original hello world test.
| if _, err := cluster.KubectlExec("delete crd skupperclusterpolicies.skupper.io"); err != nil { | ||
| t.Fatalf("Removal of CRD failed: %v", err) | ||
| t.Logf("WARNING: Removal of CRD failed: %v", err) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been done as above in the PR
| if !base.MultipleClusters() { | ||
| break | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more complex Multi-cluster setup has been created; each test can declare whether it works or not on a multi-cluster environment, and the secondary cluster will be configured for those tests that do.
| func createTokenPolicyScenario(cluster *base.ClusterContext, prefix, testPath, name string, works bool) (createToken cli.TestScenario) { | ||
|
|
||
| _ = os.MkdirAll(testPath, 0755) | ||
| createToken = cli.TestScenario{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has actually been done on the main test, as the tmp directory is used for tokens on more than one test function, and also for debug dumps
e7b1427 to
c71812d
Compare
66648e6 to
558116f
Compare
No description provided.