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

(Enhancement) Ginkgo test framework for k8tls #18

Merged
merged 9 commits into from
Aug 29, 2023

Conversation

PrimalPimmy
Copy link
Member

Added test framework using ginkgo, current has two cases but as more features are added, more tests can be put here.

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
@PrimalPimmy PrimalPimmy marked this pull request as draft August 15, 2023 17:28
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

put scripts inside workflows-2

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

testing with kind cluster

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Updated tmp path

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

setup-go to v4

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

fixed tmp paths

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

test improvements

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

checking CI

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

checking CI-2

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

checking CI-3

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

checking if /tmp can be read

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

test

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

test

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

test-3

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Possible success

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Possible success-2

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Possible success-2

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

checking docker

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

checking docker

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Kind cluster stuff

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Kind cluster stuff

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

test

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

back to k3s

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

back to k3s

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

back to k3s-3

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

runtime containerd

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
Copy link
Contributor

@nyrahul nyrahul left a comment

Choose a reason for hiding this comment

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

Looks mostly good to me. Please check the comments. Thanks

tests/kubetls-test.go Outdated Show resolved Hide resolved
.github/workflows/scripts/install_k3s.sh Show resolved Hide resolved
.github/workflows/ci-test-ginkgo.yml Outdated Show resolved Hide resolved
.github/workflows/scripts/install_k3s.sh Outdated Show resolved Hide resolved
tests/k8tls-test.go Outdated Show resolved Hide resolved
tests/k8tls-test.go Show resolved Hide resolved
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

using k3s action

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

reverting

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

reverting

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Matching address

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Updated install script

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Updated install script

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>

Updated install script

Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
Signed-off-by: PrimalPimmy <Prashant20.pm@gmail.com>
@nyrahul nyrahul merged commit 2abaed3 into kubearmor:main Aug 29, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants