Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion testing/features/network.feature
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
那么 "harbor-nodeport" 组件检查通过
并且 "harbor" 可以正常访问
"""
url: http://<node.first>:<nodeport.http>
url: http://<node.ip.first>:<nodeport.http>
timeout: 10m
"""
10 changes: 5 additions & 5 deletions testing/features/sso.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
并且 命名空间 "harbor-sso" 已存在
并且 已导入 "password" 资源: "./testdata/resources/secret-password.yaml"
并且 执行 "sso 配置" 脚本成功
| command |
| bash ./testdata/script/prepare-sso-config.sh '<config.{{.acp.baseUrl}}>' '<config.{{.acp.token}}>' '<config.{{.acp.cluster}}>' 'http://<node.first>:<nodeport.http>' |
| mkdir -p output/images |
| command |
| bash ./testdata/script/prepare-sso-config.sh '<config.{{.acp.baseUrl}}>' '<config.{{.acp.token}}>' '<config.{{.acp.cluster}}>' 'http://<node.ip.first>:<nodeport.http>' |
| mkdir -p output/images |
当 使用 helm 部署实例到 "harbor-sso" 命名空间
"""
chartPath: ../
Expand All @@ -29,12 +29,12 @@
那么 "harbor-sso" 组件检查通过
并且 "harbor" 可以正常访问
"""
url: http://<node.first>:<nodeport.http>
url: http://<node.ip.first>:<nodeport.http>
timeout: 10m
"""
并且 SSO 测试通过
"""
url: http://<node.first>:<nodeport.http>
url: http://<node.ip.first>:<nodeport.http>
acpURL: <config.{{.acp.baseUrl}}>
acpUser: <config.{{.acp.username}}>
acpPassword: <config.{{.acp.password}}>
Expand Down
14 changes: 7 additions & 7 deletions testing/features/storage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
那么 "harbor-sc" 组件检查通过
并且 "harbor" 可以正常访问
"""
url: http://<node.first>:<nodeport.http>
url: http://<node.ip.first>:<nodeport.http>
timeout: 10m
"""
并且 Pod 资源检查通过
Expand Down Expand Up @@ -51,14 +51,14 @@
那么 "harbor-hostpath" 组件检查通过
并且 "harbor" 可以正常访问
"""
url: http://<node.first>:<nodeport.http>
url: http://<node.ip.first>:<nodeport.http>
timeout: 10m
"""
并且 Pod 资源检查通过
| name | path | value |
| harbor-hostpath-registry | $.status.hostIP | <node.first> |
| harbor-hostpath-jobservice | $.status.hostIP | <node.first> |
| harbor-hostpath-trivy | $.status.hostIP | <node.first> |
| name | path | value |
| harbor-hostpath-registry | $.status.hostIP | <node.ip.first> |
| harbor-hostpath-jobservice | $.status.hostIP | <node.ip.first> |
| harbor-hostpath-trivy | $.status.hostIP | <node.ip.first> |

@automated
@priority-high
Expand All @@ -79,7 +79,7 @@
那么 "harbor-pvc" 组件检查通过
并且 "harbor" 可以正常访问
"""
url: http://<node.first>:<nodeport.http>
url: http://<node.ip.first>:<nodeport.http>
timeout: 10m
"""
并且 Pod 资源检查通过
Expand Down
56 changes: 33 additions & 23 deletions testing/go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module harbor

go 1.23.2
go 1.23.3

toolchain go1.23.4

require (
github.com/AlaudaDevops/bdd v0.0.0-20250120090058-e961a3d6775d
github.com/AlaudaDevops/bdd v0.0.0-20250219024013-3dd0b3d5817b
github.com/cucumber/godog v0.15.0
github.com/playwright-community/playwright-go v0.4901.0
go.uber.org/zap v1.27.0
Expand All @@ -17,11 +19,9 @@ require (
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200907061046-05415f1de66d // indirect
contrib.go.opencensus.io/exporter/prometheus v0.4.2 // indirect
dario.cat/mergo v1.0.1 // indirect
github.com/AlaudaDevops/pkg v0.13.1-0.20250105083155-4977a3546261 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.3.0 // indirect
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/AlaudaDevops/pkg v0.13.1-0.20250211060527-40c23b251945 // indirect
github.com/Masterminds/semver/v3 v3.3.1 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ProtonMail/go-crypto v1.1.3 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
Expand All @@ -30,12 +30,16 @@ require (
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cloudevents/sdk-go/v2 v2.15.2 // indirect
github.com/cloudflare/circl v1.3.7 // indirect
github.com/containerd/stargz-snapshotter/estargz v0.16.3 // indirect
github.com/cucumber/gherkin/go/v26 v26.2.0 // indirect
github.com/cucumber/messages/go/v21 v21.0.1 // indirect
github.com/cyphar/filepath-securejoin v0.2.5 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/davidmz/go-pageant v1.0.2 // indirect
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
github.com/docker/cli v27.5.0+incompatible // indirect
github.com/docker/distribution v2.8.3+incompatible // indirect
github.com/docker/docker-credential-helpers v0.8.2 // indirect
github.com/emicklei/go-restful/v3 v3.12.1 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
Expand All @@ -56,6 +60,7 @@ require (
github.com/go-openapi/jsonreference v0.21.0 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/go-resty/resty/v2 v2.6.0 // indirect
github.com/go-sprout/sprout v1.0.0 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/godogx/allure v0.2.4 // indirect
Expand All @@ -66,6 +71,7 @@ require (
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/go-containerregistry v0.20.3 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
Expand All @@ -76,15 +82,16 @@ require (
github.com/hashicorp/go-memdb v1.3.4 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/golang-lru v1.0.2 // indirect
github.com/huandu/xstrings v1.5.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kelseyhightower/envconfig v1.4.0 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/moby/spdystream v0.4.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand All @@ -94,6 +101,8 @@ require (
github.com/oliveagle/jsonpath v0.0.0-20180606110733-2e52cf6e6852 // indirect
github.com/onsi/ginkgo/v2 v2.20.1 // indirect
github.com/onsi/gomega v1.35.1 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0 // indirect
github.com/openzipkin/zipkin-go v0.4.3 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
Expand All @@ -104,39 +113,40 @@ require (
github.com/prometheus/procfs v0.15.1 // indirect
github.com/prometheus/statsd_exporter v0.22.7 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/skeema/knownhosts v1.3.0 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/vbatts/tar-split v0.11.6 // indirect
github.com/x448/float16 v0.8.4 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0 // indirect
go.opentelemetry.io/otel v1.28.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0 // indirect
go.opentelemetry.io/otel v1.33.0 // indirect
go.opentelemetry.io/otel/exporters/jaeger v1.17.0 // indirect
go.opentelemetry.io/otel/exporters/zipkin v1.2.0 // indirect
go.opentelemetry.io/otel/metric v1.28.0 // indirect
go.opentelemetry.io/otel/sdk v1.28.0 // indirect
go.opentelemetry.io/otel/trace v1.28.0 // indirect
go.opentelemetry.io/otel/metric v1.33.0 // indirect
go.opentelemetry.io/otel/sdk v1.33.0 // indirect
go.opentelemetry.io/otel/trace v1.33.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/crypto v0.32.0 // indirect
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect
golang.org/x/mod v0.21.0 // indirect
golang.org/x/net v0.33.0 // indirect
golang.org/x/oauth2 v0.22.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/oauth2 v0.25.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/term v0.27.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/term v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/time v0.6.0 // indirect
golang.org/x/tools v0.26.0 // indirect
golang.org/x/tools v0.29.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect
google.golang.org/api v0.183.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.35.1 // indirect
google.golang.org/protobuf v1.36.3 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand Down
Loading
Loading