CI: move grafana-build into pkg/build (#105640)

* move grafana-build into pkg/build
This commit is contained in:
Kevin Minehart
2025-05-20 10:48:00 -05:00
committed by GitHub
parent 759933d3e2
commit 13f4cf162e
222 changed files with 17387 additions and 442 deletions
@@ -0,0 +1,17 @@
package git
import (
"testing"
)
func TestInjectURLCredentials(t *testing.T) {
expected := "https://username:password@example.org/somepath?query=param"
input := "https://example.org/somepath?query=param"
output, err := injectURLCredentials(input, "username", "password")
if err != nil {
t.Fatal("Unexpected error from injectURLCredentials:", err)
}
if expected != output {
t.Fatalf("Unexpected output. Expected '%s', got '%s'", expected, output)
}
}