Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Unified Diff: cipd/client/cipd/client_test.go

Issue 2559893003: Allow cipd manifest file to contain package name templates. (Closed)
Patch Set: Add test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cipd/client/cipd/client.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cipd/client/cipd/client_test.go
diff --git a/cipd/client/cipd/client_test.go b/cipd/client/cipd/client_test.go
index 1eb385e7d3cf84087861cfa5e5cc3780f5a56f9f..65e85365031d23f38ba9e7a11351e4068c1b1bc0 100644
--- a/cipd/client/cipd/client_test.go
+++ b/cipd/client/cipd/client_test.go
@@ -605,6 +605,16 @@ func TestProcessEnsureFile(t *testing.T) {
_, err := call(c, "pkg/a", nil)
So(err, ShouldNotBeNil)
})
+
+ Convey("ProcessEnsureFile template package", t, func(c C) {
+ pins, _ := call(c, "something/${platform}-${arch} 0000000000000000000000000000000000000000", nil)
+ So(pins, ShouldResemble, []common.Pin{
+ {
+ fmt.Sprintf("something/%s-%s", platformExpansion, archExpansion),
+ "0000000000000000000000000000000000000000",
+ },
+ })
+ })
}
func TestListPackages(t *testing.T) {
« no previous file with comments | « cipd/client/cipd/client.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698