Files
Christoph Schwörer f045b99a25 Codebasis als Dateien ins Arbeitsrepo statt als Gitlink
QuellCode/CentronERP war nur als Gitlink (Submodul-Referenz auf 79c1142)
getrackt, ohne .gitmodules und ohne erreichbares Remote. Der
Untersuchungsgegenstand der Versuchsreihe war damit nicht reproduzierbar
gesichert: Ein Klon haette ein leeres Verzeichnis erhalten, und die Belege
der 3.287 Anforderungen waeren nicht ueberpruefbar gewesen.

Umstellung:
- Historie nach c:\DEV\CentronERP_git_snapshot_79c1142 ausgelagert
  (vollstaendig lesbar, enthaelt 79c1142 und Vorgaenger 89ccfd6)
- Gitlink aus dem Index entfernt
- Dateiinhalt aufgenommen: 24.557 Dateien, rund 333 MB

Die verschachtelte .gitignore der Codebasis gilt weiter, Build-Artefakte
bleiben ausgeschlossen. Details in Versuche/Versuch_01/_Codebasis-Nachweis.md
2026-08-26 07:43:51 +02:00

48 lines
1.9 KiB
C#

using Centron.BusinessLogic.WebServices.Administration.Settings.SettingGroups;
using Centron.BusinessLogic.WebServices.Sales.Support;
using Centron.Gateway.OpenTrans;
using Centron.Host.RestRequests;
using Centron.Office.Client.Analytics.Events;
using Centron.Tests.EndToEnd.Infrastructure;
using Xunit;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.TicketTests.Ticket142989;
public class Ticket142989Tests : EndToEndTest
{
public Ticket142989Tests(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public const int CustomerI3D = 10017; // This customer has employee 27 as their advisor-1
public const int EmployeeI3D = 27; // We will make this employees short-sign very long
public const string LongShortSign = "abcdefghijklmnopqrstuvwxyz"; // 26 characters
public override void Execute()
{
// In this ticket, an error occurred when an employee, who also serves as a customer advisor, has a short-sign exceeding 15 characters.
// If you attempt to create and save a ticket for this customer, an error message appeared,
// stating "string or binary data truncated" due to the length of the employee's short-sign.
//
// It seems like some columns were forgotten in PR 13454, Ticket 132910, ScriptMethod11376
this.PrepareDatabase();
var request = new SaveNewSimpleTicketRequest
{
CustomerI3D = CustomerI3D,
ShortDescription = "My printer is burning!",
};
var ticket = this.WithSession(s => s.GetBL<HelpdeskWebServiceBL>().SaveNewSimpleTicket(request, this.GetLoggedInUser()));
Assert.NotNull(ticket);
}
private void PrepareDatabase()
{
this.Sql($"UPDATE Personal SET KurzZeich = '{LongShortSign}' WHERE I3D = {EmployeeI3D}");
this.WithSession(s => s.GetBL<AppSettingsGroupWebServiceBL>().UpdateIgnoreRequiredFieldsSetting(true));
}
}