Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
update paths and try to fix chef failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Jul 22, 2017
1 parent b09f7b6 commit 76327c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pkg/engine/engine_chef_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ func TestEngineChef_AssembleStep(t *testing.T) {
require.NoError(t, cerr)

pipelineData := new(pipeline.Data)
absPath, aerr := filepath.Abs(dirPath)
require.NoError(t, aerr)

pipelineData.GitLocalPath = absPath
pipelineData.GitParentPath = parentPath
pipelineData.GitLocalPath = dirPath
testConfig, _ := config.Create()
testConfig.Set("scm", "github")
testConfig.Set("package_type", "chef")
Expand Down Expand Up @@ -86,10 +85,8 @@ func TestEngineChef_AssembleStep_WithMinimalCookbook(t *testing.T) {
require.NoError(t, cerr)

pipelineData := new(pipeline.Data)
absPath, aerr := filepath.Abs(dirPath)
require.NoError(t, aerr)

pipelineData.GitLocalPath = absPath
pipelineData.GitParentPath = parentPath
pipelineData.GitLocalPath = dirPath
testConfig, _ := config.Create()
testConfig.Set("scm", "github")
testConfig.Set("package_type", "chef")
Expand Down
5 changes: 5 additions & 0 deletions pkg/engine/testdata/chef/cookbook_analogj_test/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
description 'Installs/Configures cookbook_analogj_test'
long_description 'Installs/Configures cookbook_analogj_test'
version '0.1.11'
maintainer 'Test User'
maintainer_email 'test@test.com'
issues_url 'http://www.example.com'
source_url 'http://www.example.com'
chef_version '>= 2.6.5'

0 comments on commit 76327c3

Please sign in to comment.