mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-04-19 12:02:20 +02:00
FIxed test names in ath tests
This commit is contained in:
parent
a39c0d9084
commit
e14293c196
@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAcquireSessionCookie_Success(t *testing.T) {
|
func TestAcquireSessionCookie_Fail(t *testing.T) {
|
||||||
setup()
|
setup()
|
||||||
defer teardown()
|
defer teardown()
|
||||||
testMux.HandleFunc("/rest/auth/1/session", func(w http.ResponseWriter, r *http.Request) {
|
testMux.HandleFunc("/rest/auth/1/session", func(w http.ResponseWriter, r *http.Request) {
|
||||||
@ -38,7 +38,7 @@ func TestAcquireSessionCookie_Success(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAcquireSessionCookie_Fail(t *testing.T) {
|
func TestAcquireSessionCookie_Success(t *testing.T) {
|
||||||
setup()
|
setup()
|
||||||
defer teardown()
|
defer teardown()
|
||||||
testMux.HandleFunc("/rest/auth/1/session", func(w http.ResponseWriter, r *http.Request) {
|
testMux.HandleFunc("/rest/auth/1/session", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
20
issue.go
20
issue.go
@ -53,7 +53,7 @@ type IssueFields struct {
|
|||||||
Created string `json:"created,omitempty"`
|
Created string `json:"created,omitempty"`
|
||||||
Watches *Watches `json:"watches,omitempty"`
|
Watches *Watches `json:"watches,omitempty"`
|
||||||
Assignee *Assignee `json:"assignee,omitempty"`
|
Assignee *Assignee `json:"assignee,omitempty"`
|
||||||
Updated string `json:"updated,omitempty"`
|
Updated int `json:"updated,omitempty"`
|
||||||
Description string `json:"description,omitempty"`
|
Description string `json:"description,omitempty"`
|
||||||
Summary string `json:"summary"`
|
Summary string `json:"summary"`
|
||||||
Creator *Assignee `json:"Creator,omitempty"`
|
Creator *Assignee `json:"Creator,omitempty"`
|
||||||
@ -62,9 +62,9 @@ type IssueFields struct {
|
|||||||
Status *Status `json:"status,omitempty"`
|
Status *Status `json:"status,omitempty"`
|
||||||
Progress *Progress `json:"progress,omitempty"`
|
Progress *Progress `json:"progress,omitempty"`
|
||||||
AggregateProgress *Progress `json:"aggregateprogress,omitempty"`
|
AggregateProgress *Progress `json:"aggregateprogress,omitempty"`
|
||||||
Worklog *Worklog `json:"worklog,omitempty"`
|
Worklog []*Worklog `json:"worklog,omitempty"`
|
||||||
IssueLinks []*IssueLink `json:"issuelinks,omitempty"`
|
IssueLinks []*IssueLink `json:"issuelinks,omitempty"`
|
||||||
Comments *CommentList `json:"comment,omitempty"`
|
Comments []*Comment `json:"comment,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// IssueType represents a type of a JIRA issue.
|
// IssueType represents a type of a JIRA issue.
|
||||||
@ -161,11 +161,7 @@ type Progress struct {
|
|||||||
// Worklog represents the work log of a JIRA issue.
|
// Worklog represents the work log of a JIRA issue.
|
||||||
// JIRA Wiki: https://confluence.atlassian.com/jira/logging-work-on-an-issue-185729605.html
|
// JIRA Wiki: https://confluence.atlassian.com/jira/logging-work-on-an-issue-185729605.html
|
||||||
type Worklog struct {
|
type Worklog struct {
|
||||||
// Missing fields
|
// TODO Add Worklogs
|
||||||
// * "worklogs": []
|
|
||||||
StartAt int `json:"startAt"`
|
|
||||||
MaxResults int `json:"maxResults"`
|
|
||||||
Total int `json:"total"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// IssueLink represents a link between two issues in JIRA.
|
// IssueLink represents a link between two issues in JIRA.
|
||||||
@ -198,14 +194,6 @@ type Comment struct {
|
|||||||
Created string `json:"created"`
|
Created string `json:"created"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CommentList represents a list of comments by various persons of an issue in JIRA.
|
|
||||||
type CommentList struct {
|
|
||||||
StartAt int `json:"startAt"`
|
|
||||||
MaxResults int `json:"maxResults"`
|
|
||||||
Total int `json:"total"`
|
|
||||||
Comments []Comment `json:"comments"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get returns a full representation of the issue for the given issue key.
|
// Get returns a full representation of the issue for the given issue key.
|
||||||
// JIRA will attempt to identify the issue by the issueIdOrKey path parameter.
|
// JIRA will attempt to identify the issue by the issueIdOrKey path parameter.
|
||||||
// This can be an issue id, or an issue key.
|
// This can be an issue id, or an issue key.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user