summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/go/cmd/clone_list.go2
-rw-r--r--client/go/cmd/clone_list_test.go3
-rw-r--r--client/go/cmd/testdata/sample-apps-operations.json18
3 files changed, 21 insertions, 2 deletions
diff --git a/client/go/cmd/clone_list.go b/client/go/cmd/clone_list.go
index 4bcf65500c9..ac302844920 100644
--- a/client/go/cmd/clone_list.go
+++ b/client/go/cmd/clone_list.go
@@ -66,7 +66,7 @@ func isApp(rf repositoryFile) (ok bool, follow bool) {
return false, false
}
switch rf.Path {
- case "news", "vespa-cloud":
+ case "news", "operations", "vespa-cloud":
return false, true
}
return true, false
diff --git a/client/go/cmd/clone_list_test.go b/client/go/cmd/clone_list_test.go
index 846ad1a90e3..9ef4be47c9c 100644
--- a/client/go/cmd/clone_list_test.go
+++ b/client/go/cmd/clone_list_test.go
@@ -13,6 +13,7 @@ func TestListSampleApps(t *testing.T) {
c := &mockHttpClient{}
c.NextResponse(200, readTestData(t, "sample-apps-contents.json"))
c.NextResponse(200, readTestData(t, "sample-apps-news.json"))
+ c.NextResponse(200, readTestData(t, "sample-apps-operations.json"))
c.NextResponse(200, readTestData(t, "sample-apps-vespa-cloud.json"))
util.ActiveHttpClient = c
@@ -37,7 +38,7 @@ func TestListSampleApps(t *testing.T) {
"news/app-5-recommendation",
"news/app-6-recommendation-with-searchers",
"news/app-7-parent-child",
- "operations",
+ "operations/multinode",
"part-purchases-demo",
"secure-vespa-with-mtls",
"semantic-qa-retrieval",
diff --git a/client/go/cmd/testdata/sample-apps-operations.json b/client/go/cmd/testdata/sample-apps-operations.json
new file mode 100644
index 00000000000..9dc4fb39ddb
--- /dev/null
+++ b/client/go/cmd/testdata/sample-apps-operations.json
@@ -0,0 +1,18 @@
+[
+ {
+ "name": "multinode",
+ "path": "operations/multinode",
+ "sha": "faa2b5bf9fa6fc7314708341e2ad91211986d681",
+ "size": 0,
+ "url": "https://api.github.com/repos/vespa-engine/sample-apps/contents/operations/multinode?ref=master",
+ "html_url": "https://github.com/vespa-engine/sample-apps/tree/master/operations/multinode",
+ "git_url": "https://api.github.com/repos/vespa-engine/sample-apps/git/trees/faa2b5bf9fa6fc7314708341e2ad91211986d681",
+ "download_url": null,
+ "type": "dir",
+ "_links": {
+ "self": "https://api.github.com/repos/vespa-engine/sample-apps/contents/operations/multinode?ref=master",
+ "git": "https://api.github.com/repos/vespa-engine/sample-apps/git/trees/faa2b5bf9fa6fc7314708341e2ad91211986d681",
+ "html": "https://github.com/vespa-engine/sample-apps/tree/master/operations/multinode"
+ }
+ }
+]