Skip to content

Commit

Permalink
Update test cases to more recent distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Jun 27, 2024
1 parent ea70044 commit 3074204
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions spec/classes/repos_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
family: 'Debian',
name: 'Ubuntu',
release: {
full: '16.04'
full: '22.04'
},
distro: {
codename: 'xenial'
codename: 'jammy'
}
}
}
Expand All @@ -31,7 +31,7 @@
'kubernetes_yum_baseurl' => 'https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64',
'kubernetes_yum_gpgkey' => 'https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg',
'docker_apt_location' => 'https://download.docker.com/linux/ubuntu',
'docker_apt_release' => 'xenial',
'docker_apt_release' => 'jammy',
'docker_apt_repos' => 'main',
'docker_yum_baseurl' => 'https://download.docker.com/linux/centos/7/x86_64/stable',
'docker_yum_gpgkey' => 'https://download.docker.com/linux/centos/gpg',
Expand Down Expand Up @@ -62,7 +62,7 @@
ensure: 'present',
location: 'https://download.docker.com/linux/ubuntu',
repos: 'main',
release: 'xenial',
release: 'jammy',
key: { 'id' => '9DC858229FC7DD38854AE2D88D81803C0EBFCD88', 'source' => 'https://download.docker.com/linux/ubuntu/gpg' },
)
}
Expand All @@ -77,27 +77,27 @@
family: 'Debian',
name: 'Ubuntu',
release: {
full: '16.04'
full: '22.04'
},
distro: {
codename: 'xenial'
codename: 'jammy'
}
}
}
end
let(:params) do
{
'container_runtime' => 'docker',
'kubernetes_version' => '1.28.1',
'kubernetes_apt_location' => 'http://apt.kubernetes.io',
'kubernetes_apt_release' => 'kubernetes-xenial',
'kubernetes_version' => '1.29.2',
'kubernetes_apt_location' => 'http://myapt.example.org',
'kubernetes_apt_release' => 'jammy',
'kubernetes_apt_repos' => 'main',
'kubernetes_key_id' => '54A647F9048D5688D7DA2ABE6A030B21BA07F4FB',
'kubernetes_key_source' => 'https://packages.cloud.google.com/apt/doc/apt-key.gpg',
'kubernetes_yum_baseurl' => 'https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64',
'kubernetes_yum_gpgkey' => 'https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg',
'docker_apt_location' => 'https://download.docker.com/linux/ubuntu',
'docker_apt_release' => 'xenial',
'docker_apt_release' => 'jammy',
'docker_apt_repos' => 'main',
'docker_yum_baseurl' => 'https://download.docker.com/linux/centos/7/x86_64/stable',
'docker_yum_gpgkey' => 'https://download.docker.com/linux/centos/gpg',
Expand All @@ -112,9 +112,9 @@
it {
expect(subject).to contain_apt__source('kubernetes').with(
ensure: 'present',
location: 'http://apt.kubernetes.io',
location: 'http://myapt.example.org',
repos: 'main',
release: 'kubernetes-xenial',
release: 'jammy',
key: { 'id' => '54A647F9048D5688D7DA2ABE6A030B21BA07F4FB', 'source' => 'https://packages.cloud.google.com/apt/doc/apt-key.gpg' },
)
}
Expand All @@ -124,7 +124,7 @@
ensure: 'present',
location: 'https://download.docker.com/linux/ubuntu',
repos: 'main',
release: 'xenial',
release: 'jammy',
key: { 'id' => '9DC858229FC7DD38854AE2D88D81803C0EBFCD88', 'source' => 'https://download.docker.com/linux/ubuntu/gpg' },
)
}
Expand All @@ -139,10 +139,10 @@
family: 'Debian',
name: 'Ubuntu',
release: {
full: '16.04'
full: '22.04'
},
distro: {
codename: 'xenial'
codename: 'jammy'
}
}
}
Expand Down Expand Up @@ -325,7 +325,7 @@
'kubernetes_yum_baseurl' => 'https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64',
'kubernetes_yum_gpgkey' => 'https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg',
'docker_apt_location' => 'https://download.docker.com/linux/ubuntu',
'docker_apt_release' => 'xenial',
'docker_apt_release' => 'jammy',
'docker_apt_repos' => 'main',
'docker_yum_baseurl' => 'https://download.docker.com/linux/centos/7/x86_64/stable',
'docker_yum_gpgkey' => 'https://download.docker.com/linux/centos/gpg',
Expand Down

0 comments on commit 3074204

Please sign in to comment.