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

Unified Diff: luci_config/server/cfgclient/naming_test.go

Issue 2580713002: Implement a server-side config service interface. (Closed)
Patch Set: Renamed, moved to luci_config package, fixes, split out backends. Created 3 years, 11 months 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 | « luci_config/server/cfgclient/naming.go ('k') | luci_config/server/cfgclient/resolver.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: luci_config/server/cfgclient/naming_test.go
diff --git a/luci_config/server/cfgclient/naming_test.go b/luci_config/server/cfgclient/naming_test.go
new file mode 100644
index 0000000000000000000000000000000000000000..aa5c3bc94cff84fcba255a59586d61d2a37f6694
--- /dev/null
+++ b/luci_config/server/cfgclient/naming_test.go
@@ -0,0 +1,27 @@
+// Copyright 2016 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+package cfgclient
+
+import (
+ "testing"
+
+ "github.com/luci/gae/impl/memory"
+
+ "golang.org/x/net/context"
+
+ . "github.com/smartystreets/goconvey/convey"
+)
+
+func TestServiceConfigSet(t *testing.T) {
+ t.Parallel()
+
+ Convey(`With a testing AppEngine context`, t, func() {
+ c := memory.Use(context.Background())
+
+ Convey(`Can get the current service config set.`, func() {
+ So(CurrentServiceConfigSet(c), ShouldEqual, "services/app")
+ })
+ })
+}
« no previous file with comments | « luci_config/server/cfgclient/naming.go ('k') | luci_config/server/cfgclient/resolver.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698