From de888b92e945b0c5746acd4f2400c49bd55f1a16 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 21 Aug 2025 13:03:49 -0300 Subject: [PATCH] test: fix golden files Signed-off-by: Carlos Alexandro Becker --- testscript/testdata/mirror.txtar | 70 +++++++++++++++++++++++++-- testscript/testdata/repo-import.txtar | 24 +++++++++ 2 files changed, 89 insertions(+), 5 deletions(-) diff --git a/testscript/testdata/mirror.txtar b/testscript/testdata/mirror.txtar index 76feb782eb6259e319eed66a9206615bad6a40da..5df60625217e07f084deae858dc39e23c4b3db9e 100644 --- a/testscript/testdata/mirror.txtar +++ b/testscript/testdata/mirror.txtar @@ -9,6 +9,8 @@ exec soft serve & ensureserverrunning SSH_PORT # import a repo +# TODO: this repo changes all the time, which will also break the tests. +# Should probably use something else. soft repo import --mirror charmbracelet/catwalk https://github.com/charmbracelet/catwalk.git # check empty description file @@ -77,7 +79,7 @@ cmp stdout info2.txt # get a file soft repo blob charmbracelet/test LICENSE -stdout '.*Creative Commons.*' +stdout '.*MIT.*' # stop the server [windows] stopserver @@ -95,6 +97,30 @@ Owner: admin Default Branch: main Branches: - main + - openrouter-update +Tags: + - v0.4.12 + - v0.4.11 + - v0.4.10 + - v0.4.9 + - v0.4.8 + - v0.4.7 + - v0.4.6 + - v0.4.5 + - v0.4.4 + - v0.4.3 + - v0.4.2 + - v0.4.1 + - v0.4.0 + - v0.3.6 + - v0.3.5 + - v0.3.4 + - v0.3.3 + - v0.3.2 + - v0.3.1 + - v0.3.0 + - v0.2.0 + - v0.1.0 -- info2.txt -- Project Name: catwalk Repository: charmbracelet/test @@ -106,8 +132,42 @@ Owner: admin Default Branch: main Branches: - main + - openrouter-update +Tags: + - v0.4.12 + - v0.4.11 + - v0.4.10 + - v0.4.9 + - v0.4.8 + - v0.4.7 + - v0.4.6 + - v0.4.5 + - v0.4.4 + - v0.4.3 + - v0.4.2 + - v0.4.1 + - v0.4.0 + - v0.3.6 + - v0.3.5 + - v0.3.4 + - v0.3.3 + - v0.3.2 + - v0.3.1 + - v0.3.0 + - v0.2.0 + - v0.1.0 -- tree.txt -- -drwxrwxrwx - 30k -drwxrwxrwx - 50k --rw-r--r-- 19 kB LICENSE --rw-r--r-- 1.1 kB README.md +drwxrwxrwx - .github +drwxrwxrwx - cmd +drwxrwxrwx - internal +drwxrwxrwx - pkg +-rw-r--r-- 577 B .gitignore +-rw-r--r-- 695 B .golangci.yml +-rw-r--r-- 3.3 kB .goreleaser.yaml +-rw-r--r-- 1.1 kB CRUSH.md +-rw-r--r-- 1.1 kB LICENSE +-rw-r--r-- 1.0 kB README.md +-rw-r--r-- 528 B go.mod +-rw-r--r-- 3.0 kB go.sum +-rw-r--r-- 79 B goreleaser.dockerfile +-rw-r--r-- 1.7 kB main.go diff --git a/testscript/testdata/repo-import.txtar b/testscript/testdata/repo-import.txtar index e9bfa31e4cf5a7bd0fedc927f79f1b41060a4230..9c6c9639e636349d0d746071ed0e53b38229bf7b 100644 --- a/testscript/testdata/repo-import.txtar +++ b/testscript/testdata/repo-import.txtar @@ -38,3 +38,27 @@ Owner: admin Default Branch: main Branches: - main + - openrouter-update +Tags: + - v0.4.12 + - v0.4.11 + - v0.4.10 + - v0.4.9 + - v0.4.8 + - v0.4.7 + - v0.4.6 + - v0.4.5 + - v0.4.4 + - v0.4.3 + - v0.4.2 + - v0.4.1 + - v0.4.0 + - v0.3.6 + - v0.3.5 + - v0.3.4 + - v0.3.3 + - v0.3.2 + - v0.3.1 + - v0.3.0 + - v0.2.0 + - v0.1.0