-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: enhance Redis controllers' test cases with testdata and validat…
…ion checks (#1181) * test: enhance Redis controllers' test cases with testdata and validation checks - Updated Redis, RedisCluster, RedisReplication, and RedisSentinel controller tests to utilize YAML testdata files for improved clarity and maintainability. - Added validation checks for resource creation, owner references, and specifications in the respective test cases. - Introduced new testdata files for Redis and RedisCluster to streamline test setup and ensure consistent testing across different configurations. - Enhanced error handling and logging for better debugging during test execution. This update improves the robustness and reliability of the Redis operator's testing framework. Signed-off-by: drivebyer <[email protected]> * fix lint Signed-off-by: yangw <[email protected]> --------- Signed-off-by: drivebyer <[email protected]> Signed-off-by: yangw <[email protected]>
- Loading branch information
Showing
8 changed files
with
486 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
apiVersion: redis.redis.opstreelabs.in/v1beta2 | ||
kind: Redis | ||
metadata: | ||
name: redis-standalone | ||
spec: | ||
podSecurityContext: | ||
runAsUser: 1000 | ||
fsGroup: 1000 | ||
kubernetesConfig: | ||
image: quay.io/opstree/redis:v7.0.12 | ||
imagePullPolicy: IfNotPresent | ||
resources: | ||
requests: | ||
cpu: 101m | ||
memory: 128Mi | ||
limits: | ||
cpu: 101m | ||
memory: 128Mi | ||
redisExporter: | ||
enabled: true | ||
image: quay.io/opstree/redis-exporter:v1.44.0 | ||
imagePullPolicy: Always | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 100m | ||
memory: 128Mi | ||
storage: | ||
volumeClaimTemplate: | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
resources: | ||
requests: | ||
storage: 1Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.