Skip to content

Commit f966364

Browse files
committed
Merge remote-tracking branch 'origin/master' into feat/oci-download
2 parents ef5b0f1 + 3a9bde8 commit f966364

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+8130
-1704
lines changed

cmd/extension.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type extensionOption struct {
3535
os string
3636
arch string
3737
timeout time.Duration
38+
imagePrefix string
3839
}
3940

4041
func createExtensionCommand(ociDownloader downloader.PlatformAwareOCIDownloader) (c *cobra.Command) {
@@ -55,13 +56,15 @@ func createExtensionCommand(ociDownloader downloader.PlatformAwareOCIDownloader)
5556
flags.StringVarP(&opt.os, "os", "", runtime.GOOS, "The OS")
5657
flags.StringVarP(&opt.arch, "arch", "", runtime.GOARCH, "The architecture")
5758
flags.DurationVarP(&opt.timeout, "timeout", "", time.Minute, "The timeout of downloading")
59+
flags.StringVarP(&opt.imagePrefix, "image-prefix", "", "linuxsuren", "The prefix for the image address")
5860
return
5961
}
6062

6163
func (o *extensionOption) runE(cmd *cobra.Command, args []string) (err error) {
6264
o.ociDownloader.WithOS(o.os)
6365
o.ociDownloader.WithArch(o.arch)
6466
o.ociDownloader.WithRegistry(o.registry)
67+
o.ociDownloader.WithImagePrefix(o.imagePrefix)
6568
o.ociDownloader.WithTimeout(o.timeout)
6669
o.ociDownloader.WithContext(cmd.Context())
6770

cmd/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import (
4242
"github.com/linuxsuren/api-testing/pkg/downloader"
4343
"github.com/linuxsuren/api-testing/pkg/logging"
4444
"github.com/linuxsuren/api-testing/pkg/mock"
45+
atestoauth "github.com/linuxsuren/api-testing/pkg/oauth"
4546
template "github.com/linuxsuren/api-testing/pkg/render"
4647
"github.com/linuxsuren/api-testing/pkg/server"
4748
"github.com/linuxsuren/api-testing/pkg/service"
@@ -50,7 +51,6 @@ import (
5051
"github.com/linuxsuren/api-testing/pkg/testing/remote"
5152
"github.com/linuxsuren/api-testing/pkg/util"
5253
fakeruntime "github.com/linuxsuren/go-fake-runtime"
53-
atestoauth "github.com/linuxsuren/api-testing/pkg/oauth"
5454
"github.com/linuxsuren/oauth-hub"
5555

5656
"github.com/prometheus/client_golang/prometheus"
@@ -469,7 +469,7 @@ func debugHandler(mux *runtime.ServeMux, remoteServer server.RunnerServer) {
469469
Name: sub,
470470
})
471471
if err == nil {
472-
w.Header().Set("Content-Type", "application/octet-stream")
472+
w.Header().Set(util.ContentType, "application/octet-stream")
473473
w.Write(data.Data)
474474
} else {
475475
w.WriteHeader(http.StatusBadRequest)

console/atest-ui/package-lock.json

Lines changed: 93 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

console/atest-ui/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
},
1818
"dependencies": {
1919
"@vueuse/core": "^10.11.0",
20+
"codemirror": "^5.65.17",
21+
"diff-match-patch": "^1.0.5",
2022
"element-plus": "^2.3.7",
2123
"intro.js": "^7.0.1",
2224
"jsonlint-mod": "^1.7.6",
2325
"jsonpath-plus": "^7.2.0",
2426
"skywalking-client-js": "^0.10.0",
2527
"vue": "^3.3.4",
26-
"vue-codemirror": "^6.1.1",
28+
"vue-codemirror": "^5.1.0",
2729
"vue-i18n": "^9.2.2",
2830
"vue-json-viewer": "^3.0.4",
2931
"vue-router": "^4.2.2"

0 commit comments

Comments
 (0)