File: fix-test-fixture-locations.patch

package info (click to toggle)
golang-github-aanand-compose-file 0.0~git20161122.0.a3e5876-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 604 kB
  • ctags: 567
  • sloc: makefile: 12; sh: 9
file content (37 lines) | stat: -rw-r--r-- 1,429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Index: golang-github-aanand-compose-file/loader/loader_test.go
===================================================================
--- golang-github-aanand-compose-file.orig/loader/loader_test.go
+++ golang-github-aanand-compose-file/loader/loader_test.go
@@ -21,7 +21,7 @@ func buildConfigDetails(source types.Dic
 	return types.ConfigDetails{
 		WorkingDir: workingDir,
 		ConfigFiles: []types.ConfigFile{
-			{Filename: "filename.yml", Config: source},
+			{Filename: "../../../../../../loader/filename.yml", Config: source},
 		},
 		Environment: nil,
 	}
@@ -536,7 +536,7 @@ func uint64Ptr(value uint64) *uint64 {
 }
 
 func TestFullExample(t *testing.T) {
-	bytes, err := ioutil.ReadFile("full-example.yml")
+	bytes, err := ioutil.ReadFile("../../../../../../loader/full-example.yml")
 	assert.NoError(t, err)
 
 	config, err := loadYAML(string(bytes))
Index: golang-github-aanand-compose-file/loader/full-example.yml
===================================================================
--- golang-github-aanand-compose-file.orig/loader/full-example.yml
+++ golang-github-aanand-compose-file/loader/full-example.yml
@@ -70,8 +70,8 @@ services:
     # String or list
     # env_file: .env
     env_file:
-      - ./example1.env
-      - ./example2.env
+      - ../../../../../../loader/example1.env
+      - ../../../../../../loader/example2.env
 
     # Mapping or list
     # Mapping values can be strings, numbers or null