Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
bad00592
Commit
bad00592
authored
Sep 19, 2016
by
Michelle Noorali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(helm): display repo remove confirmation text
parent
30036834
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
repo_add_test.go
cmd/helm/repo_add_test.go
+1
-1
repo_index_test.go
cmd/helm/repo_index_test.go
+8
-3
repo_remove.go
cmd/helm/repo_remove.go
+2
-0
No files found.
cmd/helm/repo_add_test.go
View file @
bad00592
...
...
@@ -29,7 +29,7 @@ import (
"k8s.io/helm/pkg/repo"
)
var
testName
string
=
"test-name"
var
testName
=
"test-name"
func
TestRepoAddCmd
(
t
*
testing
.
T
)
{
ts
:=
httptest
.
NewServer
(
http
.
HandlerFunc
(
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
...
...
cmd/helm/repo_index_test.go
View file @
bad00592
...
...
@@ -28,9 +28,14 @@ import (
func
TestRepoIndexCmd
(
t
*
testing
.
T
)
{
dir
,
_
:=
ioutil
.
TempDir
(
""
,
"charts"
)
dir
,
err
:=
ioutil
.
TempDir
(
""
,
"helm-"
)
if
err
!=
nil
{
t
.
Fatal
(
err
)
}
defer
os
.
RemoveAll
(
dir
)
os
.
Link
(
"testdata/testcharts/compressedChart-0.1.0.tgz"
,
filepath
.
Join
(
dir
,
"compressedChart-0.1.0.tgz"
))
if
err
:=
os
.
Link
(
"testdata/testcharts/compressedchart-0.1.0.tgz"
,
filepath
.
Join
(
dir
,
"compressedchart-0.1.0.tgz"
));
err
!=
nil
{
t
.
Fatal
(
err
)
}
buf
:=
bytes
.
NewBuffer
(
nil
)
c
:=
newRepoIndexCmd
(
buf
)
...
...
@@ -45,7 +50,7 @@ func TestRepoIndexCmd(t *testing.T) {
}
if
len
(
index
.
Entries
)
!=
1
{
t
.
Errorf
(
"expected 1 ent
ires, got %v"
,
len
(
index
.
Entries
)
)
t
.
Errorf
(
"expected 1 ent
ry, got %v: %#v"
,
len
(
index
.
Entries
),
index
.
Entries
)
}
}
cmd/helm/repo_remove.go
View file @
bad00592
...
...
@@ -83,6 +83,8 @@ func removeRepoLine(name string) error {
return
fmt
.
Errorf
(
"The repository, %s, does not exist in your repositories list"
,
name
)
}
fmt
.
Println
(
name
+
" has been removed from your repositories"
)
return
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment