Skip to content

Conversation

@fgiorgetti
Copy link

No description provided.

hash-d added 30 commits May 12, 2022 10:53
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>
hash-d and others added 21 commits May 12, 2022 10:53
- 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>
@hash-d hash-d force-pushed the dh-policy-testing-2 branch 2 times, most recently from f4d4173 to 0d19413 Compare May 19, 2022 18:27
@hash-d hash-d force-pushed the dh-policy-testing-2 branch 2 times, most recently from bee091a to 00b6854 Compare June 3, 2022 12:50
@hash-d hash-d force-pushed the dh-policy-testing-2 branch from 11d3237 to 0cef60e Compare June 7, 2022 20:10
Copy link
Owner

@hash-d hash-d left a 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",
},
Copy link
Owner

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)
}
Copy link
Owner

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
}
}
Copy link
Owner

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{
Copy link
Owner

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

@hash-d hash-d force-pushed the dh-policy-testing-2 branch from e7b1427 to c71812d Compare June 14, 2022 18:32
@hash-d hash-d force-pushed the dh-policy-testing-2 branch 2 times, most recently from 66648e6 to 558116f Compare July 2, 2022 01:30
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.

2 participants