Added bitbucketserver_user resource; updated tests to create users on the fly

This commit is contained in:
Gavin Bunney
2019-10-10 09:36:56 -07:00
parent d63df2e655
commit f748cb05c7
10 changed files with 313 additions and 10 deletions

View File

@@ -58,6 +58,7 @@ func (c *BitbucketClient) Do(method, endpoint string, payload *bytes.Buffer) (*h
}
req.SetBasicAuth(c.Username, c.Password)
req.Header.Add("X-Atlassian-Token", "no-check")
if payload != nil {
// Can cause bad request when putting default reviews if set.