Skip to content

Commit

Permalink
Merge pull request #48 from safesoftware/exclude-project-items
Browse files Browse the repository at this point in the history
Implement Project upload with V4 and selectable items.
  • Loading branch information
garnold54 authored Mar 13, 2024
2 parents 1538bad + 7df28db commit f88e5cc
Show file tree
Hide file tree
Showing 5 changed files with 979 additions and 70 deletions.
2 changes: 1 addition & 1 deletion cmd/projects_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func projectDownloadRun(f *projectsDownloadFlags) func(cmd *cobra.Command, args
return err
}

fmt.Fprintln(cmd.OutOrStdout(), "FME Server backed up to "+f.file)
fmt.Fprintln(cmd.OutOrStdout(), "Project exported to "+f.file)
return nil
}
}
4 changes: 2 additions & 2 deletions cmd/projects_download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ func TestProjectDownload(t *testing.T) {
statusCode: http.StatusOK,
args: []string{"projects", "download", "--name", "TestProject", "--file", f.Name()},
body: okResponseV3,
wantOutputRegex: "FME Server backed up to",
wantOutputRegex: "Project exported to",
wantFileContents: fileContents{file: f.Name(), contents: okResponseV3},
},
{
name: "download to file exclude sensitive info",
statusCode: http.StatusOK,
args: []string{"projects", "download", "--name", "TestProject", "--file", f.Name(), "--exclude-sensitive-info"},
body: okResponseV3,
wantOutputRegex: "FME Server backed up to",
wantOutputRegex: "Project exported to",
wantFileContents: fileContents{file: f.Name(), contents: okResponseV3},
wantFormParams: map[string]string{"excludeSensitiveInfo": "true"},
},
Expand Down
Loading

0 comments on commit f88e5cc

Please sign in to comment.