1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-04-17 11:56:28 +02:00

FIxed test names in ath tests

This commit is contained in:
Andy Grunwald 2016-03-26 23:37:57 +01:00
parent a39c0d9084
commit e14293c196
2 changed files with 6 additions and 18 deletions

View File

@ -8,7 +8,7 @@ import (
"testing"
)
func TestAcquireSessionCookie_Success(t *testing.T) {
func TestAcquireSessionCookie_Fail(t *testing.T) {
setup()
defer teardown()
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()
defer teardown()
testMux.HandleFunc("/rest/auth/1/session", func(w http.ResponseWriter, r *http.Request) {

View File

@ -53,7 +53,7 @@ type IssueFields struct {
Created string `json:"created,omitempty"`
Watches *Watches `json:"watches,omitempty"`
Assignee *Assignee `json:"assignee,omitempty"`
Updated string `json:"updated,omitempty"`
Updated int `json:"updated,omitempty"`
Description string `json:"description,omitempty"`
Summary string `json:"summary"`
Creator *Assignee `json:"Creator,omitempty"`
@ -62,9 +62,9 @@ type IssueFields struct {
Status *Status `json:"status,omitempty"`
Progress *Progress `json:"progress,omitempty"`
AggregateProgress *Progress `json:"aggregateprogress,omitempty"`
Worklog *Worklog `json:"worklog,omitempty"`
Worklog []*Worklog `json:"worklog,omitempty"`
IssueLinks []*IssueLink `json:"issuelinks,omitempty"`
Comments *CommentList `json:"comment,omitempty"`
Comments []*Comment `json:"comment,omitempty"`
}
// IssueType represents a type of a JIRA issue.
@ -161,11 +161,7 @@ type Progress struct {
// Worklog represents the work log of a JIRA issue.
// JIRA Wiki: https://confluence.atlassian.com/jira/logging-work-on-an-issue-185729605.html
type Worklog struct {
// Missing fields
// * "worklogs": []
StartAt int `json:"startAt"`
MaxResults int `json:"maxResults"`
Total int `json:"total"`
// TODO Add Worklogs
}
// IssueLink represents a link between two issues in JIRA.
@ -198,14 +194,6 @@ type Comment struct {
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.
// JIRA will attempt to identify the issue by the issueIdOrKey path parameter.
// This can be an issue id, or an issue key.