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

adding smoke tests #653

Merged
merged 60 commits into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
76563ce
adding smoke tests
Prateeknandle Jan 12, 2023
f42befa
refractor
Prateeknandle Jan 14, 2023
416b21b
sleep time decrese
Prateeknandle Jan 14, 2023
73356a2
sleep time increase
Prateeknandle Jan 14, 2023
8d792bb
adding test for network policy
Prateeknandle Jan 18, 2023
c64031a
printing policy
Prateeknandle Jan 18, 2023
d3649df
adding cases
Prateeknandle Jan 18, 2023
4b51b34
additional time removing
Prateeknandle Jan 18, 2023
e173607
adding sleep time
Prateeknandle Jan 18, 2023
d552060
adding sleep time 20&25
Prateeknandle Jan 18, 2023
5e8b897
decreasing time
Prateeknandle Jan 19, 2023
458f11c
print
Prateeknandle Jan 19, 2023
f209db6
looping discover cmd
Prateeknandle Jan 20, 2023
c0610d5
adding sleep time
Prateeknandle Jan 20, 2023
e5108ae
printing statement
Prateeknandle Jan 20, 2023
68e6331
looping network policy
Prateeknandle Jan 20, 2023
f9ce105
cleaning up
Prateeknandle Jan 20, 2023
a099eeb
clean up
Prateeknandle Jan 20, 2023
d583ee8
making func generic
Prateeknandle Jan 23, 2023
5298228
adding flag
Prateeknandle Jan 23, 2023
c6427a1
adding flag for network policy
Prateeknandle Jan 23, 2023
7596371
changing tests
Prateeknandle Jan 24, 2023
18d5c9a
clean up
Prateeknandle Jan 24, 2023
db59e84
tcp to udp for ingress
Prateeknandle Jan 24, 2023
22677a8
removing print statement
Prateeknandle Jan 24, 2023
a919602
print statement
Prateeknandle Jan 24, 2023
8bfc019
udp to tcp
Prateeknandle Jan 24, 2023
3143cd0
udp to tcp
Prateeknandle Jan 24, 2023
4331cae
tcp to udp
Prateeknandle Jan 24, 2023
331edde
flag_i
Prateeknandle Jan 24, 2023
6cdf066
flag_i
Prateeknandle Jan 24, 2023
995fb2f
print
Prateeknandle Jan 24, 2023
f97cac8
print
Prateeknandle Jan 24, 2023
76acff0
print
Prateeknandle Jan 24, 2023
3fb9dba
break remove
Prateeknandle Jan 24, 2023
ddfa474
break add
Prateeknandle Jan 24, 2023
4fea428
adding label
Prateeknandle Jan 24, 2023
0781c75
removing label
Prateeknandle Jan 24, 2023
5acf30b
changing test case for network policy
Prateeknandle Jan 25, 2023
2605b1c
print
Prateeknandle Jan 25, 2023
d7addc7
adding test
Prateeknandle Jan 25, 2023
8d7880d
back
Prateeknandle Jan 25, 2023
83a376b
curl cmd check for wordpress
Prateeknandle Feb 6, 2023
557aaff
adding rules
Prateeknandle Feb 6, 2023
bbb6967
handling panic
Prateeknandle Feb 6, 2023
65bdf15
handling panic
Prateeknandle Feb 7, 2023
6643130
refractor
Prateeknandle Feb 7, 2023
04b86bf
change in rule
Prateeknandle Feb 7, 2023
1d4c369
Merge branch 'dev' into smoke_test
Prateeknandle Feb 7, 2023
29322d3
adding egress rule for mysql
Prateeknandle Feb 7, 2023
34f3188
increasing executions
Prateeknandle Feb 7, 2023
ffb0282
check summary logs
Prateeknandle Feb 7, 2023
fbc75da
check summary logs
Prateeknandle Feb 7, 2023
738ad9d
check summary logs
Prateeknandle Feb 7, 2023
4cc3eb6
increasing time
Prateeknandle Feb 7, 2023
c1b4c65
adding summary tests
Prateeknandle Feb 14, 2023
ff08bcc
adding summary rules
Prateeknandle Feb 16, 2023
2a36fec
removing print for summary
Prateeknandle Feb 16, 2023
511309a
print
Prateeknandle Feb 16, 2023
23c0942
cnt print
Prateeknandle Feb 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 130 additions & 4 deletions tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,141 @@ module github.com/kubearmor/discovery-engine/tests
go 1.19

require (
github.com/onsi/ginkgo/v2 v2.6.1
github.com/accuknox/auto-policy-discovery/src v0.0.0-20230207142942-3e2adb51594b
github.com/kubearmor/KubeArmor/tests v0.0.0-20230110035627-26adfb0a0f18
github.com/onsi/ginkgo/v2 v2.7.0
github.com/onsi/gomega v1.24.2
github.com/rs/zerolog v1.28.0
k8s.io/api v0.24.3
sigs.k8s.io/yaml v1.3.0
)

require (
cloud.google.com/go/compute v1.14.0 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.22 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.17 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/cilium/cilium v1.10.14 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/go-errors/errors v1.0.1 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-openapi/analysis v0.21.1 // indirect
github.com/go-openapi/errors v0.20.1 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.6 // indirect
github.com/go-openapi/loads v0.21.0 // indirect
github.com/go-openapi/runtime v0.21.0 // indirect
github.com/go-openapi/spec v0.20.4 // indirect
github.com/go-openapi/strfmt v0.21.0 // indirect
github.com/go-openapi/swag v0.19.15 // indirect
github.com/go-openapi/validate v0.20.3 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v4 v4.1.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/btree v1.0.1 // indirect
github.com/google/go-cmp v0.5.9 // indirect
golang.org/x/net v0.4.0 // indirect
golang.org/x/sys v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/gnostic v0.5.5 // indirect
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kubearmor/KubeArmor/pkg/KubeArmorHostPolicy v0.0.0-20220823050108-4455a183e9ef // indirect
github.com/kubearmor/KubeArmor/pkg/KubeArmorPolicy v0.0.0-20220823050108-4455a183e9ef // indirect
github.com/kubearmor/KubeArmor/protobuf v0.0.0-20220815044951-425f333210e1 // indirect
github.com/kubearmor/kubearmor-client v0.8.3 // indirect
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/moby/spdystream v0.2.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
github.com/oklog/ulid v1.3.1 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.2 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.12.2 // indirect
github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a // indirect
github.com/prometheus/common v0.32.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/shirou/gopsutil/v3 v3.21.10 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.4.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.12.0 // indirect
github.com/stretchr/testify v1.7.2 // indirect
github.com/subosito/gotenv v1.4.0 // indirect
github.com/xlab/treeprint v1.0.0 // indirect
go.mongodb.org/mongo-driver v1.8.4 // indirect
go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/exp v0.0.0-20221114191408-850992195362 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/oauth2 v0.4.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/term v0.4.0 // indirect
golang.org/x/text v0.6.0 // indirect
golang.org/x/time v0.0.0-20220722155302-e5dcc9cfc0b9 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20221202195650-67e5cbc046fd // indirect
google.golang.org/grpc v1.51.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.22.3 // indirect
k8s.io/apimachinery v0.24.3 // indirect
k8s.io/cli-runtime v0.24.3 // indirect
k8s.io/client-go v11.0.0+incompatible // indirect
k8s.io/klog/v2 v2.70.1 // indirect
k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // indirect
k8s.io/kubectl v0.24.2 // indirect
k8s.io/utils v0.0.0-20220812165043-ad590609e2e5 // indirect
sigs.k8s.io/kustomize/api v0.11.4 // indirect
sigs.k8s.io/kustomize/kyaml v0.13.6 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
)

replace (
//cloud.google.com/go/compute/metadata => cloud.google.com/go/compute/metadata v0.2.3
k8s.io/api => k8s.io/api v0.22.3
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.22.3
k8s.io/apimachinery => k8s.io/apimachinery v0.22.3
k8s.io/cli-runtime => k8s.io/cli-runtime v0.22.3
k8s.io/client-go => k8s.io/client-go v0.22.3
)
Loading