Skip to content

Commit

Permalink
Unit test for CustomClusterController (#373)
Browse files Browse the repository at this point in the history
* Unit test for CustomClusterController

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>

* do some unit test for customcluster controller

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>

* do some unit test for customcluster controller
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>

* make gen

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>

* changes made to the code based on reviews

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>

---------

Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
  • Loading branch information
LiZhenCheng9527 committed Aug 21, 2023
1 parent bd5149f commit a1f972b
Show file tree
Hide file tree
Showing 3 changed files with 784 additions and 0 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ replace k8s.io/apimachinery => k8s.io/apimachinery v0.25.9

require (
github.com/Masterminds/sprig/v3 v3.2.2
github.com/agiledragon/gomonkey/v2 v2.10.1
github.com/aws/aws-sdk-go v1.44.107
github.com/awslabs/goformation/v4 v4.19.5
github.com/bramvdbogaerde/go-scp v1.2.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbt
github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE=
github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d/go.mod h1:HI8ITrYtUY+O+ZhtlqUnD8+KwNPOyugEhfP9fdUIaEQ=
github.com/agiledragon/gomonkey/v2 v2.10.1 h1:FPJJNykD1957cZlGhr9X0zjr291/lbazoZ/dmc4mS4c=
github.com/agiledragon/gomonkey/v2 v2.10.1/go.mod h1:ap1AmDzcVOAz1YpeJ3TCzIgstoaWLA6jbbgxfB4w2iY=
github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM=
github.com/ajeddeloh/go-json v0.0.0-20160803184958-73d058cf8437/go.mod h1:otnto4/Icqn88WCcM4bhIJNSgsh9VLBuspyyCfvof9c=
github.com/ajeddeloh/go-json v0.0.0-20200220154158-5ae607161559 h1:4SPQljF/GJ8Q+QlCWMWxRBepub4DresnOm4eI2ebFGc=
Expand Down

0 comments on commit a1f972b

Please sign in to comment.