11class Oslo < Formula
22 desc "CLI tool for the OpenSLO spec"
33 homepage "https://openslo.com/"
4- url "https://github.com/OpenSLO/oslo/archive/refs/tags/v0.12 .0.tar.gz"
5- sha256 "d76baf57820b896a648b720e387bb6f8c6137bc05f888a3b1e0e2029827cd607 "
4+ url "https://github.com/OpenSLO/oslo/archive/refs/tags/v0.13 .0.tar.gz"
5+ sha256 "8e3c501103cbfb0d9980a6ea023def0bdef2fe111a8aec3b106302669d452ec2 "
66 license "Apache-2.0"
77 head "https://github.com/openslo/oslo.git" , branch : "main"
88
9- no_autobump! because : :requires_manual_review
10-
119 bottle do
12- sha256 cellar : :any_skip_relocation , arm64_sequoia : "a5977795384029ca047af4c7226a66c98907587e183469462a0f6c8ecb46e659"
13- sha256 cellar : :any_skip_relocation , arm64_sonoma : "8aa369ef73a62437f2aa4bd37d40e508c15a77faf74be64b254052c09f7136d1"
14- sha256 cellar : :any_skip_relocation , arm64_ventura : "588243b56e54179dbabc31b5441cd280fd48e8c0d4c6e810728e432f21f1cdfc"
15- sha256 cellar : :any_skip_relocation , arm64_monterey : "081177cd01addb83aa55c63a939fc19a14a957ee288271553fd0f044c551ee66"
16- sha256 cellar : :any_skip_relocation , sonoma : "a73ea7107111dc167676f2bc7e9ab87d6fde983a81240c158d77cac3bb74a5e7"
17- sha256 cellar : :any_skip_relocation , ventura : "6d05071e13f3980b317c5ff34678006735d85b0dd6e1254b8685586f9d112eb5"
18- sha256 cellar : :any_skip_relocation , monterey : "60bc14460a1534923cd36f62ec3a4b48e2f65decddb0cacb2c8ee8789bba433d"
19- sha256 cellar : :any_skip_relocation , x86_64_linux : "eb22c17240703d9b7348e2e5711b6949751a9a6b629e22b39101d19bc14e369c"
10+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "1dc252e4e8d683047409636266e7c11e62725cc9ac3a21c394c1a0f04b644654"
11+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "1dc252e4e8d683047409636266e7c11e62725cc9ac3a21c394c1a0f04b644654"
12+ sha256 cellar : :any_skip_relocation , arm64_ventura : "1dc252e4e8d683047409636266e7c11e62725cc9ac3a21c394c1a0f04b644654"
13+ sha256 cellar : :any_skip_relocation , sonoma : "bd87cd615862dce34c7e3372d0b2496cb34a4813a352fa0e9c677eaaaa2cbf95"
14+ sha256 cellar : :any_skip_relocation , ventura : "bd87cd615862dce34c7e3372d0b2496cb34a4813a352fa0e9c677eaaaa2cbf95"
15+ sha256 cellar : :any_skip_relocation , x86_64_linux : "7ab3bfa70149e279e8a2902afe6ff19044c128da80df54b70fd711ed3ac445be"
2016 end
2117
2218 depends_on "go" => :build
@@ -27,14 +23,14 @@ def install
2723
2824 generate_completions_from_executable ( bin /"oslo" , "completion" )
2925
30- pkgshare . install "examples "
26+ pkgshare . install "test "
3127 end
3228
3329 test do
34- test_file = pkgshare /"examples/definitions/slo .yaml"
35- assert_match "Valid! " , shell_output ( "#{ bin } /oslo validate -f #{ test_file } " )
30+ test_file = pkgshare /"test/inputs/validate/unknown-field .yaml"
31+ assert_match "json: unknown field " , shell_output ( "#{ bin } /oslo validate -f #{ test_file } 2>&1" , 1 )
3632
37- output = shell_output ( "#{ bin } /oslo convert -f #{ test_file } -o nobl9 2>&1" , 1 )
38- assert_match "the convert command is only supported for apiVersion 'openslo/v1'" , output
33+ output = shell_output ( "#{ bin } /oslo fmt -f #{ pkgshare } /test/inputs/fmt/service.yaml" )
34+ assert_equal File . read ( pkgshare / "test/outputs/fmt/service.yaml" ) , output
3935 end
4036end
0 commit comments