Skip to content

Commit

Permalink
greenmask 0.2.0
Browse files Browse the repository at this point in the history
greenmask: update test

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Oct 9, 2024
1 parent 73398ab commit 24fb2b5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Formula/g/greenmask.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Greenmask < Formula
desc "PostgreSQL dump and obfuscation tool"
homepage "https://greenmask.io"
url "https://github.com/GreenmaskIO/greenmask/archive/refs/tags/v0.1.14.tar.gz"
sha256 "b5d7323d9dde7e4fcd288c461f6454b6e0e4e2b09eb62619cb967bf14971c990"
url "https://github.com/GreenmaskIO/greenmask/archive/refs/tags/v0.2.0.tar.gz"
sha256 "d16610cd2ee2f6174ccbb6158b49b5857af24680170fe72c912327d1ee87c333"
license "Apache-2.0"
head "https://github.com/GreenmaskIO/greenmask.git", branch: "main"

Expand Down Expand Up @@ -39,8 +39,8 @@ def install

(testpath/"config.yml").write <<~EOS
common:
pg_bin_path: "/usr/lib/postgresql/16/bin"
tmp_dir: "/tmp"
pg_bin_path: "/usr/lib/postgresql/16/bin"
tmp_dir: "/tmp"
storage:
s3:
Expand Down Expand Up @@ -73,7 +73,9 @@ def install
jobs: 10
dbname: "host=playground-db user=postgres password=example dbname=transformed"
EOS
output = shell_output(bin/"greenmask --config config.yml list-transformers")
assert_match "Generate random uuid", output

output = shell_output("#{bin}/greenmask --config config.yml list-transformers")
assert_match "Generate UUID", output
assert_match "Generates a random word", output
end
end

0 comments on commit 24fb2b5

Please sign in to comment.