8000 Renamed scheme to tcp · symfony-cli/symfony-cli@3fbf448 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fbf448

Browse files
committed
Renamed scheme to tcp
1 parent b04f734 commit 3fbf448

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

envs/docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ func (l *Local) dockerServiceToRelationship(client *docker.Client, container typ
461461
} else if p.PrivatePort == 443 || p.PrivatePort == 8443 {
462462
rels[""]["scheme"] = "https"
463463
} else {
464-
rels[""]["scheme"] = "undefined"
464+
rels[""]["scheme"] = "tcp"
465465
}
466466
return rels
467467
}

envs/envs_test.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -70,27 +70,6 @@ func (f fakeEnv) Local() bool {
7070
return true
7171
}
7272

73-
func (s *ScenvSuite) TestGenericContainerExposesHostAndPort(c *C) {
74-
env := fakeEnv{
75-
Rels: map[string][]map[string]interface{}{
76-
"container": {
77-
map[string]interface{}{
78-
"host": "localhost",
79-
"ip": "127.0.0.1",
80-
"port": 9200,
81-
"rel": "simple",
82-
"scheme": "undefined",
83-
},
84-
},
85-
},
86-
}
87-
88-
rels := extractRelationshipsEnvs(env)
89-
c.Assert(rels["CONTAINER_HOST"], Equals, "localhost")
90-
c.Assert(rels["CONTAINER_PORT"], Equals, "9200")
91-
c.Assert(rels["CONTAINER_IP"], Equals, "127.0.0.1")
92-
}
93-
9473
func (s *ScenvSuite) TestElasticsearchURLEndsWithTrailingSlash(c *C) {
9574
env := fakeEnv{
9675
Rels: map[string][]map[string]interface{}{

0 commit comments

Comments
 (0)
0