mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-04 09:08:51 +00:00
internal/utils: Add unit tests
Add unit tests for various utils functions. Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
parent
0ae39d5a0a
commit
1257b9cbc8
4 changed files with 196 additions and 6 deletions
17
internal/utils/testdata/components-without-crds.yaml
vendored
Normal file
17
internal/utils/testdata/components-without-crds.yaml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: flux-system
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: kustomize-controller
|
||||
namespace: flux-system
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: notification-controller
|
||||
namespace: flux-system
|
||||
Loading…
Add table
Add a link
Reference in a new issue