KA01

1

votes
2

answer
654

views

Override Go Method in Tests

So I have this Client struct that has a method UserByID that makes a HTTP request to an endpoint for a User. I want to unit test this function but also not make an actual HTTP request in the function c.Request. I want to stub that function with a response and error I can control. func (c Client) Use...
KA01
1

votes
0

answer
78

views

Update an array of text with itself to run a “trigger” function in PostgreSQL

Full-text search in PostgreSQL is new to me. So bear with me. I'm working on an existing PostgreSQL table that has a column of type text[] (named tags) that I'd like to implement full-text search on. I've added another column of type ts_vector (named tags_tsv) that will contain the indexable lexemes...
KA01
3

votes
0

answer
28

views

Github webhook no longer triggering Jenkins builds

We've recently noticed our Jenkins builds stopped getting triggered automatically. After further investigation there were numerous issues. Github webhooks were unsuccessful with Github reporting 'Couldn't connect to the server' in Github's webhook configuration UI Jenkins logs report various failure...
KA01