MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / TestCoreOSVersion

Function TestCoreOSVersion

datasource/etcd_datasource_test.go:8–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestCoreOSVersion(t *testing.T) {
9 ds, err := ForTest(nil)
10 if err != nil {
11 t.Error("error in getting a DataSource instance for our test:", err)
12 return
13 }
14
15 version, err := ds.GetClusterVariable("coreos-version")
16 if err != nil {
17 t.Error("error while getting coreos version:", err)
18 }
19
20 if version != "1068.2.0" {
21 t.Error("invalid coreos version")
22 }
23}
24
25func TestEtcdMembers(t *testing.T) {
26 ds, err := ForTest(nil)

Callers

nothing calls this directly

Calls 2

ForTestFunction · 0.85
GetClusterVariableMethod · 0.65

Tested by

no test coverage detected