Commit 965c8273 authored by Kevin Daudt's avatar Kevin Daudt 💻
Browse files

testing/kops: modernize go build

parent f6131801
......@@ -9,23 +9,13 @@ arch="x86_64"
license="Apache-2.0"
depends="kubernetes"
makedepends="go"
options="chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/kops/archive/v$pkgver.tar.gz
skip-test-validate-identity-document.patch
"
source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes/kops/archive/v$pkgver.tar.gz"
export GOPATH=$srcdir/go
prepare() {
default_prepare
local dir=$GOPATH/src/k8s.io
mkdir -p "$dir"
ln -s "$builddir" "$dir/$pkgname"
}
export GOMODCACHE=$srcdir/go
export GOFLAGS="$GOFLAGS -modcacherw"
build() {
make
make kops
}
check() {
......@@ -33,8 +23,7 @@ check() {
}
package() {
install -D "$GOPATH"/bin/kops "$pkgdir"/usr/bin/kops
install -Dm0755 .build/local/kops "$pkgdir"/usr/bin/kops
}
sha512sums="41df5ed93e7f86f705540b1721f3bfecb17610ec811693b4c2380ff19914f1bd96ea23cca9e1cb7c26ea9fb3116e064f0a81df77f97b72766a05bbdff07e9996 kops-1.19.1.tar.gz
7b49965cfc05e06d74ebd4154858330d01eed3b69a2481dfb6c238b24bf19a56e7e73219e4cd07289d8757fb93dd66eb7ac5c66acc684dc379b155b60e19eeba skip-test-validate-identity-document.patch"
sha512sums="41df5ed93e7f86f705540b1721f3bfecb17610ec811693b4c2380ff19914f1bd96ea23cca9e1cb7c26ea9fb3116e064f0a81df77f97b72766a05bbdff07e9996 kops-1.19.1.tar.gz"
Description: The example certificate uses DSAWithSha1 as signature algorithm, but according
to the documentation, that one is not supported.
diff --git a/node-authorizer/pkg/authorizers/aws/authorizer_test.go b/node-authorizer/pkg/authorizers/aws/authorizer_test.go
index df16d57..cf1ce61 100644
--- a/node-authorizer/pkg/authorizers/aws/authorizer_test.go
+++ b/node-authorizer/pkg/authorizers/aws/authorizer_test.go
@@ -43,6 +43,7 @@ func newTestAuthorizer(t *testing.T, config *server.Config) *awsNodeAuthorizer {
}
func TestValidateIdentityDocument(t *testing.T) {
+ t.Skip("DSAWithSHA1 is not supported by crypto.x509")
c := newTestAuthorizer(t, nil)
request := &Request{
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment