wip
This commit is contained in:
parent
a8d414f85c
commit
5a1a4a1eec
|
|
@ -202,11 +202,11 @@ func (jenkins *jenkins) GetNodeSecret(name string) (string, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", errors.WithStack(err)
|
return "", errors.WithStack(err)
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := r.Body.Close(); err != nil {
|
if err := r.Body.Close(); err != nil {
|
||||||
errors.New("Failed to read response body")
|
errors.Errorf("Failed to read response body: %s", err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
match := regex.FindStringSubmatch(content)
|
match := regex.FindStringSubmatch(content)
|
||||||
if match == nil {
|
if match == nil {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,14 @@ diag() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#bats test_tags=phase:setup
|
#bats test_tags=phase:setup
|
||||||
@test "1.0 Create namespace" {
|
@test "1.0" {
|
||||||
|
run ! helm repo list | grep -q "jenkins"
|
||||||
|
[ "$status" -eq 0 ] && run helm repo add jenkins https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart
|
||||||
|
assert_success
|
||||||
|
}
|
||||||
|
|
||||||
|
#bats test_tags=phase:setup
|
||||||
|
@test "1.1 Create namespace" {
|
||||||
${KUBECTL} get ns ${DETIK_CLIENT_NAMESPACE} && skip "Namespace ${DETIK_CLIENT_NAMESPACE} already exists"
|
${KUBECTL} get ns ${DETIK_CLIENT_NAMESPACE} && skip "Namespace ${DETIK_CLIENT_NAMESPACE} already exists"
|
||||||
run ${KUBECTL} create ns ${DETIK_CLIENT_NAMESPACE}
|
run ${KUBECTL} create ns ${DETIK_CLIENT_NAMESPACE}
|
||||||
assert_success
|
assert_success
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue