Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: censor format version in snapshots #676

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tests/integration_gallery/oranda_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,17 @@ pub fn snapshot_settings_with_version_filter() -> insta::Settings {
settings
}

pub fn snapshot_settings_with_oranda_css_filter() -> insta::Settings {
pub fn snapshot_settings_with_format_version_filter() -> insta::Settings {
let mut settings = snapshot_settings();
settings.add_filter(
r#""format_version":"[a-zA-Z0-9.-]*""#,
r#""format_version":"CENSORED""#,
);
settings
}

pub fn snapshot_settings_with_oranda_css_filter() -> insta::Settings {
let mut settings = snapshot_settings_with_format_version_filter();
settings.add_filter(
r"oranda(-v\d+\.\d+\.\d+(\-prerelease\d*)?(\.\d+)?)?.css",
"oranda.css",
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/gal_akaikatana-public.snap
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ expression: "&snapshots"
</body>
</html>
================ public/artifacts.json ================
{"format_version":"0.6.0-prerelease.2","tag":"v0.2.0","formatted_date":"Aug 8 2023 at 16:03 UTC","platforms_with_downloads":[{"target":["aarch64-apple-darwin"],"display_name":"macOS Apple Silicon","installers":[0,2]},{"target":["x86_64-apple-darwin"],"display_name":"macOS Intel","installers":[0,3]},{"target":["x86_64-pc-windows-msvc"],"display_name":"Windows x64","installers":[1,4]},{"target":["x86_64-unknown-linux-gnu"],"display_name":"Linux x64","installers":[0,5]}],"downloadable_files":[[0,{"name":"akaikatana-repack-aarch64-apple-darwin.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-aarch64-apple-darwin.tar.xz","view_path":null,"checksum_file":null},["macOS Apple Silicon"]],[3,{"name":"akaikatana-repack-x86_64-apple-darwin.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-apple-darwin.tar.xz","view_path":null,"checksum_file":null},["macOS Intel"]],[4,{"name":"akaikatana-repack-x86_64-pc-windows-msvc.zip","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-pc-windows-msvc.zip","view_path":null,"checksum_file":null},["Windows x64"]],[5,{"name":"akaikatana-repack-x86_64-unknown-linux-gnu.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-unknown-linux-gnu.tar.xz","view_path":null,"checksum_file":null},["Linux x64"]]],"release":{"artifacts":{"files":[{"name":"akaikatana-repack-aarch64-apple-darwin.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-aarch64-apple-darwin.tar.xz","view_path":null,"checksum_file":null},{"name":"akaikatana-repack-installer.ps1","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.ps1","view_path":"akaikatana-repack-installer.ps1.txt","checksum_file":null},{"name":"akaikatana-repack-installer.sh","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.sh","view_path":"akaikatana-repack-installer.sh.txt","checksum_file":null},{"name":"akaikatana-repack-x86_64-apple-darwin.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-apple-darwin.tar.xz","view_path":null,"checksum_file":null},{"name":"akaikatana-repack-x86_64-pc-windows-msvc.zip","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-pc-windows-msvc.zip","view_path":null,"checksum_file":null},{"name":"akaikatana-repack-x86_64-unknown-linux-gnu.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-unknown-linux-gnu.tar.xz","view_path":null,"checksum_file":null},{"name":"dist-manifest.json","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/dist-manifest.json","view_path":null,"checksum_file":null}],"installers":[{"label":"shell","description":"Install prebuilt binaries via shell script","app_name":null,"method":{"type":"Run","file":2,"run_hint":"curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mistydemeo/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.sh | sh"}},{"label":"powershell","description":"Install prebuilt binaries via powershell script","app_name":null,"method":{"type":"Run","file":1,"run_hint":"irm https://github.com/mistydemeo/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.ps1 | iex"}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":0}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":3}},{"label":"zip","description":"","app_name":null,"method":{"type":"Download","file":4}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":5}}],"targets":{"aarch64-apple-darwin":[0,2],"x86_64-apple-darwin":[0,3],"x86_64-pc-windows-msvc":[1,4],"x86_64-unknown-linux-gnu":[0,5]}}},"os_script":"/akaikatana-repack/artifacts.js","has_checksum_files":false}
{"format_version":"CENSORED","tag":"v0.2.0","formatted_date":"Aug 8 2023 at 16:03 UTC","platforms_with_downloads":[{"target":["aarch64-apple-darwin"],"display_name":"macOS Apple Silicon","installers":[0,2]},{"target":["x86_64-apple-darwin"],"display_name":"macOS Intel","installers":[0,3]},{"target":["x86_64-pc-windows-msvc"],"display_name":"Windows x64","installers":[1,4]},{"target":["x86_64-unknown-linux-gnu"],"display_name":"Linux x64","installers":[0,5]}],"downloadable_files":[[0,{"name":"akaikatana-repack-aarch64-apple-darwin.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-aarch64-apple-darwin.tar.xz","view_path":null,"checksum_file":null},["macOS Apple Silicon"]],[3,{"name":"akaikatana-repack-x86_64-apple-darwin.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-apple-darwin.tar.xz","view_path":null,"checksum_file":null},["macOS Intel"]],[4,{"name":"akaikatana-repack-x86_64-pc-windows-msvc.zip","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-pc-windows-msvc.zip","view_path":null,"checksum_file":null},["Windows x64"]],[5,{"name":"akaikatana-repack-x86_64-unknown-linux-gnu.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-unknown-linux-gnu.tar.xz","view_path":null,"checksum_file":null},["Linux x64"]]],"release":{"artifacts":{"files":[{"name":"akaikatana-repack-aarch64-apple-darwin.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-aarch64-apple-darwin.tar.xz","view_path":null,"checksum_file":null},{"name":"akaikatana-repack-installer.ps1","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.ps1","view_path":"akaikatana-repack-installer.ps1.txt","checksum_file":null},{"name":"akaikatana-repack-installer.sh","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.sh","view_path":"akaikatana-repack-installer.sh.txt","checksum_file":null},{"name":"akaikatana-repack-x86_64-apple-darwin.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-apple-darwin.tar.xz","view_path":null,"checksum_file":null},{"name":"akaikatana-repack-x86_64-pc-windows-msvc.zip","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-pc-windows-msvc.zip","view_path":null,"checksum_file":null},{"name":"akaikatana-repack-x86_64-unknown-linux-gnu.tar.xz","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-x86_64-unknown-linux-gnu.tar.xz","view_path":null,"checksum_file":null},{"name":"dist-manifest.json","download_url":"https://github.com/oranda-gallery/akaikatana-repack/releases/download/v0.2.0/dist-manifest.json","view_path":null,"checksum_file":null}],"installers":[{"label":"shell","description":"Install prebuilt binaries via shell script","app_name":null,"method":{"type":"Run","file":2,"run_hint":"curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mistydemeo/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.sh | sh"}},{"label":"powershell","description":"Install prebuilt binaries via powershell script","app_name":null,"method":{"type":"Run","file":1,"run_hint":"irm https://github.com/mistydemeo/akaikatana-repack/releases/download/v0.2.0/akaikatana-repack-installer.ps1 | iex"}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":0}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":3}},{"label":"zip","description":"","app_name":null,"method":{"type":"Download","file":4}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":5}}],"targets":{"aarch64-apple-darwin":[0,2],"x86_64-apple-darwin":[0,3],"x86_64-pc-windows-msvc":[1,4],"x86_64-unknown-linux-gnu":[0,5]}}},"os_script":"/akaikatana-repack/artifacts.js","has_checksum_files":false}
================ public/changelog/index.html ================
<!DOCTYPE html>
<html lang="en" id="oranda" class="axo">
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/gal_axolotlsay-public.snap
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ expression: "&snapshots"
</body>
</html>
================ public/artifacts.json ================
{"format_version":"0.6.0-prerelease.2","tag":"v0.1.0","formatted_date":"Aug 8 2023 at 16:07 UTC","platforms_with_downloads":[{"target":["aarch64-apple-darwin"],"display_name":"macOS Apple Silicon","installers":[0,7,3]},{"target":["x86_64-apple-darwin"],"display_name":"macOS Intel","installers":[0,7,4]},{"target":["x86_64-pc-windows-msvc"],"display_name":"Windows x64","installers":[1,7,5]},{"target":["x86_64-unknown-linux-gnu"],"display_name":"Linux x64","installers":[0,7,6]}],"downloadable_files":[[0,{"name":"axolotlsay-aarch64-apple-darwin.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-aarch64-apple-darwin.tar.gz","view_path":null,"checksum_file":null},["macOS Apple Silicon"]],[4,{"name":"axolotlsay-x86_64-apple-darwin.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-apple-darwin.tar.gz","view_path":null,"checksum_file":null},["macOS Intel"]],[5,{"name":"axolotlsay-x86_64-pc-windows-msvc.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-pc-windows-msvc.tar.gz","view_path":null,"checksum_file":null},["Windows x64"]],[6,{"name":"axolotlsay-x86_64-unknown-linux-gnu.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-unknown-linux-gnu.tar.gz","view_path":null,"checksum_file":null},["Linux x64"]]],"release":{"artifacts":{"files":[{"name":"axolotlsay-aarch64-apple-darwin.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-aarch64-apple-darwin.tar.gz","view_path":null,"checksum_file":null},{"name":"axolotlsay-installer.ps1","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-installer.ps1","view_path":"axolotlsay-installer.ps1.txt","checksum_file":null},{"name":"axolotlsay-installer.sh","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-installer.sh","view_path":"axolotlsay-installer.sh.txt","checksum_file":null},{"name":"axolotlsay-npm-package.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-npm-package.tar.gz","view_path":null,"checksum_file":null},{"name":"axolotlsay-x86_64-apple-darwin.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-apple-darwin.tar.gz","view_path":null,"checksum_file":null},{"name":"axolotlsay-x86_64-pc-windows-msvc.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-pc-windows-msvc.tar.gz","view_path":null,"checksum_file":null},{"name":"axolotlsay-x86_64-unknown-linux-gnu.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-unknown-linux-gnu.tar.gz","view_path":null,"checksum_file":null},{"name":"dist-manifest.json","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/dist-manifest.json","view_path":null,"checksum_file":null}],"installers":[{"label":"shell","description":"Install prebuilt binaries via shell script","app_name":null,"method":{"type":"Run","file":2,"run_hint":"curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/axolotlsay/releases/download/v0.1.0/axolotlsay-installer.sh | sh"}},{"label":"powershell","description":"Install prebuilt binaries via powershell script","app_name":null,"method":{"type":"Run","file":1,"run_hint":"irm https://github.com/axodotdev/axolotlsay/releases/download/v0.1.0/axolotlsay-installer.ps1 | iex"}},{"label":"npm","description":"Install prebuilt binaries into your npm project","app_name":null,"method":{"type":"Run","file":null,"run_hint":"npm install @axodotdev/[email protected]"}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":0}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":4}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":5}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":6}},{"label":"npx","description":"","app_name":null,"method":{"type":"Run","file":null,"run_hint":"npx @axodotdev/axolotlsay"}},{"label":"crates.io","description":"","app_name":null,"method":{"type":"Run","file":null,"run_hint":"cargo install axolotlsay --locked --profile=dist"}},{"label":"binstall","description":"","app_name":null,"method":{"type":"Run","file":null,"run_hint":"cargo binstall axolotlsay"}}],"targets":{"aarch64-apple-darwin":[0,7,3],"aarch64-pc-windows-msvc":[7],"aarch64-unknown-linux-gnu":[7],"aarch64-unknown-linux-musl":[7],"i686-apple-darwin":[7],"i686-pc-windows-msvc":[7],"i686-unknown-linux-gnu":[7],"i686-unknown-linux-musl":[7],"x86_64-apple-darwin":[0,7,4],"x86_64-pc-windows-msvc":[1,7,5],"x86_64-unknown-linux-gnu":[0,7,6],"x86_64-unknown-linux-musl":[7]}}},"os_script":"/axolotlsay/artifacts.js","has_checksum_files":false}
{"format_version":"CENSORED","tag":"v0.1.0","formatted_date":"Aug 8 2023 at 16:07 UTC","platforms_with_downloads":[{"target":["aarch64-apple-darwin"],"display_name":"macOS Apple Silicon","installers":[0,7,3]},{"target":["x86_64-apple-darwin"],"display_name":"macOS Intel","installers":[0,7,4]},{"target":["x86_64-pc-windows-msvc"],"display_name":"Windows x64","installers":[1,7,5]},{"target":["x86_64-unknown-linux-gnu"],"display_name":"Linux x64","installers":[0,7,6]}],"downloadable_files":[[0,{"name":"axolotlsay-aarch64-apple-darwin.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-aarch64-apple-darwin.tar.gz","view_path":null,"checksum_file":null},["macOS Apple Silicon"]],[4,{"name":"axolotlsay-x86_64-apple-darwin.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-apple-darwin.tar.gz","view_path":null,"checksum_file":null},["macOS Intel"]],[5,{"name":"axolotlsay-x86_64-pc-windows-msvc.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-pc-windows-msvc.tar.gz","view_path":null,"checksum_file":null},["Windows x64"]],[6,{"name":"axolotlsay-x86_64-unknown-linux-gnu.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-unknown-linux-gnu.tar.gz","view_path":null,"checksum_file":null},["Linux x64"]]],"release":{"artifacts":{"files":[{"name":"axolotlsay-aarch64-apple-darwin.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-aarch64-apple-darwin.tar.gz","view_path":null,"checksum_file":null},{"name":"axolotlsay-installer.ps1","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-installer.ps1","view_path":"axolotlsay-installer.ps1.txt","checksum_file":null},{"name":"axolotlsay-installer.sh","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-installer.sh","view_path":"axolotlsay-installer.sh.txt","checksum_file":null},{"name":"axolotlsay-npm-package.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-npm-package.tar.gz","view_path":null,"checksum_file":null},{"name":"axolotlsay-x86_64-apple-darwin.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-apple-darwin.tar.gz","view_path":null,"checksum_file":null},{"name":"axolotlsay-x86_64-pc-windows-msvc.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-pc-windows-msvc.tar.gz","view_path":null,"checksum_file":null},{"name":"axolotlsay-x86_64-unknown-linux-gnu.tar.gz","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/axolotlsay-x86_64-unknown-linux-gnu.tar.gz","view_path":null,"checksum_file":null},{"name":"dist-manifest.json","download_url":"https://github.com/oranda-gallery/axolotlsay/releases/download/v0.1.0/dist-manifest.json","view_path":null,"checksum_file":null}],"installers":[{"label":"shell","description":"Install prebuilt binaries via shell script","app_name":null,"method":{"type":"Run","file":2,"run_hint":"curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/axolotlsay/releases/download/v0.1.0/axolotlsay-installer.sh | sh"}},{"label":"powershell","description":"Install prebuilt binaries via powershell script","app_name":null,"method":{"type":"Run","file":1,"run_hint":"irm https://github.com/axodotdev/axolotlsay/releases/download/v0.1.0/axolotlsay-installer.ps1 | iex"}},{"label":"npm","description":"Install prebuilt binaries into your npm project","app_name":null,"method":{"type":"Run","file":null,"run_hint":"npm install @axodotdev/[email protected]"}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":0}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":4}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":5}},{"label":"tarball","description":"","app_name":null,"method":{"type":"Download","file":6}},{"label":"npx","description":"","app_name":null,"method":{"type":"Run","file":null,"run_hint":"npx @axodotdev/axolotlsay"}},{"label":"crates.io","description":"","app_name":null,"method":{"type":"Run","file":null,"run_hint":"cargo install axolotlsay --locked --profile=dist"}},{"label":"binstall","description":"","app_name":null,"method":{"type":"Run","file":null,"run_hint":"cargo binstall axolotlsay"}}],"targets":{"aarch64-apple-darwin":[0,7,3],"aarch64-pc-windows-msvc":[7],"aarch64-unknown-linux-gnu":[7],"aarch64-unknown-linux-musl":[7],"i686-apple-darwin":[7],"i686-pc-windows-msvc":[7],"i686-unknown-linux-gnu":[7],"i686-unknown-linux-musl":[7],"x86_64-apple-darwin":[0,7,4],"x86_64-pc-windows-msvc":[1,7,5],"x86_64-unknown-linux-gnu":[0,7,6],"x86_64-unknown-linux-musl":[7]}}},"os_script":"/axolotlsay/artifacts.js","has_checksum_files":false}
================ public/changelog/index.html ================
<!DOCTYPE html>
<html lang="en" id="oranda" class="dark axo">
Expand Down
Loading