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

Filtering get topology count for specific sc key #98

Open
wants to merge 188 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
1725da2
Fixing multi-driver-capacity-tracking and adding UT
sakshi-garg1 Nov 14, 2024
c3b536e
Updated year in copyright section
sakshi-garg1 Nov 14, 2024
5c8283a
Update to fix lint warnings
sakshi-garg1 Nov 14, 2024
3dfa8b1
gofumpt lint fix
aqu-dell Nov 14, 2024
687bd80
adding tests logger_test
aqu-dell Nov 14, 2024
c1f1dd2
test: cover if part to increase unit test coverage
samihan-dell Nov 15, 2024
77ff322
updating dir to use getenv
aqu-dell Nov 15, 2024
86d29ad
add coverage for functional test suite
satyakonduri Nov 18, 2024
55b9a74
test: Added UTs for Delete and DeleteAll methods
samihan-dell Nov 18, 2024
a1da721
update unit test for pkg/k8sclient/resources/va
niranjan-n1 Nov 18, 2024
936fcc3
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
niranjan-n1 Nov 18, 2024
5117acb
test: Added UTs for ReadyPodsCount and WaitForAllToBeReady methods
samihan-dell Nov 18, 2024
22a0990
adding tests to store_test
aqu-dell Nov 18, 2024
3526b3a
adding more fake_param tests
aqu-dell Nov 18, 2024
5166733
additional test for fake-param
aqu-dell Nov 18, 2024
ade1181
added UT for functional collector
chaganti-rajitha Nov 19, 2024
9c58699
Add UT's for functional test suites
satyakonduri Nov 19, 2024
d69514f
updated va_test.go
niranjan-n1 Nov 19, 2024
3d750f9
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
niranjan-n1 Nov 19, 2024
cb10730
increased UT coverage for reporter/functional-reporter.go to 80%
arunbalaji-dell Nov 19, 2024
a37976e
added additional comments to TestGenerateFunctionalReport method
arunbalaji-dell Nov 19, 2024
1ab2bc0
added test for GetResultStatus
arunbalaji-dell Nov 19, 2024
8404e88
increased UT coverage for reporter package to 77.3%
arunbalaji-dell Nov 19, 2024
0a6f0b1
increased UT coverage of tools.go to 75%
arunbalaji-dell Nov 19, 2024
ed2edd4
add helm suites coverage
satyakonduri Nov 19, 2024
14b2feb
Merge branch 'multi-driver-capacity-tracking' of github.com:dell/cert…
satyakonduri Nov 19, 2024
4f66c71
Increased UT code coverage for tools.go to 81.2% in reporter pkg
arunbalaji-dell Nov 19, 2024
428d99c
increased UT coverage for xml-reporter.go to 60% for pkg/reporter
arunbalaji-dell Nov 19, 2024
5775f8c
adding unit tests for util
aqu-dell Nov 19, 2024
9806a74
adding xml files
aqu-dell Nov 19, 2024
0b649b4
increased code coverage for table-reporter.go
arunbalaji-dell Nov 19, 2024
85e2737
increased UT code coverage for table-reporter.go to 48.8%
arunbalaji-dell Nov 19, 2024
fc30c24
Address failed tests
satyakonduri Nov 20, 2024
9f15f12
add UT's for GetClients
satyakonduri Nov 20, 2024
81488bc
updated va_test.go and increased the code coverage
niranjan-n1 Nov 20, 2024
a895d0a
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
niranjan-n1 Nov 20, 2024
abd496a
Added UT for perf-suites.go and coverage is now 9.2%
chaganti-rajitha Nov 20, 2024
c81df75
fixing directory in test
aqu-dell Nov 20, 2024
d15f076
increased code coverage for xml-reporter.go from 60%-80%
arunbalaji-dell Nov 20, 2024
d281ff2
increased UT coverage for table-reporter.go to 66.7%
arunbalaji-dell Nov 20, 2024
ee801cc
Increased UT coverage for table-reporter.go in pkg/repoorter to 82.1%
arunbalaji-dell Nov 20, 2024
40f5cc4
increased code coverage for reporter.go to 67.8% in pkg/reporter
arunbalaji-dell Nov 20, 2024
f72ddcd
Increased code coverage for reporter.go to 77.1%
arunbalaji-dell Nov 20, 2024
efc054d
Increased UT coverage for text-reporter.go to 74.1%
arunbalaji-dell Nov 20, 2024
ad39ee2
Increased UT coverage for reporter.go to 89.0%
arunbalaji-dell Nov 21, 2024
2b4f406
commented out test with strange results in xml-reporter.go
arunbalaji-dell Nov 21, 2024
eb67c39
removed unused tests in reporter_test.go and cleaned up some comments
arunbalaji-dell Nov 21, 2024
f10e0f7
added function headers and removed uneccessary documentation
arunbalaji-dell Nov 21, 2024
49c6168
adding run test for helm-suites
aqu-dell Nov 21, 2024
3804614
added UT in perf-suite.go and UT now is at 13.3%
chaganti-rajitha Nov 21, 2024
52d92e9
updated unit test coverage for function_Suite
niranjan-n1 Nov 21, 2024
3b3c732
test: Added UTs for some methods
samihan-dell Nov 21, 2024
36d3baf
test: Added UT for MakeEphemeralPod method
samihan-dell Nov 21, 2024
8caa038
Increased UT code coverage for perf-suites.go to 8.2%
arunbalaji-dell Nov 21, 2024
f0fd079
Increased test coverage to 9.9%
arunbalaji-dell Nov 21, 2024
09dcddd
Adding getClients
aqu-dell Nov 22, 2024
cd6e868
commenting out failing test
aqu-dell Nov 22, 2024
6604a5e
test: Updated test cases to cover HasError method
samihan-dell Nov 22, 2024
7dfcc19
updated functional_suites_test.go
niranjan-n1 Nov 22, 2024
3390d35
test: Updated test cases to coverage for pod package from 45% to 56%
samihan-dell Nov 22, 2024
4ad66e7
Added UT in perf-suites
chaganti-rajitha Nov 22, 2024
8d0835c
Increased UT coverage for perf-suites.go to 14.8%
arunbalaji-dell Nov 22, 2024
94e0c96
adding unit tests for sc
aqu-dell Nov 22, 2024
0e15dff
test: updated test for TestNodeDrainSuite_Run
samihan-dell Nov 25, 2024
33625a3
test: Removed commented testcases
samihan-dell Nov 25, 2024
64b4439
fix lint issues
samihan-dell Nov 25, 2024
d9ff3e5
removing sc-test
aqu-dell Nov 25, 2024
c7e4669
adding tests for create clients
aqu-dell Nov 25, 2024
96ac18a
test: Added UTs for pkg\k8sclient\core.go coverage increased from 57.…
samihan-dell Nov 26, 2024
64ef024
fix: fixing linting issues
samihan-dell Nov 26, 2024
17b8721
test: Added UTs for SnapshotClassExists method in pkg\k8sclient\core.…
samihan-dell Nov 26, 2024
867bfbd
Added UT for pod.go increased coverage from 56.3 to 65.5%
chaganti-rajitha Nov 26, 2024
d609989
Fixed lint issue
chaganti-rajitha Nov 26, 2024
8430605
test: Added UTs for SetTimeout method in pkg\k8sclient\core.go and co…
samihan-dell Nov 26, 2024
e56b15d
updated pod_test.go
niranjan-n1 Nov 26, 2024
596d0a7
Merge branch 'multi-driver-capacity-tracking
niranjan-n1 Nov 26, 2024
048d25a
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
niranjan-n1 Nov 26, 2024
d1a38ab
updated pod_test.go
niranjan-n1 Nov 26, 2024
73e0450
updated pod_test.go
niranjan-n1 Nov 26, 2024
6208cdb
fixed lint issue
niranjan-n1 Nov 26, 2024
1b0cf9b
test: Added UTs for GetConfig function in pkg\k8sclient\core.go and c…
samihan-dell Nov 26, 2024
5971230
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
samihan-dell Nov 26, 2024
e605351
adding blocksnapsuiterun
aqu-dell Nov 26, 2024
0c59eb5
comment fix
aqu-dell Nov 26, 2024
e41213b
reverting sc change
aqu-dell Nov 27, 2024
3f16ed9
updated pod test and perf suites
niranjan-n1 Dec 3, 2024
13fc537
gofumpt updates for golint
mbasha-dell Dec 3, 2024
0f55e6b
adding additional coverage for run functions
aqu-dell Dec 4, 2024
7ff6356
Increased functional suite from 49.8 to 54.2
panigs7 Dec 6, 2024
3b50ce1
Resolving lint issue
panigs7 Dec 6, 2024
e544df5
updated pod_test coverage to 72.9%
niranjan-n1 Dec 6, 2024
ba797a1
adding unit tests
bjiang27 Dec 7, 2024
be95314
fix lint issues
bjiang27 Dec 7, 2024
e88c0b1
increased pod_test coverage
niranjan-n1 Dec 9, 2024
5019860
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
niranjan-n1 Dec 9, 2024
be1220e
Update UT coverage
WilsonRadadia20 Dec 9, 2024
ae72996
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
WilsonRadadia20 Dec 9, 2024
c4b3a53
increased the pod package coverage to pod_test.go to 75.9%
niranjan-n1 Dec 9, 2024
b9556a8
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
niranjan-n1 Dec 9, 2024
6453806
commenting out failing tests
aqu-dell Dec 9, 2024
5503720
updated coverage for pods_test.go
niranjan-n1 Dec 10, 2024
dfa23da
test: added test for WaitUntilGone
samihan-dell Dec 10, 2024
310a4b9
fixed lint issue
niranjan-n1 Dec 10, 2024
e1556fa
adding fake restclient
aqu-dell Dec 10, 2024
757f5cf
Increased UT coverage
WilsonRadadia20 Dec 16, 2024
911d53d
Increased UT coverage
WilsonRadadia20 Dec 17, 2024
0c3e111
Merge remote-tracking branch 'origin/main' into multi-driver-capacity…
aqu-dell Jan 24, 2025
dbbf6fe
commenting out failing tests
aqu-dell Jan 24, 2025
cecfced
adding unit test
bjiang27 Jan 28, 2025
32b2836
fix lint issues
bjiang27 Jan 28, 2025
ae545a2
update unit test
bjiang27 Jan 29, 2025
22f10e4
test changes for blocksnap mockserver
aqu-dell Jan 29, 2025
79e1a16
Use a fake remote executor for testing
tdawe Jan 30, 2025
dadb45f
removing mockserver references
aqu-dell Feb 5, 2025
4aa1577
removing extra changes
aqu-dell Feb 5, 2025
7821fd9
Merge branch 'multi-driver-capacity-tracking-blocksnap-suite' into mu…
aqu-dell Feb 5, 2025
748a5c4
Remote replication provisioning run test (#144)
mbasha-dell Feb 6, 2025
8126ea1
UT coverage
meggm Feb 7, 2025
82dde74
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
meggm Feb 7, 2025
d2dbc4b
UT coverage
meggm Feb 8, 2025
3d6bf0d
UT coverage
meggm Feb 8, 2025
aff4b9f
code coverage added for node.go
gilltaran Feb 10, 2025
c144f6c
Code coverage for pv.go
sidharth30060 Feb 10, 2025
08200fd
Merge remote-tracking branch 'origin/multi-driver-capacity-tracking' …
sidharth30060 Feb 10, 2025
9a2812b
UT coverage
meggm Feb 10, 2025
c86d602
Merge remote-tracking branch 'origin/multi-driver-capacity-tracking' …
sidharth30060 Feb 10, 2025
ee247e1
UT coverage
meggm Feb 10, 2025
790451c
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
meggm Feb 10, 2025
6e95c7e
Add Snap_Suite test
abhi16394 Feb 10, 2025
eb91dfa
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
abhi16394 Feb 10, 2025
b90af10
adding fake snap client
aqu-dell Feb 11, 2025
728c5a6
UT coverage
meggm Feb 11, 2025
a659ce5
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
meggm Feb 11, 2025
94cf901
UT coverage
meggm Feb 11, 2025
12cf2c7
UT coverage
meggm Feb 11, 2025
ea003a5
UT coverage
meggm Feb 11, 2025
c66c2df
UT coverage
meggm Feb 11, 2025
51e9428
Updated coverage for replicationgroup package
harishp8889 Feb 11, 2025
90da52d
Merge remote-tracking branch 'origin/multi-driver-capacity-tracking' …
harishp8889 Feb 11, 2025
394fc97
coverage update
harishp8889 Feb 11, 2025
e4d6b7d
coverage update
harishp8889 Feb 11, 2025
7f16715
Update VolumeCreation Run
Sahiba-Gupta Feb 11, 2025
8d758bc
coverage update
harishp8889 Feb 11, 2025
c8f363c
Merge remote-tracking branch 'origin/multi-driver-capacity-tracking' …
harishp8889 Feb 11, 2025
883cbe1
vet fix
harishp8889 Feb 11, 2025
edcdb13
comment Snap-Suite test
abhi16394 Feb 11, 2025
497bd86
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
abhi16394 Feb 11, 2025
f2f18ba
changed kube config reference in remotereplicationprovisioningsuite_run
mbasha-dell Feb 11, 2025
d5d835a
Added unit tests for VolumeIO
jackieung-dell Feb 11, 2025
9f76b9c
adding unit test
bjiang27 Feb 11, 2025
e22aae9
Update VolumeCreation Run
Sahiba-Gupta Feb 11, 2025
695d6f1
Updated code for linting
jackieung-dell Feb 11, 2025
d7f20f0
Increased functional-suites coverage from 54.0 to 55.6
santhoshatdell Feb 11, 2025
76ba86f
UT coverage
meggm Feb 12, 2025
c2dcdd9
UT coverage
meggm Feb 12, 2025
b94230e
pv.go coverage
sidharth30060 Feb 12, 2025
b968e8d
Merge remote-tracking branch 'origin/multi-driver-capacity-tracking' …
sidharth30060 Feb 12, 2025
44b917b
UT coverage
meggm Feb 12, 2025
71cd0bb
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
meggm Feb 12, 2025
0e6b3a6
Updated coverage for main.go
harishp8889 Feb 12, 2025
f1add2f
Merge remote-tracking branch 'origin/multi-driver-capacity-tracking' …
harishp8889 Feb 12, 2025
4d6b47c
Updated coverage for commonparams
harishp8889 Feb 12, 2025
e3ad899
Updated coverage for commonparams
harishp8889 Feb 13, 2025
9890686
UT coverage
meggm Feb 13, 2025
bdbc4b3
Updated coverage for k8s-utils
harishp8889 Feb 13, 2025
c960a13
Merge remote-tracking branch 'origin/multi-driver-capacity-tracking' …
harishp8889 Feb 13, 2025
2c146d6
Multi driver capacity tracking vol expansion run (#146)
mbasha-dell Feb 13, 2025
4024853
commented out nonblock volume expansion test to get suite running
mbasha-dell Feb 13, 2025
6ad9883
UT coverage
meggm Feb 13, 2025
e16483b
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
meggm Feb 13, 2025
cd96d90
UT coverage
meggm Feb 13, 2025
12934b6
Updated coverage for k8s-utils
harishp8889 Feb 13, 2025
32e6b32
Snap_suite test
abhi16394 Feb 13, 2025
099e1a5
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
abhi16394 Feb 13, 2025
3db3c2f
Updated GetClient function
jackieung-dell Feb 13, 2025
94655d4
added back vol expansion non block test
mbasha-dell Feb 13, 2025
7f22b53
removed failing tests
harishp8889 Feb 14, 2025
5c5ee63
Merge remote-tracking branch 'origin/multi-driver-capacity-tracking' …
harishp8889 Feb 14, 2025
338280d
fixed lint issues
harishp8889 Feb 14, 2025
09cd250
updated tests for certify
harishp8889 Feb 14, 2025
793a92f
lint fix
harishp8889 Feb 14, 2025
fa4ad8d
Merge branch 'multi-driver-capacity-tracking' of https://github.com/d…
harishp8889 Feb 14, 2025
f13460d
Created test case that covers more code in the nested for loop
jackieung-dell Feb 14, 2025
d8ac7e1
Helm client.go coverage
sidharth30060 Feb 17, 2025
eb157b7
UT coverage
meggm Feb 17, 2025
be762e7
updated tests for certify
harishp8889 Feb 17, 2025
d9aef24
Refactored volume migration suite
harishp8889 Feb 17, 2025
bf0aeff
changing names of podrestored in bss
aqu-dell Feb 18, 2025
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
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.idea
*.out
*.db
*.db-*
coverage_results.txt
*.log
*.test
*.tar.gz
bin
1 change: 0 additions & 1 deletion cmd/cert-csi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,4 @@ func main() {
if err != nil {
log.Fatal(err)
}
os.Exit(0)
}
62 changes: 62 additions & 0 deletions cmd/cert-csi/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package main

import (
log "github.com/sirupsen/logrus"

Check failure on line 4 in cmd/cert-csi/main_test.go

View workflow job for this annotation

GitHub Actions / Golang Validation / Lint golang code

File is not properly formatted (gofumpt)
"github.com/urfave/cli"
"os"
"testing"

Check failure on line 7 in cmd/cert-csi/main_test.go

View workflow job for this annotation

GitHub Actions / Golang Validation / Lint golang code

File is not properly formatted (gofumpt)
)

func TestBefore(t *testing.T) {
// Test case: Enable debugging level of logs
app := cli.NewApp()
app.Before = func(c *cli.Context) error {
if c.Bool("debug") {
log.SetLevel(log.DebugLevel)
}
return nil
}
app.Flags = []cli.Flag{
cli.BoolFlag{
Name: "debug, d",
},
}
app.Run([]string{"app", "--debug"})
if log.GetLevel() != log.DebugLevel {
t.Errorf("Log level was not set to debug")
}

// Test case: Enable quiet level of logs
app.Before = func(c *cli.Context) error {
if c.Bool("quiet") {
log.SetLevel(log.PanicLevel)
}
return nil
}
app.Run([]string{"app", "--quiet"})
}

func TestStartApp(t *testing.T) {
setUp := func() {
log.SetLevel(log.PanicLevel)
tearDown := func() {
log.SetLevel(log.InfoLevel)
}
defer tearDown()
}
setUp()

// mock args for testing
if len(os.Args) >= 1 {
os.Args = []string{"app", "--debug"}
}
main()

t.Run("quiet mode", func(t *testing.T) {

Check failure on line 55 in cmd/cert-csi/main_test.go

View workflow job for this annotation

GitHub Actions / Golang Validation / Lint golang code

unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
// mock args for testing
if len(os.Args) >= 1 {
os.Args = []string{"app", "--quiet"}
}
main()
})
}
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ require (
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/cobra v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
Expand Down
Loading