Skip to content

Commit

Permalink
remove duplicate and unused step definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tuttle committed Feb 13, 2019
1 parent c087ae0 commit be53ec3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion ci/features/buildpackless.feature
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Feature: profile d scripts without the buildpack
CONJUR_MULTI_LINE_SECRET: !var conjur_multi_line_secret_id
LITERAL_SECRET: some literal secret
"""
When the .profile.d scripts are sourced
When the retrieve secrets .profile.d script is sourced
And the 'env' command is run
Then the environment contains
"""
Expand Down
4 changes: 0 additions & 4 deletions ci/features/step_definitions/common_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
f.unlink
end

Given(/^the '([^"]*)' script is run$/) do |script|
step "the '#{ENV['BUILDPACK_BUILD_DIR']}/bin/#{script} #{@BUILD_DIR}' command is run"
end

Given(/^the supply script is run against the app's root folder$/) do
step "the following command is run:", <<EOS
#{ENV['BUILDPACK_BUILD_DIR']}/bin/supply #{@BUILD_DIR} #{@CACHE_DIR} #{@DEPS_DIR} #{@INDEX_DIR}
Expand Down
7 changes: 0 additions & 7 deletions ci/features/step_definitions/profile_d_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,3 @@
Then(/^the environment contains$/) do |text|
expect(@output).to include(text)
end

When(/^the \.profile\.d scripts are sourced$/) do
@commands ||= []
@commands << <<EOL
HOME=#{@BUILD_DIR} DEPS_DIR=#{@DEPS_DIR} . #{@DEPS_DIR}/#{@INDEX_DIR}/.profile.d/0001_retrieve-secrets.sh
EOL
end

0 comments on commit be53ec3

Please sign in to comment.