From 48b9d0fb4366718b88ee874a1223b41dd4f20611 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Sun, 23 Apr 2023 08:43:11 -0700 Subject: [PATCH] Moved to IFX (Development) from EC (Staging) --- .../v2.49.0/BACKLOG-EQPT.cs | 6 ++--- .../v2.49.0/BACKLOG.cs | 6 ++--- .../v2.49.0/MESAFIBACKLOG.cs | 6 ++--- .../v2.49.0/BACKLOG-EQPT.cs | 14 +++++----- .../v2.49.0/BACKLOG.cs | 14 +++++----- .../v2.49.0/MESAFIBACKLOG.cs | 14 +++++----- Adaptation/_Tests/Static/BACKLOG.cs | 26 +++++++++++++++++++ 7 files changed, 56 insertions(+), 30 deletions(-) rename Adaptation/_Tests/CreateSelfDescription/{Staging => Development}/v2.49.0/BACKLOG-EQPT.cs (88%) rename Adaptation/_Tests/CreateSelfDescription/{Staging => Development}/v2.49.0/BACKLOG.cs (89%) rename Adaptation/_Tests/CreateSelfDescription/{Staging => Development}/v2.49.0/MESAFIBACKLOG.cs (89%) rename Adaptation/_Tests/Extract/{Staging => Development}/v2.49.0/BACKLOG-EQPT.cs (57%) rename Adaptation/_Tests/Extract/{Staging => Development}/v2.49.0/BACKLOG.cs (71%) rename Adaptation/_Tests/Extract/{Staging => Development}/v2.49.0/MESAFIBACKLOG.cs (71%) diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/BACKLOG-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG-EQPT.cs similarity index 88% rename from Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/BACKLOG-EQPT.cs rename to Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG-EQPT.cs index b1a684e..8c076a8 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/BACKLOG-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG-EQPT.cs @@ -6,7 +6,7 @@ using System.Diagnostics; using System.IO; using System.Reflection; -namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_49_0; +namespace Adaptation._Tests.CreateSelfDescription.Development.v2_49_0; [TestClass] public class BACKLOG_EQPT : EAFLoggingUnitTesting @@ -18,7 +18,7 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static BACKLOG_EQPT EAFLoggingUnitTesting { get; private set; } - static BACKLOG_EQPT() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static BACKLOG_EQPT() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy"; public BACKLOG_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { @@ -51,7 +51,7 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting [Ignore] #endif [TestMethod] - public void Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile() + public void Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile() { string check = ".xlsx"; MethodBase methodBase = new StackFrame().GetMethod(); diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/BACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG.cs similarity index 89% rename from Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/BACKLOG.cs rename to Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG.cs index ac92d1d..98e80eb 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/BACKLOG.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG.cs @@ -6,7 +6,7 @@ using System.Diagnostics; using System.IO; using System.Reflection; -namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_49_0; +namespace Adaptation._Tests.CreateSelfDescription.Development.v2_49_0; [TestClass] public class BACKLOG : EAFLoggingUnitTesting @@ -18,7 +18,7 @@ public class BACKLOG : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static BACKLOG EAFLoggingUnitTesting { get; private set; } - static BACKLOG() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static BACKLOG() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy"; public BACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { @@ -51,7 +51,7 @@ public class BACKLOG : EAFLoggingUnitTesting [Ignore] #endif [TestMethod] - public void Staging__v2_49_0__BACKLOG__ConvertExcelToJson() + public void Development__v2_49_0__BACKLOG__ConvertExcelToJson() { string check = "*.xlsx"; MethodBase methodBase = new StackFrame().GetMethod(); diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MESAFIBACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/MESAFIBACKLOG.cs similarity index 89% rename from Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MESAFIBACKLOG.cs rename to Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/MESAFIBACKLOG.cs index 5f36174..13d967e 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MESAFIBACKLOG.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/MESAFIBACKLOG.cs @@ -6,7 +6,7 @@ using System.Diagnostics; using System.IO; using System.Reflection; -namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_49_0; +namespace Adaptation._Tests.CreateSelfDescription.Development.v2_49_0; [TestClass] public class MESAFIBACKLOG : EAFLoggingUnitTesting @@ -18,7 +18,7 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting internal static string DummyRoot { get; private set; } internal static MESAFIBACKLOG EAFLoggingUnitTesting { get; private set; } - static MESAFIBACKLOG() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + static MESAFIBACKLOG() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy"; public MESAFIBACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) { @@ -51,7 +51,7 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting [Ignore] #endif [TestMethod] - public void Staging__v2_49_0__MESAFIBACKLOG__json() + public void Development__v2_49_0__MESAFIBACKLOG__json() { string check = "*.json"; MethodBase methodBase = new StackFrame().GetMethod(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/BACKLOG-EQPT.cs b/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG-EQPT.cs similarity index 57% rename from Adaptation/_Tests/Extract/Staging/v2.49.0/BACKLOG-EQPT.cs rename to Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG-EQPT.cs index b314ea3..0dd63db 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/BACKLOG-EQPT.cs +++ b/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG-EQPT.cs @@ -4,7 +4,7 @@ using System.Diagnostics; using System.Reflection; using System.Threading; -namespace Adaptation._Tests.Extract.Staging.v2_49_0; +namespace Adaptation._Tests.Extract.Development.v2_49_0; [TestClass] public class BACKLOG_EQPT @@ -13,13 +13,13 @@ public class BACKLOG_EQPT #pragma warning disable CA2254 #pragma warning disable IDE0060 - private static CreateSelfDescription.Staging.v2_49_0.BACKLOG_EQPT _BACKLOG_EQPT; + private static CreateSelfDescription.Development.v2_49_0.BACKLOG_EQPT _BACKLOG_EQPT; [ClassInitialize] public static void ClassInitialize(TestContext testContext) { - CreateSelfDescription.Staging.v2_49_0.BACKLOG_EQPT.ClassInitialize(testContext); - _BACKLOG_EQPT = CreateSelfDescription.Staging.v2_49_0.BACKLOG_EQPT.EAFLoggingUnitTesting; + CreateSelfDescription.Development.v2_49_0.BACKLOG_EQPT.ClassInitialize(testContext); + _BACKLOG_EQPT = CreateSelfDescription.Development.v2_49_0.BACKLOG_EQPT.EAFLoggingUnitTesting; } private static void NonThrowTryCatch() @@ -33,18 +33,18 @@ public class BACKLOG_EQPT [Ignore] #endif [TestMethod] - public void Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile() => _BACKLOG_EQPT.Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile(); + public void Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile() => _BACKLOG_EQPT.Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile(); #if DEBUG [Ignore] #endif [TestMethod] - public void Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile637961178824025822__Normal() + public void Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile637961178824025822__Normal() { string check = ".xlsx"; bool validatePDSF = false; MethodBase methodBase = new StackFrame().GetMethod(); - _BACKLOG_EQPT.Staging__v2_49_0__BACKLOG_EQPT__DownloadExcelFile(); + _BACKLOG_EQPT.Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile(); _ = _BACKLOG_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); for (int i = 0; i < int.MinValue; i++) Thread.Sleep(500); diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/BACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG.cs similarity index 71% rename from Adaptation/_Tests/Extract/Staging/v2.49.0/BACKLOG.cs rename to Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG.cs index 9263a10..1ba36ff 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/BACKLOG.cs +++ b/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG.cs @@ -8,7 +8,7 @@ using System.IO; using System.Reflection; using System.Text.Json; -namespace Adaptation._Tests.Extract.Staging.v2_49_0; +namespace Adaptation._Tests.Extract.Development.v2_49_0; [TestClass] public class BACKLOG @@ -17,13 +17,13 @@ public class BACKLOG #pragma warning disable CA2254 #pragma warning disable IDE0060 - private static CreateSelfDescription.Staging.v2_49_0.BACKLOG _BACKLOG; + private static CreateSelfDescription.Development.v2_49_0.BACKLOG _BACKLOG; [ClassInitialize] public static void ClassInitialize(TestContext testContext) { - CreateSelfDescription.Staging.v2_49_0.BACKLOG.ClassInitialize(testContext); - _BACKLOG = CreateSelfDescription.Staging.v2_49_0.BACKLOG.EAFLoggingUnitTesting; + CreateSelfDescription.Development.v2_49_0.BACKLOG.ClassInitialize(testContext); + _BACKLOG = CreateSelfDescription.Development.v2_49_0.BACKLOG.EAFLoggingUnitTesting; } private static void NonThrowTryCatch() @@ -37,18 +37,18 @@ public class BACKLOG [Ignore] #endif [TestMethod] - public void Staging__v2_49_0__BACKLOG__ConvertExcelToJson() => _BACKLOG.Staging__v2_49_0__BACKLOG__ConvertExcelToJson(); + public void Development__v2_49_0__BACKLOG__ConvertExcelToJson() => _BACKLOG.Development__v2_49_0__BACKLOG__ConvertExcelToJson(); #if DEBUG [Ignore] #endif [TestMethod] - public void Staging__v2_49_0__BACKLOG__ConvertExcelToJson637961178824025822__Normal() + public void Development__v2_49_0__BACKLOG__ConvertExcelToJson637961178824025822__Normal() { string check = "*.xlsx"; bool validatePDSF = false; MethodBase methodBase = new StackFrame().GetMethod(); - _BACKLOG.Staging__v2_49_0__BACKLOG__ConvertExcelToJson(); + _BACKLOG.Development__v2_49_0__BACKLOG__ConvertExcelToJson(); Assert.IsFalse(string.IsNullOrEmpty(_BACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); string[] variables = _BACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); IFileRead fileRead = _BACKLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/MESAFIBACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.49.0/MESAFIBACKLOG.cs similarity index 71% rename from Adaptation/_Tests/Extract/Staging/v2.49.0/MESAFIBACKLOG.cs rename to Adaptation/_Tests/Extract/Development/v2.49.0/MESAFIBACKLOG.cs index c7e026f..4dce0d4 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/MESAFIBACKLOG.cs +++ b/Adaptation/_Tests/Extract/Development/v2.49.0/MESAFIBACKLOG.cs @@ -8,7 +8,7 @@ using System.IO; using System.Reflection; using System.Text.Json; -namespace Adaptation._Tests.Extract.Staging.v2_49_0; +namespace Adaptation._Tests.Extract.Development.v2_49_0; [TestClass] public class MESAFIBACKLOG @@ -17,13 +17,13 @@ public class MESAFIBACKLOG #pragma warning disable CA2254 #pragma warning disable IDE0060 - private static CreateSelfDescription.Staging.v2_49_0.MESAFIBACKLOG _MESAFIBACKLOG; + private static CreateSelfDescription.Development.v2_49_0.MESAFIBACKLOG _MESAFIBACKLOG; [ClassInitialize] public static void ClassInitialize(TestContext testContext) { - CreateSelfDescription.Staging.v2_49_0.MESAFIBACKLOG.ClassInitialize(testContext); - _MESAFIBACKLOG = CreateSelfDescription.Staging.v2_49_0.MESAFIBACKLOG.EAFLoggingUnitTesting; + CreateSelfDescription.Development.v2_49_0.MESAFIBACKLOG.ClassInitialize(testContext); + _MESAFIBACKLOG = CreateSelfDescription.Development.v2_49_0.MESAFIBACKLOG.EAFLoggingUnitTesting; } private static void NonThrowTryCatch() @@ -37,17 +37,17 @@ public class MESAFIBACKLOG [Ignore] #endif [TestMethod] - public void Staging__v2_49_0__MESAFIBACKLOG__json() => _MESAFIBACKLOG.Staging__v2_49_0__MESAFIBACKLOG__json(); + public void Development__v2_49_0__MESAFIBACKLOG__json() => _MESAFIBACKLOG.Development__v2_49_0__MESAFIBACKLOG__json(); #if DEBUG [Ignore] #endif [TestMethod] - public void Staging__v2_49_0__MESAFIBACKLOG__json637961251829737445__Normal() + public void Development__v2_49_0__MESAFIBACKLOG__json637961251829737445__Normal() { string check = "*.json"; bool validatePDSF = false; - _MESAFIBACKLOG.Staging__v2_49_0__MESAFIBACKLOG__json(); + _MESAFIBACKLOG.Development__v2_49_0__MESAFIBACKLOG__json(); MethodBase methodBase = new StackFrame().GetMethod(); Assert.IsFalse(string.IsNullOrEmpty(_MESAFIBACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); string[] variables = _MESAFIBACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); diff --git a/Adaptation/_Tests/Static/BACKLOG.cs b/Adaptation/_Tests/Static/BACKLOG.cs index bcca2cd..178a785 100644 --- a/Adaptation/_Tests/Static/BACKLOG.cs +++ b/Adaptation/_Tests/Static/BACKLOG.cs @@ -52,6 +52,32 @@ public class BACKLOG : LoggingUnitTesting, IDisposable Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString()); } +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development() + { + MethodBase methodBase = new StackFrame().GetMethod(); + StringBuilder results = new(); + (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] + { + new("BACKLOG", "v2.49.0"), + new("BACKLOG-EQPT", "v2.49.0"), + }; + string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2"; + Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; + LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + foreach ((string cellInstanceName, string cellInstanceVersionName) in collection) + { + cellInstanceVersion = AdaptationTesting.GetCellInstanceVersion($"{development}/{cellInstanceName}/{cellInstanceVersionName}/configuration"); + _ = results.AppendLine($"{cellInstanceName}\t{cellInstanceVersionName}\t{cellInstanceVersion.EdaConnection.PortNumber}"); + } + File.WriteAllText($"D:/Tmp/{methodBase.Module.Name}-{methodBase.ReflectedType.Name}-{methodBase.Name}.tsv", results.ToString()); + LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + NonThrowTryCatch(); + } + #if DEBUG [Ignore] #endif