Skip to content

Commit

Permalink
fix: fix unit test error
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Oct 23, 2023
1 parent 8bebe7a commit ced080d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pkg/artifacts/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestDownloadCharts(t *testing.T) {
}{
{GreptimeDBClusterChartName, "latest", ArtifactTypeChart, false},
{GreptimeDBOperatorChartName, "latest", ArtifactTypeChart, false},
{GreptimeDBClusterChartName, "0.1.1-alpha.13", ArtifactTypeChart, false},
{GreptimeDBClusterChartName, "0.1.2", ArtifactTypeChart, false},
{GreptimeDBOperatorChartName, "0.1.1-alpha.12", ArtifactTypeChart, false},
{EtcdChartName, DefaultEtcdChartVersion, ArtifactTypeChart, false},
}
Expand Down Expand Up @@ -94,7 +94,7 @@ func TestDownloadChartsFromCNRegion(t *testing.T) {
}{
{GreptimeDBClusterChartName, LatestVersionTag, ArtifactTypeChart, true},
{GreptimeDBOperatorChartName, LatestVersionTag, ArtifactTypeChart, true},
{GreptimeDBClusterChartName, "0.1.1-alpha.13", ArtifactTypeChart, true},
{GreptimeDBClusterChartName, "0.1.2", ArtifactTypeChart, true},
{GreptimeDBOperatorChartName, "0.1.1-alpha.12", ArtifactTypeChart, true},
{EtcdChartName, DefaultEtcdChartVersion, ArtifactTypeChart, true},
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/helm/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestLoadAndRenderChart(t *testing.T) {
ReleaseName: "gtctl-ut",
Namespace: "default",
ChartName: artifacts.GreptimeDBClusterChartName,
ChartVersion: artifacts.LatestVersionTag,
ChartVersion: "0.1.2",
FromCNRegion: false,
ValuesOptions: deployer.CreateGreptimeDBClusterOptions{
ImageRegistry: "registry.cn-hangzhou.aliyuncs.com",
Expand Down
9 changes: 5 additions & 4 deletions pkg/helm/testdata/db-manifests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Source: greptimedb/templates/cluster.yaml
# Source: greptimedb-cluster/templates/cluster.yaml
apiVersion: greptime.io/v1alpha1
kind: GreptimeDBCluster
metadata:
Expand All @@ -8,7 +8,7 @@ metadata:
spec:
base:
main:
image: 'registry.cn-hangzhou.aliyuncs.com/greptime/greptimedb:v0.4.0'
image: 'registry.cn-hangzhou.aliyuncs.com/greptime/greptimedb:v0.4.1'
resources:
limits:
cpu: 500m
Expand All @@ -21,19 +21,20 @@ spec:
meta:
replicas: 3
etcdEndpoints:
- 127.0.0.1:2379
- etcd.default.svc.cluster.local:2379
datanode:
replicas: 3
storage:
storageClassName: ebs-sc
storageSize: 11Gi
storageRetainPolicy: Delete
walDir: /tmp/greptimedb/wal
httpServicePort: 4000
grpcServicePort: 4001
mysqlServicePort: 4002
postgresServicePort: 4003
openTSDBServicePort: 4242
initializer:
image: 'registry.cn-hangzhou.aliyuncs.com/greptime/greptimedb-initializer:0.1.0-alpha.16'
image: 'registry.cn-hangzhou.aliyuncs.com/greptime/greptimedb-initializer:0.1.0-alpha.17'
storage:
{}

0 comments on commit ced080d

Please sign in to comment.