21 lines
499 B
Go
21 lines
499 B
Go
//go:build integration
|
|
|
|
package main
|
|
|
|
import (
|
|
"encoding/json"
|
|
"testing"
|
|
|
|
"github.com/novox/mesh-controller/internal/link"
|
|
)
|
|
|
|
func TestADryRunsOutcomeIsTakenInByNothing(t *testing.T) {
|
|
err := builds{}.Built(t.Context(), link.BuildResult{
|
|
ID: "build-1", Repository: "ssh://forge/app.git", Ref: "unreviewed", Module: "app", DryRun: true,
|
|
Manifest: json.RawMessage(`{"module":"app","version":"1"}`),
|
|
})
|
|
if err != nil {
|
|
t.Fatalf("a dry run's outcome was not simply set aside: %v", err)
|
|
}
|
|
}
|