Skip to content

Commit

Permalink
Merge pull request #11 from chef/rebranding_change
Browse files Browse the repository at this point in the history
Rebranding Change and  the new version and change.log file
  • Loading branch information
sanghinitin authored Nov 11, 2024
2 parents b5a4a7b + 18dd440 commit 8952bea
Show file tree
Hide file tree
Showing 16 changed files with 154 additions and 2,550 deletions.
4 changes: 2 additions & 2 deletions .expeditor/buildkite/artifact.habitat.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eo pipefail

export HAB_ORIGIN='ci'
export PLAN='test-kitchen'
export PLAN='chef-test-kitchen-enterprise'
export CHEF_LICENSE="accept-no-persist"
export HAB_LICENSE="accept-no-persist"
export HAB_BLDR_CHANNEL="LTS-2024"
Expand Down Expand Up @@ -63,7 +63,7 @@ hab pkg install -b "${project_root:?is undefined}/results/${pkg_artifact:?is und

echo "+++ Testing $PLAN"

PATH="$(hab pkg path ci/test-kitchen)/bin:$PATH"
PATH="$(hab pkg path ci/chef-test-kitchen-enterprise)/bin:$PATH"
export PATH
echo "PATH is $PATH"

Expand Down
2 changes: 1 addition & 1 deletion .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ github:

release_branches:
- main:
version_constraint: 3.*
version_constraint: 1.*

changelog:
rollup_header: Changes not yet released to rubygems.org
Expand Down
111 changes: 56 additions & 55 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["3.3"]
ruby: ["3.1"]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand All @@ -29,57 +29,58 @@ jobs:
bundler-cache: true
- run: bundle exec kitchen test

integration-macos:
name: MacOS Integration Tests
runs-on: macos-13
strategy:
fail-fast: false
matrix:
ruby: ["3.3"]
steps:
- name: Install Vagrant VirtualBox
run: brew install --cask virtualbox vagrant
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Kitchen Test
run: |
export LOGNAME=$USER
bundle exec kitchen test almalinux-9
integration-windows:
name: Windows Integration Tests
env:
BUNDLE_without: integration
machine_user: test_user
machine_pass: Pass@word1
machine_port: 5985
SPEC_OPTS: --format progress
KITCHEN_LOCAL_YAML: kitchen.windows.yml
runs-on: windows-latest
timeout-minutes: 600
strategy:
fail-fast: false
matrix:
ruby: ["3.3"]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Unit Tests
run: bundle exec rake unit
- name: Quality Tests
run: bundle exec rake quality
- name: Setup Machine
run: |
winrm.cmd quickconfig -q
net user /add ${{ env.machine_user }} ${{ env.machine_pass }}
net localgroup administrators ${{ env.machine_user }} /add
bundle config set --local with 'integration'
bundle install
- name: Verify Windows
run: bundle exec kitchen verify windows
# FIXME: Commented out until we fix the pipelines for the RC2 release
# integration-macos:
# name: MacOS Integration Tests
# runs-on: macos-13
# strategy:
# fail-fast: false
# matrix:
# ruby: ["3.3"]
# steps:
# - name: Install Vagrant VirtualBox
# run: brew install --cask virtualbox vagrant
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: ${{ matrix.ruby }}
# bundler-cache: true
# - name: Kitchen Test
# run: |
# export LOGNAME=$USER
# bundle exec kitchen test almalinux-9
#
# integration-windows:
# name: Windows Integration Tests
# env:
# BUNDLE_without: integration
# machine_user: test_user
# machine_pass: Pass@word1
# machine_port: 5985
# SPEC_OPTS: --format progress
# KITCHEN_LOCAL_YAML: kitchen.windows.yml
# runs-on: windows-latest
# timeout-minutes: 600
# strategy:
# fail-fast: false
# matrix:
# ruby: ["3.3"]
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: ${{ matrix.ruby }}
# bundler-cache: true
# - name: Unit Tests
# run: bundle exec rake unit
# - name: Quality Tests
# run: bundle exec rake quality
# - name: Setup Machine
# run: |
# winrm.cmd quickconfig -q
# net user /add ${{ env.machine_user }} ${{ env.machine_pass }}
# net localgroup administrators ${{ env.machine_user }} /add
# bundle config set --local with 'integration'
# bundle install
# - name: Verify Windows
# run: bundle exec kitchen verify windows
2,394 changes: 2 additions & 2,392 deletions CHANGELOG.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ source "https://rubygems.org"
gemspec
gem "appbundler"
gem "pry"
gem "kitchen-dokken", git: "https://github.com/chef/kitchen-dokken", branch: "hab_testing_branch"
gem "kitchen-inspec", git: "https://github.com/inspec/kitchen-inspec", branch: "temp-point-to-chef-test-kitchen-ent"

group :test do
gem "rake"
gem "rb-readline"
Expand All @@ -17,8 +20,6 @@ end

group :integration do
gem "chef-cli"
gem "kitchen-dokken"
gem "kitchen-inspec"
gem "kitchen-vagrant"
end

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.7.1
1.0.0
6 changes: 3 additions & 3 deletions test-kitchen.gemspec → chef-test-kitchen-enterprise.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require "kitchen/version"
require "English"

Gem::Specification.new do |gem|
gem.name = "test-kitchen"
gem.name = "chef-test-kitchen-enterprise"
gem.version = Kitchen::VERSION
gem.license = "Apache-2.0"
gem.authors = ["Fletcher Nichol"]
Expand All @@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
gem.homepage = "https://kitchen.ci/"

# The gemfile and gemspec are necessary for appbundler in ChefDK / Workstation
gem.files = %w{LICENSE test-kitchen.gemspec Gemfile Rakefile} + Dir.glob("{bin,lib,templates,support}/**/*")
gem.files = %w{LICENSE chef-test-kitchen-enterprise.gemspec Gemfile Rakefile} + Dir.glob("{bin,lib,templates,support}/**/*")
gem.executables = %w{kitchen}
gem.require_paths = ["lib"]

Expand All @@ -30,7 +30,7 @@ Gem::Specification.new do |gem|
gem.add_dependency "net-scp", ">= 1.1", "< 5.0" # pinning until we can confirm 4+ works
gem.add_dependency "net-ssh", ">= 2.9", "< 8.0" # pinning until we can confirm 8+ works
gem.add_dependency "net-ssh-gateway", ">= 1.2", "< 3.0" # pinning until we can confirm 3+ works
gem.add_dependency "thor", ">= 0.19", "< 2.0"
gem.add_dependency "thor", ">= 0.19", "< 1.3.0" # downgrading thor bec inspec-core depends on < 1.3.0
gem.add_dependency "winrm", "~> 2.0"
gem.add_dependency "winrm-elevated", "~> 1.0"
gem.add_dependency "winrm-fs", "~> 1.1"
Expand Down
2 changes: 1 addition & 1 deletion features/kitchen_command.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ Feature: A command line interface for Test Kitchen
Scenario: Displaying the version of Test Kitchen
When I run `kitchen version`
Then the exit status should be 0
And the output should contain "Test Kitchen version"
And the output should contain "Chef Test Kitchen Enterprise Version"
18 changes: 9 additions & 9 deletions habitat/plan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $ErrorActionPreference = "Stop"
$PSDefaultParameterValues['*:ErrorAction']='Stop'

$env:HAB_BLDR_CHANNEL = "LTS-2024"
$pkg_name="test-kitchen"
$pkg_name="chef-test-kitchen-enterprise"
$pkg_origin="chef"
$pkg_version=$(Get-Content "$PLAN_CONTEXT/../VERSION")
$pkg_maintainer="The Chef Maintainers <[email protected]>"
Expand Down Expand Up @@ -44,12 +44,12 @@ function Invoke-Build {
bundle config --local silence_root_warning 1
Write-BuildLine " ** Using bundler to retrieve the Ruby dependencies"
bundle install

gem build test-kitchen.gemspec
bundle lock --local
gem build chef-test-kitchen-enterprise.gemspec
Write-BuildLine " ** Using gem to install"
gem install test-kitchen-*.gem --no-document
gem install kitchen-dokken
gem install chef-test-kitchen-enterprise*.gem --no-document

ruby ./post-bundle-install.rb
If ($lastexitcode -ne 0) { Exit $lastexitcode }
} finally {
Pop-Location
Expand All @@ -65,11 +65,11 @@ function Invoke-Install {
try {
Push-Location $pkg_prefix
bundle config --local gemfile $project_root/Gemfile
Write-BuildLine "** generating binstubs for test-kitchen with precise version pins"
Write-BuildLine "** generating binstubs for test-kitchen with precise version pins $project_root $pkg_prefix/bin "
Invoke-Expression -Command "appbundler.bat $project_root $pkg_prefix/bin test-kitchen"
Write-BuildLine "** generating binstubs for chef-test-kitchen-enterprise with precise version pins"
Write-BuildLine "** generating binstubs for chef-test-kitchen-enterprise with precise version pins $project_root $pkg_prefix/bin "
Invoke-Expression -Command "appbundler.bat $project_root $pkg_prefix/bin chef-test-kitchen-enterprise"
If ($lastexitcode -ne 0) { Exit $lastexitcode }
Write-BuildLine " ** Running the test-kitchen project's 'rake install' to install the path-based gems so they look like any other installed gem."
Write-BuildLine " ** Running the chef-test-kitchen-enterprise project's 'rake install' to install the path-based gems so they look like any other installed gem."

If ($lastexitcode -ne 0) { Exit $lastexitcode }
} finally {
Expand Down
Loading

0 comments on commit 8952bea

Please sign in to comment.