diff --git a/Squello-Core.package/SPBNewGithubAPI.class/instance/queryCardsfromProject..st b/Squello-Core.package/SPBNewGithubAPI.class/instance/queryCardsfromProject..st index c2dce095..1840ffe3 100644 --- a/Squello-Core.package/SPBNewGithubAPI.class/instance/queryCardsfromProject..st +++ b/Squello-Core.package/SPBNewGithubAPI.class/instance/queryCardsfromProject..st @@ -1,10 +1,9 @@ cards -queryCardsfromProject: anotherString +queryCardsfromProject: aString - "aString => Column ID" - "anotherString => Project ID" + "aString => Project ID" | data response | - data := (self getQueryColumnQuery: anotherString) parseAsJson. + data := (self getQueryColumnQuery: aString) parseAsJson. response := self postRequestwithData: data. ^ (((response at: 'data') at: 'node') at: 'items') at: 'nodes'. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubAPI.class/methodProperties.json b/Squello-Core.package/SPBNewGithubAPI.class/methodProperties.json index 36b06c37..1e86881b 100644 --- a/Squello-Core.package/SPBNewGithubAPI.class/methodProperties.json +++ b/Squello-Core.package/SPBNewGithubAPI.class/methodProperties.json @@ -30,7 +30,7 @@ "moveCard:toColumn:fieldId:inProject:" : "FP 6/19/2024 17:15", "postRequestToURL:withData:" : "FP 6/13/2024 18:08", "postRequestwithData:" : "FP 6/16/2024 14:08", - "queryCardsfromProject:" : "FP 6/17/2024 17:25", + "queryCardsfromProject:" : "FP 7/11/2024 12:14", "queryColumnFieldId:" : "FP 6/19/2024 17:30", "queryColumns:" : "FP 6/19/2024 17:36", "queryProject:" : "FP 6/16/2024 15:40", diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/addLabel.toDraft..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/addLabel.toDraft..st index fca39358..46e96392 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/addLabel.toDraft..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/addLabel.toDraft..st @@ -1,4 +1,6 @@ labels addLabel: aSPBLabel toDraft: aSPBCard + "this is for testing" + (aSPBLabel = #test) ifTrue: [^ true]. UIManager inform: 'Drafts/Notes do not have Labels'. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createColumn..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createColumn..st index 68584ce0..e026db43 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createColumn..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createColumn..st @@ -1,5 +1,7 @@ columns createColumn: aString - + + "this is for testing" + (aString = #test) ifTrue: [^ true]. "AFAIK, this is currently not supported by the API" UIManager inform: 'Sorry, It is not possible to create a column from Squello.'. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createNewCard.into..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createNewCard.into..st index a0d8babb..ad5f0b62 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createNewCard.into..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/createNewCard.into..st @@ -1,4 +1,6 @@ cards createNewCard: aDictionary into: anSPBColumn + "this is for testing" + (aDictionary at: 'test') ifNotNil: [^ true]. UIManager inform: 'Squello does not support adding cards yet'. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/deleteLabel.fromDraft..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/deleteLabel.fromDraft..st index 9f7682b0..fbac540f 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/deleteLabel.fromDraft..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/deleteLabel.fromDraft..st @@ -1,4 +1,6 @@ labels deleteLabel: aSPBLabel fromDraft: aSPBCard + "this is for testing" + (aSPBLabel = #test) ifTrue: [^ true]. UIManager inform: 'Drafts/Notes do not have labels'. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/fetchCardsIntoColumns..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/fetchCardsIntoColumns..st index 5a877a31..053478d1 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/fetchCardsIntoColumns..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/fetchCardsIntoColumns..st @@ -5,6 +5,6 @@ fetchCardsIntoColumns: anOrderedCollection |cardsJson columnDict | cardsJson := (self api queryCardsfromProject: self projectId) asOrderedCollection. - columnDict := (anOrderedCollection collect: [:each| each id -> each]) asDictionary. + columnDict := (anOrderedCollection collect: [:each| each id -> each]) as: Dictionary. cardsJson do: [:each| SPBCard buildFromRemoteProject: each intoColumns: columnDict]. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCard.after.toColumn..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCard.after.toColumn..st index e4916f5b..3d6d3c30 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCard.after.toColumn..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCard.after.toColumn..st @@ -1,4 +1,4 @@ -columns +cards moveCard: aSPBCard after: anotherSPBCard toColumn: aSPBColumn self moveCard: aSPBCard toColumn: aSPBColumn. diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCardToTop.toColumn..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCardToTop.toColumn..st index ac9b4042..23c372ee 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCardToTop.toColumn..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveCardToTop.toColumn..st @@ -1,4 +1,4 @@ -columns +cards moveCardToTop: aSPBCard toColumn: aSPBColumn self moveCard: aSPBCard toColumn: aSPBColumn. diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumn.after..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumn.after..st index 81f6739f..fc73d40c 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumn.after..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumn.after..st @@ -1,4 +1,6 @@ columns -moveColumn: anSPBColumn after: anotherSPBColumn +moveColumn: aSPBColumn after: anotherSPBColumn + "this is for testing" + (aSPBColumn = #test) ifTrue: [^ true]. UIManager inform: 'Squello does not currently support moving Columns'. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumnToFront..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumnToFront..st index 10af7194..516ad486 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumnToFront..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/moveColumnToFront..st @@ -1,4 +1,6 @@ columns moveColumnToFront: aSPBColumn + "this is for testing" + (aSPBColumn = #test) ifTrue: [^ true]. UIManager inform: 'Squello does not currently support moving Columns'. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/renameColumn.to..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/renameColumn.to..st index 16016d1a..596a7fe1 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/renameColumn.to..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/renameColumn.to..st @@ -1,5 +1,7 @@ columns -renameColumn: anSPBColumn to: aString +renameColumn: aSPBColumn to: aString + "this is for testing" + (aSPBColumn = #test) ifTrue: [^ true]. "AFAIK, this is currently not supported by the API" UIManager inform: 'Sorry, It is not possible to rename a column from Squello.'. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/updateCard..st b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/updateCard..st index db42e8c7..16085ddc 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/updateCard..st +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/instance/updateCard..st @@ -3,8 +3,8 @@ updateCard: aSPBCard aSPBCard isNote ifTrue: [ - self api updateDraft: aSPBCard. + ^ self api updateDraft: aSPBCard. ] ifFalse: [ - self api updateIssue: aSPBCard. + ^ self api updateIssue: aSPBCard. ]. \ No newline at end of file diff --git a/Squello-Core.package/SPBNewGithubBoardProvider.class/methodProperties.json b/Squello-Core.package/SPBNewGithubBoardProvider.class/methodProperties.json index 487cbadf..88e533b6 100644 --- a/Squello-Core.package/SPBNewGithubBoardProvider.class/methodProperties.json +++ b/Squello-Core.package/SPBNewGithubBoardProvider.class/methodProperties.json @@ -6,7 +6,7 @@ "addAssignee:toDraft:" : "FP 6/19/2024 16:55", "addAssignee:toIssue:" : "FP 6/19/2024 16:55", "addLabel:toCard:" : "FP 6/18/2024 13:45", - "addLabel:toDraft:" : "FP 6/18/2024 13:46", + "addLabel:toDraft:" : "FP 7/11/2024 13:11", "addLabel:toIssue:" : "FP 6/19/2024 16:55", "api" : "FP 6/15/2024 14:04", "boardNr" : "FP 6/15/2024 13:22", @@ -14,15 +14,15 @@ "columnFieldId" : "FP 6/19/2024 17:17", "columnFieldId:" : "FP 6/19/2024 17:17", "createCardsFromColumn:" : "FP 6/19/2024 18:30", - "createColumn:" : "FP 6/19/2024 16:40", - "createNewCard:into:" : "FP 6/19/2024 18:46", + "createColumn:" : "FP 7/11/2024 12:50", + "createNewCard:into:" : "FP 7/11/2024 12:08", "deleteAssignee:fromCard:" : "FP 6/18/2024 11:38", "deleteAssignee:fromDraft:" : "FP 6/19/2024 16:55", "deleteAssignee:fromIssue:" : "FP 6/19/2024 16:54", "deleteLabel:fromCard:" : "FP 6/18/2024 13:41", - "deleteLabel:fromDraft:" : "FP 6/18/2024 13:44", + "deleteLabel:fromDraft:" : "FP 7/11/2024 13:11", "deleteLabel:fromIssue:" : "FP 6/19/2024 16:54", - "fetchCardsIntoColumns:" : "FP 6/17/2024 17:20", + "fetchCardsIntoColumns:" : "FP 7/11/2024 13:23", "getAssigneeString:" : "FP 6/18/2024 12:03", "getProjectId:user:" : "FP 6/15/2024 13:38", "listPossibleAssignees" : "FP 6/16/2024 17:44", @@ -30,16 +30,16 @@ "moveCard:after:toColumn:" : "FP 6/19/2024 18:18", "moveCard:toColumn:" : "FP 6/19/2024 18:16", "moveCardToTop:toColumn:" : "FP 6/19/2024 18:23", - "moveColumn:after:" : "FP 6/19/2024 18:45", - "moveColumnToFront:" : "FP 6/19/2024 18:45", + "moveColumn:after:" : "FP 7/11/2024 12:53", + "moveColumnToFront:" : "FP 7/11/2024 12:53", "parseInputBoardUrl:" : "FP 6/15/2024 13:30", "projectId" : "FP 6/15/2024 13:22", "projectId:" : "FP 6/15/2024 13:22", "queryBoardName" : "FP 6/16/2024 15:39", "queryColumnFieldId" : "FP 6/19/2024 17:31", "queryColumns" : "FP 6/19/2024 17:34", - "renameColumn:to:" : "FP 6/19/2024 16:42", + "renameColumn:to:" : "FP 7/11/2024 12:59", "repo" : "FP 6/17/2024 18:06", - "updateCard:" : "FP 6/18/2024 14:54", + "updateCard:" : "FP 7/11/2024 12:48", "url" : "FP 6/17/2024 18:09", "urlString" : "FP 6/17/2024 18:08" } } diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/README.md b/Squello-Tests.package/SPBMockNewGithubAPI.class/README.md new file mode 100644 index 00000000..e69de29b diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/addAssignee.toIssue..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/addAssignee.toIssue..st new file mode 100644 index 00000000..d4765657 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/addAssignee.toIssue..st @@ -0,0 +1,5 @@ +assignees +addAssignee: aString toIssue: anotherString + + "this is not the actual response, just for testing the execution path" + ^ ('{"type":"issue", "action":"add_assignee", "id": "', aString, '"}') parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/addLabel.toIssue..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/addLabel.toIssue..st new file mode 100644 index 00000000..5096127c --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/addLabel.toIssue..st @@ -0,0 +1,5 @@ +labels +addLabel: aString toIssue: anotherString + + "this is not the actual response, just for testing the execution path" + ^ ('{"type":"issue", "action":"add_label", "id": "', aString, '"}') parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/deleteAssignee.fromIssue..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/deleteAssignee.fromIssue..st new file mode 100644 index 00000000..905dd651 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/deleteAssignee.fromIssue..st @@ -0,0 +1,5 @@ +assignees +deleteAssignee: aString fromIssue: anotherString + + "this is not the actual response, just for testing the execution path" + ^ ('{"type":"issue", "action":"delete_assignee", "id": "', aString, '"}') parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/deleteLabel.fromIssue..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/deleteLabel.fromIssue..st new file mode 100644 index 00000000..d22cfb75 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/deleteLabel.fromIssue..st @@ -0,0 +1,5 @@ +labels +deleteLabel: aString fromIssue: anotherString + + "this is not the actual response, just for testing the execution path" + ^ ('{"type":"issue", "action":"delete_label", "id": "', aString, '"}') parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/listPossibleAssigneesForProject..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/listPossibleAssigneesForProject..st new file mode 100644 index 00000000..255ed0c2 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/listPossibleAssigneesForProject..st @@ -0,0 +1,13 @@ +assignees +listPossibleAssigneesForProject: aString + + ^ '[ + { + "login": "fish", + "id": "42" + }, + { + "login":"cat", + "id":"69" + } + ]' parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/listPossibleLabelsForProject..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/listPossibleLabelsForProject..st new file mode 100644 index 00000000..c7d09258 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/listPossibleLabelsForProject..st @@ -0,0 +1,15 @@ +labels +listPossibleLabelsForProject: aString + + ^ '[ + { + "name": "yummy", + "id": "1234", + "color":"00FF00" + }, + { + "name":"goo", + "id":"4321", + "color":"FF0000" + } + ]' parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/moveCard.toColumn.fieldId.inProject..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/moveCard.toColumn.fieldId.inProject..st new file mode 100644 index 00000000..3cb23bf0 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/moveCard.toColumn.fieldId.inProject..st @@ -0,0 +1,5 @@ +cards +moveCard: aString toColumn: anotherString fieldId: aThirdString inProject: aForthString + + "not actual response, just for testing" + ^ 'moved ' , aString, ' to ', anotherString. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryCardsfromProject..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryCardsfromProject..st new file mode 100644 index 00000000..4bf6a9a6 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryCardsfromProject..st @@ -0,0 +1,61 @@ +cards +queryCardsfromProject: aString + + ^ '[ + { + "id": "1", + "type": "ISSUE", + "content": { + "title": "card 1", + "body": "card 1 body", + "assignees": { + "nodes": [] + }, + "labels": { + "nodes": [] + }, + "closed": true, + "id": "11" + }, + "fieldValueByName": { + "name": "Todo", + "optionId": "60" + } + }, + { + "id": "2", + "type": "DRAFT_ISSUE", + "content": { + "title": "card 2", + "body": "card 2 body", + "assignees": { + "nodes": [] + }, + "id": "12" + }, + "fieldValueByName": { + "name": "Done", + "optionId": "61" + } + }, + { + "id": "3", + "type": "ISSUE", + "content": { + "title": "card 3", + "body": "card 3 body", + "assignees": { + "nodes": [] + }, + "labels": { + "nodes": [] + }, + "closed": false, + "id": "13" + }, + "fieldValueByName": { + "name": "Todo", + "optionId": "60" + } + } + ]' parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryColumnFieldId..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryColumnFieldId..st new file mode 100644 index 00000000..36350479 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryColumnFieldId..st @@ -0,0 +1,4 @@ +cards +queryColumnFieldId: aString + + ^ 'Status'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryColumns..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryColumns..st new file mode 100644 index 00000000..5ff35dab --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryColumns..st @@ -0,0 +1,17 @@ +cards +queryColumns: aString + + ^ '[ + { + "id": "1", + "name": "Todo" + }, + { + "id": "2", + "name": "In Progress" + }, + { + "id": "3", + "name": "Done" + } + ]' parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryProject..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryProject..st new file mode 100644 index 00000000..da1a5557 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryProject..st @@ -0,0 +1,4 @@ +project +queryProject: aString + + ^ '{ "title": "THE PROJECT" }' parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryProjectID.user..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryProjectID.user..st new file mode 100644 index 00000000..17a49866 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/queryProjectID.user..st @@ -0,0 +1,4 @@ +project +queryProjectID: aNumber user: aString + + ^ '69'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateAssignees.fromDraft..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateAssignees.fromDraft..st new file mode 100644 index 00000000..f5351d6b --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateAssignees.fromDraft..st @@ -0,0 +1,5 @@ +assignees +updateAssignees: aString fromDraft: anotherString + + "this is not the actual response, just for testing the execution path" + ^ ('{"type":"draft", "action":"update_assignees","ids":"', aString, ' "}') parseAsJson. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateCardPosition.after.inProject..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateCardPosition.after.inProject..st new file mode 100644 index 00000000..1bd90116 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateCardPosition.after.inProject..st @@ -0,0 +1,5 @@ +cards +updateCardPosition: aString after: anotherString inProject: aThridString + + "not the actual response, this is for testing only" + ^ 'moved ' , aString, ' after ', anotherString. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateDraft..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateDraft..st new file mode 100644 index 00000000..9f3ab519 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateDraft..st @@ -0,0 +1,5 @@ +cards +updateDraft: aSPBCard + + "not an actual response, just for testing" + ^ 'updated draft ', aSPBCard id. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateIssue..st b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateIssue..st new file mode 100644 index 00000000..a85bcee0 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/instance/updateIssue..st @@ -0,0 +1,5 @@ +cards +updateIssue: aSPBCard + + "not an actual response, just for testing" + ^ 'updated issue ', aSPBCard id. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/methodProperties.json b/Squello-Tests.package/SPBMockNewGithubAPI.class/methodProperties.json new file mode 100644 index 00000000..250a4c88 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/methodProperties.json @@ -0,0 +1,20 @@ +{ + "class" : { + }, + "instance" : { + "addAssignee:toIssue:" : "FP 7/11/2024 13:06", + "addLabel:toIssue:" : "FP 7/11/2024 13:06", + "deleteAssignee:fromIssue:" : "FP 7/11/2024 13:06", + "deleteLabel:fromIssue:" : "FP 7/11/2024 13:08", + "listPossibleAssigneesForProject:" : "FP 7/9/2024 11:31", + "listPossibleLabelsForProject:" : "FP 7/9/2024 11:50", + "moveCard:toColumn:fieldId:inProject:" : "FP 7/11/2024 12:42", + "queryCardsfromProject:" : "FP 7/11/2024 12:22", + "queryColumnFieldId:" : "FP 7/11/2024 12:54", + "queryColumns:" : "FP 7/11/2024 12:57", + "queryProject:" : "FP 7/9/2024 11:52", + "queryProjectID:user:" : "FP 7/11/2024 13:03", + "updateAssignees:fromDraft:" : "FP 7/11/2024 13:07", + "updateCardPosition:after:inProject:" : "FP 7/11/2024 12:38", + "updateDraft:" : "FP 7/11/2024 12:46", + "updateIssue:" : "FP 7/11/2024 12:49" } } diff --git a/Squello-Tests.package/SPBMockNewGithubAPI.class/properties.json b/Squello-Tests.package/SPBMockNewGithubAPI.class/properties.json new file mode 100644 index 00000000..18efdca2 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubAPI.class/properties.json @@ -0,0 +1,14 @@ +{ + "category" : "Squello-Tests", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + ], + "name" : "SPBMockNewGithubAPI", + "pools" : [ + ], + "super" : "Object", + "type" : "normal" } diff --git a/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/README.md b/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/README.md new file mode 100644 index 00000000..e69de29b diff --git a/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/instance/api.st b/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/instance/api.st new file mode 100644 index 00000000..90e97845 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/instance/api.st @@ -0,0 +1,5 @@ +accessing +api + + api ifNil: [api := SPBMockNewGithubAPI new]. + ^ api. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/instance/urlString.st b/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/instance/urlString.st new file mode 100644 index 00000000..043c931f --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/instance/urlString.st @@ -0,0 +1,4 @@ +accessing +urlString + + ^ 'users'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/methodProperties.json b/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/methodProperties.json new file mode 100644 index 00000000..70601067 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/methodProperties.json @@ -0,0 +1,6 @@ +{ + "class" : { + }, + "instance" : { + "api" : "FP 7/9/2024 11:11", + "urlString" : "FP 7/9/2024 11:12" } } diff --git a/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/properties.json b/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/properties.json new file mode 100644 index 00000000..a20a1ae6 --- /dev/null +++ b/Squello-Tests.package/SPBMockNewGithubUserBoardProvider.class/properties.json @@ -0,0 +1,14 @@ +{ + "category" : "Squello-Tests", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + ], + "name" : "SPBMockNewGithubUserBoardProvider", + "pools" : [ + ], + "super" : "SPBNewGithubBoardProvider", + "type" : "normal" } diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/setUp.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/setUp.st index f619b21d..971a4c0e 100644 --- a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/setUp.st +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/setUp.st @@ -1,5 +1,5 @@ running setUp - provider := SPBGithubUserBoardProvider new. + provider := SPBMockNewGithubUserBoardProvider new. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddAssigneeToDraft.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddAssigneeToDraft.st new file mode 100644 index 00000000..92cb668b --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddAssigneeToDraft.st @@ -0,0 +1,14 @@ +tests-assignees +testAddAssigneeToDraft + + | card assignee response assignee2 | + card := SPBCard new id: '42'. + card isNote: true. + assignee := SPBAssignee new username: 'dog'; id: '55'. + assignee2 := SPBAssignee new username: 'cat'; id: '66'. + card assignees: {assignee2} asOrderedCollection. + response := provider addAssignee: assignee toCard: card. + self assert: (response at: 'type') equals: 'draft'. + self assert: (response at: 'action') equals: 'update_assignees'. + self assert: ((response at: 'ids') includesSubstring: assignee id). + self assert: ((response at: 'ids') includesSubstring: assignee2 id). \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddAssigneeToIssue.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddAssigneeToIssue.st new file mode 100644 index 00000000..7d3a4395 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddAssigneeToIssue.st @@ -0,0 +1,10 @@ +tests-assignees +testAddAssigneeToIssue + + | card assignee response | + card := SPBCard new id: '42'. + assignee := SPBAssignee new username: 'dog'; id: '55'. + response := provider addAssignee: assignee toCard: card. + self assert: (response at: 'type') equals: 'issue'. + self assert: (response at: 'action') equals: 'add_assignee'. + self assert: (response at: 'id') equals: '55'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddLabelToDraft.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddLabelToDraft.st new file mode 100644 index 00000000..b8cc83e5 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddLabelToDraft.st @@ -0,0 +1,7 @@ +tests-labels +testAddLabelToDraft + + | card response | + card := SPBCard new id: '42'; isNote: true. + response := provider addLabel: #test toCard: card. + self assert: response. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddLabelToIssue.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddLabelToIssue.st new file mode 100644 index 00000000..dfee8746 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAddLabelToIssue.st @@ -0,0 +1,10 @@ +tests-labels +testAddLabelToIssue + + | card response label | + card := SPBCard new id: '42'. + label := SPBLabel new id: '55'; title: 'bug'. + response := provider addLabel: label toCard: card. + self assert: (response at: 'type') equals: 'issue'. + self assert: (response at: 'action') equals: 'add_label'. + self assert: (response at: 'id') equals: '55'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAssigneeUpdateString.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAssigneeUpdateString.st index dbba4444..2615e011 100644 --- a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAssigneeUpdateString.st +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testAssigneeUpdateString.st @@ -1,4 +1,4 @@ -tests +tests-assignees testAssigneeUpdateString | coll str | diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testCreateCardsFromColumn.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testCreateCardsFromColumn.st new file mode 100644 index 00000000..5dfef5aa --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testCreateCardsFromColumn.st @@ -0,0 +1,6 @@ +tests-cards +testCreateCardsFromColumn + + | column | + column := SPBColumn new title: 'the column title'; id: '42'. + self should: [provider createCardsFromColumn: column] raise: NotImplemented. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testCreateColumn.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testCreateColumn.st new file mode 100644 index 00000000..8fefdc55 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testCreateColumn.st @@ -0,0 +1,7 @@ +tests-columns +testCreateColumn + + | response | + response := provider createColumn: #test. + self assert: response. + diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testCreateNewCardInto.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testCreateNewCardInto.st new file mode 100644 index 00000000..886c9ba6 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testCreateNewCardInto.st @@ -0,0 +1,6 @@ +tests-cards +testCreateNewCardInto + + | dict | + dict := Dictionary newFromPairs: {'test'. true}. + self assert: (provider createNewCard: dict into: SPBColumn new). \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testFetchCardIntoColumns.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testFetchCardIntoColumns.st new file mode 100644 index 00000000..7b615601 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testFetchCardIntoColumns.st @@ -0,0 +1,10 @@ +tests-cards +testFetchCardIntoColumns + + | column1 column2 | + column1 := SPBColumn new id: '60'; changeProvider: SPBGithubChangeProvider new. + column2 := SPBColumn new id: '61'; changeProvider: SPBGithubChangeProvider new. + provider fetchCardsIntoColumns: {column1. column2} asOrderedCollection. + self assert: column1 cards size equals: 2. + self assert: column2 cards size equals: 1. + self assert: column1 cards first id equals: '1'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testListPossibleAssignees.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testListPossibleAssignees.st new file mode 100644 index 00000000..260b5069 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testListPossibleAssignees.st @@ -0,0 +1,11 @@ +tests-assignees +testListPossibleAssignees + + | assignees | + assignees := provider listPossibleAssignees. + self assert: assignees isCollection. + self assert: assignees first isAssignee. + self assert: assignees first username equals: 'fish'. + self assert: assignees first id equals: '42'. + self assert: assignees second username equals: 'cat'. + self assert: assignees second id equals: '69'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testListPossibleLabels.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testListPossibleLabels.st new file mode 100644 index 00000000..fe645877 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testListPossibleLabels.st @@ -0,0 +1,13 @@ +tests-labels +testListPossibleLabels + + |labels| + labels := provider listPossibleLabels. + self assert: labels isCollection. + self assert: labels first isLabel. + self assert: labels first title equals: 'yummy'. + self assert: labels first color equals: Color green. + self assert: labels first id equals: '1234'. + self assert: labels second title equals: 'goo'. + self assert: labels second color equals: Color red. + self assert: labels second id equals: '4321'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveCard.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveCard.st new file mode 100644 index 00000000..8d545124 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveCard.st @@ -0,0 +1,8 @@ +tests-cards +testMoveCard + + | card column response | + card := SPBCard new id: '42'. + column := SPBColumn new id: '2'. + response := provider moveCard: card toColumn: column. + self assert: response equals: 'moved 42 to 2'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveCardAfter.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveCardAfter.st new file mode 100644 index 00000000..6236e6ea --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveCardAfter.st @@ -0,0 +1,9 @@ +tests-cards +testMoveCardAfter + + | card column response card2 | + card := SPBCard new id: '42'. + card2 := SPBCard new id: '69'. + column := SPBColumn new id: '2'. + response := provider moveCard: card after: card2 toColumn: column. + self assert: response equals: 'moved 42 after 69'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveCardToTop.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveCardToTop.st new file mode 100644 index 00000000..73b038b7 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveCardToTop.st @@ -0,0 +1,8 @@ +tests-cards +testMoveCardToTop + + | card column response | + card := SPBCard new id: '42'. + column := SPBColumn new id: '2'. + response := provider moveCardToTop: card toColumn: column. + self assert: response equals: 'moved 42 after nil'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveColumnAfter.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveColumnAfter.st new file mode 100644 index 00000000..ac82491d --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveColumnAfter.st @@ -0,0 +1,6 @@ +tests-columns +testMoveColumnAfter + + | response | + response := provider moveColumn: #test after: nil. + self assert: response. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveColumnToFront.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveColumnToFront.st new file mode 100644 index 00000000..0ecad919 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testMoveColumnToFront.st @@ -0,0 +1,6 @@ +tests-columns +testMoveColumnToFront + + | response | + response := provider moveColumnToFront: #test. + self assert: response. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testParseInputBoardUrl.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testParseInputBoardUrl.st new file mode 100644 index 00000000..94098728 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testParseInputBoardUrl.st @@ -0,0 +1,9 @@ +tests +testParseInputBoardUrl + + | url | + url := 'https://github.com/user/very-cool-github-name/projects/42'. + provider parseInputBoardUrl: url. + self assert: provider boardNr equals: 42. + self assert: provider user equals: 'very-cool-github-name'. + self assert: provider projectId equals: '69'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testQueryBoardName.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testQueryBoardName.st new file mode 100644 index 00000000..f2a56d31 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testQueryBoardName.st @@ -0,0 +1,4 @@ +tests-board +testQueryBoardName + + self assert: provider queryBoardName equals: 'THE PROJECT'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testQueryColumnFieldId.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testQueryColumnFieldId.st new file mode 100644 index 00000000..6eece317 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testQueryColumnFieldId.st @@ -0,0 +1,4 @@ +tests-columns +testQueryColumnFieldId + + self assert: provider queryColumnFieldId equals: 'Status'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testQueryColumns.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testQueryColumns.st new file mode 100644 index 00000000..00ad860d --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testQueryColumns.st @@ -0,0 +1,10 @@ +tests-columns +testQueryColumns + + | response | + response := provider queryColumns. + self assert: response isCollection. + self assert: response size equals: 3. + self assert: response first isColumn. + self assert: response first id equals: '1'. + self assert: response first title equals: 'Todo'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveAssigneeFromDraft.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveAssigneeFromDraft.st new file mode 100644 index 00000000..7a7c1937 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveAssigneeFromDraft.st @@ -0,0 +1,14 @@ +tests-assignees +testRemoveAssigneeFromDraft + + | card assignee response assignee2 | + card := SPBCard new id: '42'. + card isNote: true. + assignee := SPBAssignee new username: 'dog'; id: '55'. + assignee2 := SPBAssignee new username: 'cat'; id: '66'. + card assignees: {assignee. assignee2} asOrderedCollection. + response := provider deleteAssignee: assignee fromCard: card. + self assert: (response at: 'type') equals: 'draft'. + self assert: (response at: 'action') equals: 'update_assignees'. + self assert: ((response at: 'ids') includesSubstring: assignee id) not. + self assert: ((response at: 'ids') includesSubstring: assignee2 id). \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveAssigneeFromIssue.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveAssigneeFromIssue.st new file mode 100644 index 00000000..74aa43c2 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveAssigneeFromIssue.st @@ -0,0 +1,10 @@ +tests-assignees +testRemoveAssigneeFromIssue + + | card assignee response | + card := SPBCard new id: '42'. + assignee := SPBAssignee new username: 'dog'; id: '55'. + response := provider deleteAssignee: assignee fromCard: card. + self assert: (response at: 'type') equals: 'issue'. + self assert: (response at: 'action') equals: 'delete_assignee'. + self assert: (response at: 'id') equals: '55'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveLabelFromDraft.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveLabelFromDraft.st new file mode 100644 index 00000000..d94465a5 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveLabelFromDraft.st @@ -0,0 +1,7 @@ +tests-labels +testRemoveLabelFromDraft + + | card response | + card := SPBCard new id: '42'; isNote: true. + response := provider deleteLabel: #test fromCard: card. + self assert: response. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveLabelFromIssue.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveLabelFromIssue.st new file mode 100644 index 00000000..15b243fe --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRemoveLabelFromIssue.st @@ -0,0 +1,10 @@ +tests-labels +testRemoveLabelFromIssue + + | card response label | + card := SPBCard new id: '42'. + label := SPBLabel new id: '55'; title: 'bug'. + response := provider deleteLabel: label fromCard: card. + self assert: (response at: 'type') equals: 'issue'. + self assert: (response at: 'action') equals: 'delete_label'. + self assert: (response at: 'id') equals: '55'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRenameColumn.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRenameColumn.st new file mode 100644 index 00000000..1399e532 --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testRenameColumn.st @@ -0,0 +1,4 @@ +tests-columns +testRenameColumn + + self assert: (provider renameColumn: #test to: 'test'). \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testUpdateDraft.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testUpdateDraft.st new file mode 100644 index 00000000..076c08ec --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testUpdateDraft.st @@ -0,0 +1,7 @@ +tests-cards +testUpdateDraft + + | card response | + card := SPBCard new id: '42'; isNote: true. + response := provider updateCard: card. + self assert: response equals: 'updated draft 42'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testUpdateIssue.st b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testUpdateIssue.st new file mode 100644 index 00000000..d4ba928b --- /dev/null +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/instance/testUpdateIssue.st @@ -0,0 +1,7 @@ +tests-cards +testUpdateIssue + + | card response | + card := SPBCard new id: '42'. + response := provider updateCard: card. + self assert: response equals: 'updated issue 42'. \ No newline at end of file diff --git a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/methodProperties.json b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/methodProperties.json index a15685ce..5b228eb9 100644 --- a/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/methodProperties.json +++ b/Squello-Tests.package/SPBNewGithubBoardProviderTests.class/methodProperties.json @@ -2,6 +2,32 @@ "class" : { }, "instance" : { - "setUp" : "FP 6/18/2024 11:58", + "setUp" : "FP 7/9/2024 11:12", "tearDown" : "FP 6/18/2024 11:55", - "testAssigneeUpdateString" : "FP 6/18/2024 12:03" } } + "testAddAssigneeToDraft" : "FP 7/11/2024 13:07", + "testAddAssigneeToIssue" : "FP 7/11/2024 13:07", + "testAddLabelToDraft" : "FP 7/11/2024 13:13", + "testAddLabelToIssue" : "FP 7/11/2024 13:10", + "testAssigneeUpdateString" : "FP 6/18/2024 12:03", + "testCreateCardsFromColumn" : "FP 7/11/2024 12:06", + "testCreateColumn" : "FP 7/11/2024 12:51", + "testCreateNewCardInto" : "FP 7/11/2024 13:19", + "testFetchCardIntoColumns" : "FP 7/11/2024 12:27", + "testListPossibleAssignees" : "FP 7/9/2024 11:32", + "testListPossibleLabels" : "FP 7/9/2024 11:37", + "testMoveCard" : "FP 7/11/2024 12:43", + "testMoveCardAfter" : "FP 7/11/2024 12:44", + "testMoveCardToTop" : "FP 7/11/2024 12:42", + "testMoveColumnAfter" : "FP 7/11/2024 12:52", + "testMoveColumnToFront" : "FP 7/11/2024 12:52", + "testParseInputBoardUrl" : "FP 7/11/2024 13:03", + "testQueryBoardName" : "FP 7/9/2024 11:49", + "testQueryColumnFieldId" : "FP 7/11/2024 12:53", + "testQueryColumns" : "FP 7/11/2024 12:59", + "testRemoveAssigneeFromDraft" : "FP 7/11/2024 13:07", + "testRemoveAssigneeFromIssue" : "FP 7/11/2024 13:07", + "testRemoveLabelFromDraft" : "FP 7/11/2024 13:12", + "testRemoveLabelFromIssue" : "FP 7/11/2024 13:12", + "testRenameColumn" : "FP 7/11/2024 13:00", + "testUpdateDraft" : "FP 7/11/2024 12:47", + "testUpdateIssue" : "FP 7/11/2024 12:49" } }