Skip to content

Commit

Permalink
Update paths for config and secret files
Browse files Browse the repository at this point in the history
Modified the paths for config and secret files in README.md, app_test.go, local-file-cfg.json, and app.go. The files have been moved from the test directory to the new 'configs' subdirectory under 'test'. This change properly organizes the files and improves the project structure.
  • Loading branch information
edimarlnx committed Apr 30, 2024
1 parent c79d64a commit 58b3f73
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ system.
"ns": "dev"
},
"local_file_config": {
"filename": "test/local-file-secret.json",
"filename": "test/configs/local-file-secret.json",
"enc_priv_key": "LS0tLS...."
},
"options": {
Expand Down Expand Up @@ -79,7 +79,7 @@ USAGE:
OPTIONS:
--output value, -o value, --out value [$SEC_TPL_OUTPUT]
--secret-file value (default: "./test/local-file-secret.json")
--secret-file value (default: "./test/configs/local-file-secret.json")
--private-key-passphrase value [$LOCAL_SECRET_PRIVATE_KEY_PASSPHRASE]
--help, -h show help
2024/03/03 00:46:34 ERROR Required flag "config" not set
Expand Down
2 changes: 1 addition & 1 deletion pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func InitApp(args []string, outfile, errOutfile io.Writer) {
&outputFlag,
&cli.StringFlag{
Name: "secret-file",
Value: fmt.Sprintf("%s/local-file-secret.json", workdir),
Value: fmt.Sprintf("%s/configs/local-file-secret.json", workdir),
Destination: &secretFile,
},
&cli.StringFlag{
Expand Down
4 changes: 2 additions & 2 deletions test/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func Test_initApp(t *testing.T) {
if err != nil {
workdir = os.TempDir()
}
configFile := "local-file-cfg-test.json"
configFile := "configs/local-file-cfg-test.json"
tests := []DataTest{
{
Name: "init-config",
Expand All @@ -21,7 +21,7 @@ func Test_initApp(t *testing.T) {
"-o",
configFile,
"-secret-file",
fmt.Sprintf("%s/local-file-secret-test.json", workdir),
fmt.Sprintf("%s/configs/local-file-secret-test.json", workdir),
"-private-key-passphrase",
"test-pwd",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"one_password_config": {},
"local_file_config": {
"filename": "/home/edimar/Projetos/edimar/secure-templates/test/local-file-secret.json",
"filename": "/home/edimar/Projetos/edimar/secure-templates/test/configs/local-file-secret.json",
"enc_priv_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFb3dJQkFBS0NBUUVBcmwvTk1UNTRONFp2RHU1bFhwLzVOYmZDWEdSMUF0QitBdDRnNnFEUEpoQ29HS0YvCjJ1Q0hWZjlmeERVRGVqNmlZTG9BRnlqeEdiWEZZSnd1SjFnMU94Ymcwc1lwSzZSUzFUTS9FcHVVM0JMbW0yQzIKSmhTRGdPMzFMZWJ4c2xtSi9MV20wSnNaaVg3ZzZpNzd4c1E0YU9nYU1wc3lvZU9ZQnJkU1QyTGJ2ZlBWYkxIeQpFVVJHdmt4b3NiVjNIaFgybjhKdG9ETHpjVFZ1SjNlYlBnVGR1RWJuYk9zT0tUZGlBUVp6c3VCQ1dOMjdNd1liCmxwK21aYVZKOGp3a25JM2owU0c0Q2liQ3VESzVOMkhjVFUxSEVVL05pbW5IMzlGWTNtVTJtR3VzQ0haVy9xZ2gKdTF4NDZRcmhSdHVPTHVXREdnZFc2REI3TjhUajVvNmtmRi8vbXdJREFRQUJBb0lCQUNOc0FLSE5QOXgvcVpYTgo1YmU0SllhOUFuV0VUcVM0dDdCYmNUSllZbHdvTEExODJSMGNXVUdsODgxR3U2TWNrQjI0Q3dhcFlYaklqUVRZCkZTUVc3aEZIejNuaG1VRnRTd3BXTTZ6VEFBVklyYUhJbnBmVHVQYjYzOEJvVnBiVlM0dVRWd1N2VFJ1Nk0zUS8KQVJSYWpkNzVyMEN5ZURHY3F5aEtHeVZYUHE0eVFSNk9LbHIyclFTdDZlMEpIeW9qK09NM0krWlNLMWtkNkNYSApPQnI3VW9YMnZwUU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ytFcTErb1AyRmpmNElOQXF3NW5EYmNUYWpzdHBqU3drWXhMCmlZbWhBb0dCQUxSdHNteUd2YkdrTmlhaXRDVEQzbXQ0d0ZiTGRRWlc3L1d3dzVleDNtMXB4dEp6Z1V4ZCtGVDAKOWY1ZHdGbEdoZlcreHdRdnFEMkw1K1NGaGw3ajFRWFZRVDgzcythRVFCSWloQ3ZpSTJzeVVWWldycmlLaG0wUgpKSGlBMlNEamV3bEY2RDBFN1JWSy9MRkhkTWJSNTluc0txQmZhamdKWUs2VitrcS8vZE5UCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg=="
},
"options": {
Expand Down
File renamed without changes.

0 comments on commit 58b3f73

Please sign in to comment.