Skip to content

Commit

Permalink
[testing-framework] Cleanup & integrate
Browse files Browse the repository at this point in the history
- Remove redundant files
- Remove all travis things
- Update go.mod
- Update OWNERS
- Make sure the downloaded assets end up in the right place for the
  integration testing framework
  • Loading branch information
hoegaarden committed Dec 6, 2019
1 parent 56c5ea7 commit 8a6a7f2
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 471 deletions.
4 changes: 4 additions & 0 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ aliases:
- shawn-hurley
- gerred
- joelanford
testing-integration-admins:
- apelisse
- hoegaarden
- totherme
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ require (
k8s.io/apimachinery v0.0.0-20190913080033-27d36303b655
k8s.io/client-go v0.0.0-20190918160344-1fbdaa4c8d90
k8s.io/utils v0.0.0-20190801114015-581e00157fb1
sigs.k8s.io/testing_frameworks v0.1.2
sigs.k8s.io/yaml v1.1.0
)
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,5 @@ modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs
modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I=
sigs.k8s.io/structured-merge-diff v0.0.0-20190525122527-15d366b2352e/go.mod h1:wWxsB5ozmmv/SG7nM11ayaAW51xMvak/t1r0CSlcokI=
sigs.k8s.io/structured-merge-diff v0.0.0-20190817042607-6149e4549fca/go.mod h1:IIgPezJWb76P0hotTxzDbWsMYB8APh18qZnxkomBpxA=
sigs.k8s.io/testing_frameworks v0.1.2 h1:vK0+tvjF0BZ/RYFeZ1E6BYBwHJJXhjuZ3TdsEKH+UQM=
sigs.k8s.io/testing_frameworks v0.1.2/go.mod h1:ToQrwSC3s8Xf/lADdZp3Mktcql9CG0UAmdJG9th5i0w=
sigs.k8s.io/yaml v1.1.0 h1:4A07+ZFc2wgJwo8YNlQpr1rVlgUDlxXHhPJciaPY5gs=
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
11 changes: 8 additions & 3 deletions hack/check-everything.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,19 @@ SKIP_FETCH_TOOLS=${SKIP_FETCH_TOOLS:-""}

# fetch k8s API gen tools and make it available under kb_root_dir/bin.
function fetch_kb_tools {
header_text "fetching tools"
local dest_dir="${1}"

header_text "fetching tools (into '${dest_dir}')"
kb_tools_archive_name="kubebuilder-tools-$k8s_version-$goos-$goarch.tar.gz"
kb_tools_download_url="https://storage.googleapis.com/kubebuilder-tools/$kb_tools_archive_name"

kb_tools_archive_path="$tmp_root/$kb_tools_archive_name"
if [ ! -f $kb_tools_archive_path ]; then
curl -sL ${kb_tools_download_url} -o "$kb_tools_archive_path"
fi
tar -zvxf "$kb_tools_archive_path" -C "$tmp_root/"

mkdir -p "${dest_dir}"
tar -C "${dest_dir}" --strip-components=1 -zvxf "$kb_tools_archive_path"
}

function is_installed {
Expand All @@ -78,7 +82,8 @@ header_text "using tools"

if [ -z "$SKIP_FETCH_TOOLS" ]; then
fetch_go_tools
fetch_kb_tools
fetch_kb_tools "$kb_root_dir"
fetch_kb_tools "${hack_dir}/../pkg/internal/testing/integration/assets"
fi

setup_envs
Expand Down
23 changes: 0 additions & 23 deletions pkg/internal/testing/.travis.yml

This file was deleted.

13 changes: 0 additions & 13 deletions pkg/internal/testing/CONTRIBUTING.md

This file was deleted.

201 changes: 0 additions & 201 deletions pkg/internal/testing/LICENSE

This file was deleted.

4 changes: 2 additions & 2 deletions pkg/internal/testing/OWNERS
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# See the OWNERS docs: https://git.k8s.io/community/contributors/devel/owners.md

approvers:
- sig-testing-leads
- frameworks-admins
- controller-runtime-admins
- testing-integration-admins
12 changes: 0 additions & 12 deletions pkg/internal/testing/OWNERS_ALIASES

This file was deleted.

21 changes: 0 additions & 21 deletions pkg/internal/testing/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions pkg/internal/testing/SECURITY_CONTACTS

This file was deleted.

37 changes: 0 additions & 37 deletions pkg/internal/testing/bin/consider-early-travis-exit.sh

This file was deleted.

6 changes: 0 additions & 6 deletions pkg/internal/testing/bin/install-test-dependencies.sh

This file was deleted.

Loading

0 comments on commit 8a6a7f2

Please sign in to comment.