Skip to content

Commit

Permalink
Print curl output
Browse files Browse the repository at this point in the history
  • Loading branch information
gl-johnson committed Jun 28, 2023
1 parent 328f5d5 commit fe86236
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion release-testing/secretless_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
//go:build release_test
// +build release_test

package main

import (
"errors"
"fmt"
"os/exec"
"testing"

Expand Down Expand Up @@ -50,10 +52,14 @@ exec_conjur_client conjur variable values add test-app-secrets/username ` + expe
`
exec_app bash -exc '
export http_proxy=http://localhost:8080
response=$(curl -s "http://httpbin.org/anything")
echo $response
curl -s "http://httpbin.org/anything" | jq -j ".headers.Authorization"
echo $response | jq -j ".headers.Authorization"
'
`)
fmt.Println(out)
fmt.Println(string(err))
if !assert.NoError(t, err) {
return
}
Expand Down

0 comments on commit fe86236

Please sign in to comment.