Closed nollymar closed 1 year ago
Note: I have noticed that some actions have changed in definition, so it would be good to update the user history to avoid confusion.
This can be checked by looking at the result of the. files push --help
command
Otherwise, the task meets each of the requirements specified in the acceptance criteria.
Test cases:
Given:
A new image file on working status and es-es lang
, in this case we add kunisports-1.jpg
.
When:
Run files push
command.
Then you can see the new file pushed and in draft status.
![Image](https://github.com/dotCMS/core/assets/29883881/bd044c59-1ced-441d-a473-037b656d758b
Given:
A new folder and a new file in it on live status and en-us lang
, in this case we add nested-folder/jijantes-fc.svg
When:
Run files push --dry-run
command.
Then:
You can see the new folder and the new file in the projection.
Given:
A new folder (empty) in it on live status and en-us lang
, in this case we add nested-folder/
When:
Run files push
command.
Given:
Remove the event folder and its content on live status and en-us lang
, in this case events
When:
Run files push --removeAssets
command.
Given:
A new empty file (zero bytes).
When:
Run files push
Then:
Given:
A new empty folder.
When:
Run files push
Then:
The empty folder is ignored.
Given:
Delete an existing folder and its all content.
When:
Run files push --removeAssets --removeFolders
command.
Then:
You can see the folder new-folder
and its content have been disappeared.
Given:
kunisports-1.jpg
.json or .svg
files.When:
Run files push --fail-fast
command.
Then:
Now we removed the file with errors.
When:
Run files push --fail-fast
command again.
Then:
Successfully execution, this means the command is working fine.
Internal QA: PASSED.
Parent Issue
24732
User Story
As a user, I'd like to execute the
files push
command to upload file(s) or/and folder(s) from my local machine to a remote server (dotCMS) by specifying the location of the local directory or file.Examples:
This command should consume the endpoint implemented here: #24738
Acceptance Criteria
Proposed Objective
Core Features
Proposed Priority
Priority 3 - Average