```ruby
#
# Cookbook:: build_cookbook
# Recipe:: smoke
#
# Copyright:: 2017, Jp Robinson, All Rights Reserved.

build_root = "#{workflow_workspace_repo}/build"

template '#{workflow_workspace_repo}/min_httpd_conf.conf' do
  source 'min_httpd_conf.erb'
  variables(server_root: build_root)
end

execute 'Start apache locally' do
  command "#{build_root}/bin/httpd -k start -f #{workflow_workspace_repo}/min_httpd_conf.conf"
end

http_request 'test_request' do
  url 'http://localhost:12345/'
end

execute 'Stop apache locally' do
  command "#{build_root}/bin/httpd -k stop -f #{workflow_workspace_repo}/min_httpd_conf.conf"
end
```

Test fetching the published package and starting it
user
```ruby
#
# Cookbook:: build_cookbook
# Recipe:: smoke
#
# Copyright:: 2017, Jp Robinson, All Rights Reserved.
with_server_config do
  # retrieve what we set in provision
  env_name = if node['delivery']['change']['stage'] == 'acceptance'
              get_acceptance_environment
            else
              node['delivery']['change']['stage']
            end

  cur_env = ::DeliveryTruck::Helpers::Provision.fetch_or_create_environment(env_name) # Helper method from delivery-truck's provision stage
  
  build_root = "#{workflow_workspace_repo}/smoke_test"

  directory build_root do
    action :create
  end

  tar_extract cur_env.default_attributes['custom-apache']['url'] do
    target_dir build_root
    compress_char 'z'
  end

  template '#{workflow_workspace_repo}/min_httpd_conf.conf' do
    source 'min_httpd_conf.erb'
    variables(server_root: "#{build_root}/opt/apache")
  end

  execute 'Start apache locally' do
    command "#{build_root}/opt/apache/bin/httpd -k start -f #{workflow_workspace_repo}/min_httpd_conf.conf"
  end

  http_request 'test_request' do
    url 'http://localhost:12345/'
  end

  execute 'Stop apache locally' do
    command "#{build_root}/opt/apache/bin/httpd -k stop -f #{workflow_workspace_repo}/min_httpd_conf.conf"
  end
end # with_server_config```
assistant