Skip to content

Commit

Permalink
okta-aws-cli 2.3.0
Browse files Browse the repository at this point in the history
okta-aws-cli: update test

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
BrewTestBot authored and chenrui333 committed Jul 13, 2024
1 parent 72b0332 commit 495d0fb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Formula/o/okta-aws-cli.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class OktaAwsCli < Formula
desc "Okta federated identity for AWS CLI"
homepage "https://github.com/okta/okta-aws-cli"
url "https://github.com/okta/okta-aws-cli/archive/refs/tags/v2.2.0.tar.gz"
sha256 "178edd27148424af461acda4e5da85fdea6c045d55af6d72a5484847a3c9814e"
url "https://github.com/okta/okta-aws-cli/archive/refs/tags/v2.3.0.tar.gz"
sha256 "e7ac241007f4a50b637ea2d0d15f3e1123245e3d874c16d7e5d8ab9812688830"
license "Apache-2.0"

livecheck do
Expand All @@ -27,10 +27,9 @@ def install
end

test do
str_help = shell_output("#{bin}/okta-aws-cli --help")
assert_match "Usage:", str_help
assert_match "Flags:", str_help
str_error = shell_output("#{bin}/okta-aws-cli -o example.org -c homebrew-test 2>&1", 1)
assert_match 'Error: authorize received API response "404 Not Found"', str_error
output = shell_output("#{bin}/okta-aws-cli list-profiles")
assert_match "Profiles:", output

assert_match version.to_s, shell_output("#{bin}/okta-aws-cli --version")
end
end

0 comments on commit 495d0fb

Please sign in to comment.