Skip to content

Commit

Permalink
Merge pull request #493 from ix-ax/492-correct-the-paths-to-certifica…
Browse files Browse the repository at this point in the history
…tion-files-in-all-apps

Correct the paths to certification files in all apps
  • Loading branch information
PTKu authored Dec 13, 2024
2 parents eb991a3 + 93a9045 commit d6e411c
Show file tree
Hide file tree
Showing 37 changed files with 250,864 additions and 21 deletions.
2 changes: 1 addition & 1 deletion scripts/check_requisites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (Test-Path $vsWhere) {

# Check for apax
$isApaxInstalled = $false
$requiredApaxVersion = "3.4.1"
$requiredApaxVersion = "3.4.2"
try {
$apaxVersion = (apax --version).Trim()
if ($apaxVersion -eq $requiredApaxVersion) {
Expand Down
25 changes: 25 additions & 0 deletions scripts/ready_for_review_ptku_you_plus_the_other_if_neccessary.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
$gitStatus = git status
if($gitStatus -notcontains "nothing to commit, working tree clean")
{
Write-Output "Working tree is not clean. Commit and push your local changes and run this script again afterwards."
}
else
{
$currentBranch = $(git branch --show-current)
Write-Output "Working tree is clean. Marking '$currentBranch' as ready fore review"
$AdditionalReviewers = Read-Host "Please enter the additional reviewers names: i.e.: my_boss_github_name, his_boss_github_name, etc. (upto the galaxy owner)"
$ReviewComment = Read-Host "Please enter a comment for the reviewers, for empty press enter"
Write-Output "currentBranch: $currentBranch"
Write-Output "AdditionalReviewers: $AdditionalReviewers"
$Reviewers = "PTKu,@me" + "," + $AdditionalReviewers
$ReviewersArray = $Reviewers -split "," | ForEach-Object { $_.Trim() }
$ReviewersString = $ReviewersArray -join ","
$Command = "gh pr edit --add-reviewer " + $ReviewersString
Invoke-Expression $Command
if ($ReviewComment -ne "") {
$Command = "gh pr comment -b """ + $ReviewComment + """"
Invoke-Expression $Command
}
gh pr ready
}

2 changes: 1 addition & 1 deletion src/abstractions/app/ix/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class TwinConnectorSelector
private static string Pass => @"123ABCDabcd$#!"; //Environment.GetEnvironmentVariable("AX_TARGET_PWD"); //Environment.GetEnvironmentVariable("AX_TARGET_PWD"); // <- Pass in the password that you have set up for the user. NOT AS PLAIN TEXT! Use user secrets instead.
private static string UserName = "adm"; //Environment.GetEnvironmentVariable("AX_USERNAME"); //<- replace by user name you have set up in your WebAPI settings
private const bool IgnoreSslErrors = true; // <- When you have your certificates in order set this to false.
private static string CertificatePath = "..\\certs\\plc_line\\plc_line.cer";
private static string CertificatePath = "..\\..\\certs\\plc_line\\plc_line.cer";

static readonly X509Certificate2 Certificate = new X509Certificate2(CertificatePath);

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components.abstractions/app/ix/Entry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class TwinConnectorSelector
private static string Pass => @"123ABCDabcd$#!"; //Environment.GetEnvironmentVariable("AX_TARGET_PWD"); //Environment.GetEnvironmentVariable("AX_TARGET_PWD"); // <- Pass in the password that you have set up for the user. NOT AS PLAIN TEXT! Use user secrets instead.
private static string UserName = "adm"; //Environment.GetEnvironmentVariable("AX_USERNAME"); //<- replace by user name you have set up in your WebAPI settings
private const bool IgnoreSslErrors = true; // <- When you have your certificates in order set this to false.
private static string CertificatePath = "..\\certs\\plc_line\\plc_line.cer";
private static string CertificatePath = "..\\..\\certs\\plc_line\\plc_line.cer";

static readonly X509Certificate2 Certificate = new X509Certificate2(CertificatePath);

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit d6e411c

Please sign in to comment.