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

chore(*) add Universal entities in the e2e testing framework #859

Merged
merged 8 commits into from
Jul 1, 2020

Conversation

nickolaev
Copy link
Contributor

Summary

Add a Universal mode implementation for the E2E testing framework.

Issues resolved

Fix #773

@nickolaev nickolaev requested a review from a team June 26, 2020 22:24
@nickolaev nickolaev changed the title Chore/e2e universal chore(*) add Universal entities in the e2e testing framework Jun 26, 2020
Nikolay Nikolaev added 2 commits June 28, 2020 23:33
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
Signed-off-by: Nikolay Nikolaev <nikolay.nikolaev@konghq.com>
var defaultDockerOptions = docker.RunOptions{
Command: nil,
Detach: true,
//Entrypoint: "",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it also intentional?

}

func (s *UniversalApp) getIP() string {
cmd := SshCmd(s.sshPort, "getent", "hosts", s.container[:12])
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 12?

}

func (c *UniversalCluster) Exec(namespace, podName, containerName string, cmd ...string) (string, string, error) {
return "", "", nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please panic if a method is not implemented, otherwise we can unintentionally use some of them. And Exec probably could be deleted, maybe I shouldn't have introduced it

@nickolaev nickolaev merged commit 8e85ec3 into master Jul 1, 2020
@nickolaev nickolaev deleted the chore/e2e_universal branch July 15, 2020 20:06
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.

Create a E2E Testing Framework for Kubernets, Universal and Multicluster/Hybrid
2 participants