Skip to content

Commit c9deffd

Browse files
committed
ING-1088: Add print statements for debugging GHA
1 parent 8ac5a5b commit c9deffd

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

gateway/dapiimpl/server_v1/dataapi_crud.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"context"
66
"encoding/json"
77
"errors"
8+
"fmt"
89
"time"
910
"unicode/utf8"
1011

@@ -120,6 +121,8 @@ func (s *DataApiServer) GetDocument(
120121
func (s *DataApiServer) CreateDocument(
121122
ctx context.Context, in dataapiv1.CreateDocumentRequestObject,
122123
) (dataapiv1.CreateDocumentResponseObject, error) {
124+
fmt.Println("JW CREATING")
125+
123126
bucketAgent, oboUser, errSt := s.authHandler.GetMemdOboAgent(ctx, in.Params.Authorization, in.BucketName)
124127
if errSt != nil {
125128
return nil, errSt.Err()

gateway/test/dapi_durability_impossible_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ func (s *GatewayOpsTestSuite) TestDapiDurabilityImpossible() {
1919
}
2020
}
2121

22+
fmt.Println("JW HERE 0")
23+
2224
type testCase struct {
2325
name string
2426
fn func() *testHttpResponse
@@ -202,7 +204,9 @@ func (s *GatewayOpsTestSuite) TestDapiDurabilityImpossible() {
202204

203205
for _, tc := range tests {
204206
s.Run(tc.name, func() {
207+
fmt.Println("JW HERE 1")
205208
resp := tc.fn()
209+
fmt.Println("JW HERE 2")
206210
requireRestError(s.T(), resp, http.StatusBadRequest, &testRestError{
207211
Code: "DurabilityImpossible",
208212
})

gateway/test/dapi_utils_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type testHttpResponse struct {
2424
}
2525

2626
func (s *GatewayOpsTestSuite) sendTestHttpRequest(req *testHttpRequest) *testHttpResponse {
27+
fmt.Println("JW SENDING REQUEST")
2728
hreq, err := http.NewRequest(
2829
req.Method,
2930
fmt.Sprintf("https://%s%s", s.dapiAddr, req.Path),
@@ -38,14 +39,20 @@ func (s *GatewayOpsTestSuite) sendTestHttpRequest(req *testHttpRequest) *testHtt
3839
hreq.Header.Set("User-Agent", "dapi-test")
3940
}
4041

42+
fmt.Println("JW SENDING REQUEST 2")
43+
4144
hresp, err := s.dapiCli.Do(hreq)
4245
require.NoError(s.T(), err)
4346

47+
fmt.Println("JW SENDING REQUEST 3")
48+
4449
fullBody, err := io.ReadAll(hresp.Body)
4550
require.NoError(s.T(), err)
4651

4752
_ = hresp.Body.Close()
4853

54+
fmt.Println("JW SENDING REQUEST 4")
55+
4956
return &testHttpResponse{
5057
StatusCode: hresp.StatusCode,
5158
Headers: hresp.Header,

0 commit comments

Comments
 (0)