@@ -51,9 +51,11 @@ func TestInstall_fileParam(t *testing.T) {
51
51
p .TestConfig .TestContext .AddTestFile (filepath .Join (p .TestDir , "testdata/bundle-with-file-params.yaml" ), "porter.yaml" )
52
52
p .TestConfig .TestContext .AddTestFile (filepath .Join (p .TestDir , "testdata/helpers.sh" ), "helpers.sh" )
53
53
p .TestConfig .TestContext .AddTestFile (filepath .Join (p .TestDir , "testdata/myfile" ), "./myfile" )
54
+ p .TestConfig .TestContext .AddTestFile (filepath .Join (p .TestDir , "testdata/myotherfile" ), "./myotherfile" )
54
55
55
56
installOpts := porter.InstallOptions {}
56
57
installOpts .Params = []string {"myfile=./myfile" }
58
+ installOpts .ParameterSets = []string {filepath .Join (p .TestDir , "testdata/parameter-set-with-file-param.json" )}
57
59
58
60
err := installOpts .Validate ([]string {}, p .Porter )
59
61
require .NoError (t , err )
@@ -67,5 +69,6 @@ func TestInstall_fileParam(t *testing.T) {
67
69
68
70
claim , err := p .Claims .Read (p .Manifest .Name )
69
71
require .NoError (t , err , "could not fetch claim" )
70
- require .Equal (t , "Hello World!" , claim .Outputs ["myfile" ], "expected output to match the decoded file contents" )
72
+ require .Equal (t , "Hello World!" , claim .Outputs ["myfile" ], "expected output 'myfile' to match the decoded file contents" )
73
+ require .Equal (t , "Hello Other World!" , claim .Outputs ["myotherfile" ], "expected output 'myotherfile' to match the decoded file contents" )
71
74
}
0 commit comments