Add InstallScriptBuilder + GET /install.sh + GET /client.tar.gz
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using backend.Install;
|
||||
using FluentAssertions;
|
||||
using Xunit;
|
||||
|
||||
namespace backend.tests;
|
||||
|
||||
public class InstallScriptBuilderTests
|
||||
{
|
||||
[Fact]
|
||||
public void Build_inlines_the_backend_url_into_the_script()
|
||||
{
|
||||
var script = new InstallScriptBuilder().Build("https://example.test");
|
||||
script.Should().Contain("BACKEND_URL=\"https://example.test\"");
|
||||
script.Should().Contain("#!/usr/bin/env bash");
|
||||
script.Should().Contain("$BACKEND_URL/client.tar.gz");
|
||||
script.Should().Contain("client.pair");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user