Skip to content

Commit

Permalink
refactoring related to #423
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobuzzi committed Aug 22, 2021
1 parent 587b33f commit c56c14e
Show file tree
Hide file tree
Showing 24 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
other
testCreateEmptyAttachmentStructureAtCurrentOrbeon

self createEmptyAttachmentStructureAt: self getOrbeonWebServerConfiguration printBaseAttachmentPath
self createEmptyAttachmentStructureAt: testRoot printBaseAttachmentPath
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
other
testDeleteAllOSFilesAtCurrentOrbeon

self deleteAllOSFilesAt: self getOrbeonWebServerConfiguration printBaseAttachmentPath.
self deleteAllOSFilesAt: testRoot printBaseAttachmentPath.

self testCreateEmptyAttachmentStructureAtCurrentOrbeon.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"createEmptyAttachmentStructureAt:" : "brunobb 07/29/2021 07:15",
"deleteAllOSFilesAt:" : "brunobb 07/29/2021 07:15",
"setUp" : "brunobb 07/29/2021 07:15",
"testCreateEmptyAttachmentStructureAtCurrentOrbeon" : "brunobb 06/13/2020 17:23",
"testCreateEmptyAttachmentStructureAtCurrentOrbeon" : "brunobb 08/17/2021 13:13",
"testCreateEmptyAttachmentStructureAtTmp" : "brunobb 05/29/2020 12:07",
"testDeleteAllOSFilesAtCurrentOrbeon" : "brunobb 02/18/2021 12:42",
"testDeleteAllOSFilesAtCurrentOrbeon" : "brunobb 08/17/2021 13:13",
"testDeleteAllOSFilesAtTmp" : "brunobb 05/29/2020 12:07" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testDoIt
| path |

path := self getOrbeonWebServerConfiguration getPublishedDefinitionsPathFor: formName in: app.
path := testRoot getPublishedDefinitionsPathFor: formName in: app.

apiOperation doIt.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testWritePermissionsError
| path |

path := self getOrbeonWebServerConfiguration getPublishedDefinitionsPathFor: formName in: app.
path := testRoot getPublishedDefinitionsPathFor: formName in: app.

System performOnServer: 'chmod -R 000 ', path.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
},
"instance" : {
"setUp" : "brunobb 07/29/2021 07:06",
"testDoIt" : "brunobb 06/28/2020 12:24",
"testWritePermissionsError" : "brunobb 04/26/2021 12:01" } }
"testDoIt" : "brunobb 08/17/2021 13:14",
"testWritePermissionsError" : "brunobb 08/17/2021 13:14" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ other
testDoIt
| defaultPath temPath |

temPath := self getOrbeonWebServerConfiguration getTempPath.
defaultPath := self getOrbeonWebServerConfiguration getSavedDefinitionsPathFor: formName in: app.
temPath := testRoot getTempPath.
defaultPath := testRoot getSavedDefinitionsPathFor: formName in: app.

apiOperation doIt.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testWritePermissionsError
| temPath |

temPath := self getOrbeonWebServerConfiguration getTempPath.
temPath := testRoot getTempPath.

System performOnServer: 'chmod -R 000 ', temPath.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
},
"instance" : {
"setUp" : "brunobb 07/29/2021 07:06",
"testDoIt" : "brunobb 06/28/2020 12:39",
"testWritePermissionsError" : "brunobb 04/26/2021 11:27" } }
"testDoIt" : "brunobb 08/17/2021 13:13",
"testWritePermissionsError" : "brunobb 08/17/2021 13:14" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testDoIt
| path |

path := self getOrbeonWebServerConfiguration getDraftsPathFor: formName in: app.
path := testRoot getDraftsPathFor: formName in: app.

apiOperation doIt.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testWritePermissionsError
| path |

path := self getOrbeonWebServerConfiguration getDraftsPathFor: formName in: app.
path := testRoot getDraftsPathFor: formName in: app.

System performOnServer: 'chmod -R 000 ', path.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
},
"instance" : {
"setUp" : "brunobb 07/29/2021 07:08",
"testDoIt" : "brunobb 06/28/2020 12:45",
"testWritePermissionsError" : "brunobb 06/28/2020 12:46" } }
"testDoIt" : "brunobb 08/17/2021 13:14",
"testWritePermissionsError" : "brunobb 08/17/2021 13:15" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testDoIt
| path |

path := self getOrbeonWebServerConfiguration getInstancesPathFor: formName in: app.
path := testRoot getInstancesPathFor: formName in: app.

apiOperation doIt.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testWritePermissionsError
| path |

path := self getOrbeonWebServerConfiguration getInstancesPathFor: formName in: app.
path := testRoot getInstancesPathFor: formName in: app.

System performOnServer: 'chmod -R 000 ', path.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
},
"instance" : {
"setUp" : "brunobb 07/29/2021 07:08",
"testDoIt" : "brunobb 06/28/2020 12:48",
"testWritePermissionsError" : "brunobb 06/28/2020 12:48" } }
"testDoIt" : "brunobb 08/17/2021 13:14",
"testWritePermissionsError" : "brunobb 08/17/2021 13:15" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testDoIt
| path result |

path := self getOrbeonWebServerConfiguration getPublishedDefinitionsPathFor: formName in: app.
path := testRoot getPublishedDefinitionsPathFor: formName in: app.
newFile := GsFile open: (path, formId, '-', fileId) mode: 'wb' onClient: false.
newFile
nextPutAll: fileContents;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
},
"instance" : {
"setUp" : "brunobb 07/29/2021 07:09",
"testDoIt" : "brunobb 06/28/2020 14:28",
"testDoIt" : "brunobb 08/17/2021 13:14",
"testFileDoesNotExist" : "brunobb 06/28/2020 14:35" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testDoIt
| path result |

path := self getOrbeonWebServerConfiguration getSavedDefinitionsPathFor: formName in: app.
path := testRoot getSavedDefinitionsPathFor: formName in: app.
newFile := GsFile open: (path, formId, '-', fileId) mode: 'wb' onClient: false.
newFile
nextPutAll: fileContents;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
},
"instance" : {
"setUp" : "brunobb 07/29/2021 07:12",
"testDoIt" : "brunobb 06/28/2020 14:34",
"testDoIt" : "brunobb 08/17/2021 13:14",
"testFileDoesNotExist" : "brunobb 06/28/2020 14:35" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testDoIt
| path result |

path := self getOrbeonWebServerConfiguration getDraftsPathFor: formName in: app.
path := testRoot getDraftsPathFor: formName in: app.
newFile := GsFile open: (path, formId, '-', fileId) mode: 'wb' onClient: false.
newFile
nextPutAll: fileContents;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
},
"instance" : {
"setUp" : "brunobb 07/29/2021 07:12",
"testDoIt" : "brunobb 06/28/2020 13:20",
"testDoIt" : "brunobb 08/17/2021 13:14",
"testFileDoesNotExist" : "brunobb 06/28/2020 13:21" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ other
testDoIt
| path result |

path := self getOrbeonWebServerConfiguration getInstancesPathFor: formName in: app.
path := testRoot getInstancesPathFor: formName in: app.
newFile := GsFile open: (path, formId, '-', fileId) mode: 'wb' onClient: false.
newFile
nextPutAll: fileContents;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
},
"instance" : {
"setUp" : "brunobb 07/29/2021 07:12",
"testDoIt" : "brunobb 06/28/2020 13:22",
"testDoIt" : "brunobb 08/17/2021 13:13",
"testFileDoesNotExist" : "brunobb 06/28/2020 13:21" } }

Large diffs are not rendered by default.

0 comments on commit c56c14e

Please sign in to comment.