Skip to content

Commit b7ce954

Browse files
mitchelbaker-cisaaarz-snlcbaxleyClint Baxleyadhilto
committed
Rebase latest changes from main into release-1.4.0 (#222)
* Add a markdown file for dashboard descriptions, link new file in README.md (#138) * Add a markdown file for dashboard descriptions <!-- Describe the "what" of your changes in detail. --> Add dashboard-descriptions.md in /docs/markdown/reference. Add a link to this file within the main README.md's table of contents. <!-- Why is this change required? --> <!-- What problem does this change solve? How did you solve it? --> <!-- Mention any related issue(s) here using appropriate keywords such --> <!-- as "closes" or "resolves" to auto-close them on merge. --> The LME repository does not have a location for dashboard descriptions. <!-- How did you test your changes? How could someone else test this PR? --> <!-- Include details of your testing environment, and the tests you ran to --> <!-- see how your change affects other areas of the code, etc. --> N/A - [x] Changes are limited to a single goal **AND** the title reflects this in a clear human readable format - [x] I have read and agree to LME's [CONTRIBUTING.md](https://github.com/cisagov/LME/CONTRIBUTING.md) document. - [x] The PR adheres to LME's requirements in [RELEASES.md](https://github.com/cisagov/LME/RELEASES.md#steps-to-submit-a-PR) - [x] These code changes follow [cisagov code standards](https://github.com/cisagov/development-guide). - [x] All relevant repo and/or project documentation has been updated to reflect the changes in this PR. - [x] Squash all commits into one PR level commit - [x] Delete the branch to keep down number of branches * Update README.md to include dashboard-descriptions.md * Update wording for computer software overview dashboard * Fix some grammatical changes in dashboard-descriptions.md * Release 1.3.1 merge into main (#154) * Update retention function to fix retention policy bug (#143) * Updated troubleshooting guide to account for index management (#134) * Update upgrading.md to account for 1.3.1 (#151) * Update upgrading.md * Update upgrading.md --------- Co-authored-by: Andrew Arz <[email protected]> * Fixes dashboard update not importing on fresh install (#167) (#169) * Fixes dashboard update not importing on fresh install * Update upgrading.md to include status on v1.3.2, along with revisions to the document overall * remove step 4 from upgrading.md; add additional instructions for v1.3.2 --------- Co-authored-by: Clint Baxley <[email protected]> Co-authored-by: Clint Baxley <[email protected]> * Add proof of concept selenium tests * Correct the script name in the doc string * User Security Selenium Tests for No Results Panels * First full selenium test. Currently just User Security * WIP User HR * Completed all dashboards. Requires testing now * Debugging a couple unit tests that error out. Two left * Cut dev comments Co-authored-by: Alden Hilton <[email protected]> * Switched script to headless mode * added switch for headless, detached, and debug mode. Bug where driver.quit does not close window. * Install LME in the testbed from a single script (#150) * Adding the configure scripts * Add scripts to zip and copy to a container for downloading in the server * Grab the expiry time properly in copy file * Overwrite the blob if it exists * Add the script to download file into DC * Script that unzips the files in a container * Adds username argument to download files * Add script to run scripts in container * Adds username argument to gpo script * Modifies the url name in the client GPO * Adds the functionality for chapter 1 and first half of chapter 2 * Imports the sysmon GPO * Update the variables for sysmon gpo * Name the scripts so they are grouped together in a listing * Echos the file download url * Expands the domain name correctly in create ou * Write the url output of copy file to container to a different output stream * Create a new LME folder for our scripts and files * Set path for extract to lme * Update paths for scripts to /lme * Fix the wec server name setting * Adds the scripts to install chapter 1 and 2 * Allows azure to download in linux and windows * Adds linux install scripts. * Adds winlogbeat installer * emove garbage in update server name * Tweak several scripts to get the scp of files_for_windows * Adds installer script to run all the scripts * Fixes the formatting method for az output * Clean up the scripts and add documentation * Fixes outputting format errors * Fixes hanging on adding ls1 to domain * Fix formatting errors on responses * Update linux expect script for different prompts. * Handle the reboot message for linux expect script * Echos the file download url * Create a new LME folder for our scripts and files * Set path for extract to lme * Update paths for scripts to /lme * Update paths for scripts to /lme * Fix the wec server name setting * Adds the scripts to install chapter 1 and 2 * Allows azure to download in linux and windows * Adds linux install scripts. * Adds winlogbeat installer * emove garbage in update server name * Tweak several scripts to get the scp of files_for_windows * Adds installer script to run all of the scripts * Fixes the formatting method for az output * Clean up the scripts and add documentation * Fixes outputting format errors * Fixes hanging on adding ls1 to domain * Fix formatting errors on responses * Update linux expect script for different prompts. * Handle the reboot message for linux expect script * Adds InstallTestbed instructions to Readme.md * Modifies parameters to be pascal case * ls1 not being set on DC1 * Adds Linux Only install to SetupTestbed * Remove separate linux only script * Update testing/Readme.md Co-authored-by: Alden Hilton <[email protected]> * Make number of clients consisten between scripts * Add ports for elk stack for testing * Update readmes to change ResourceGroupName to ResourceGroup * Adds a switch to install linux only * Adds simple tests to check install * Removes the error if the old configure zip is not found. * Adds variables to linux tests run command * Move credential extraction to lib for use by other scripts. * Adds npm for other testing * Adds latest version of nodejs for testing * Make output.log readable for tests * Add the -m parameter in the testing readme * Download the latest version or a specified version * Reboot for 1.3.0 * Notes that we could have different expect scripts * Put back in the restart after all of the domain updates * Scp uses ls1 instead of ls1.lme.local * Up the timeout of the adding ls1.lme.local * Up the timeout of the adding ls1.lme.local * Fixes chmod of the output.log for tests * Adds venv to the gitignore * Adds the ability to pass a branch to the installer * Remove node installer * Change timeout in expect script for slow connections * Make shell files executable --------- Co-authored-by: Clint Baxley <[email protected]> Co-authored-by: Alden Hilton <[email protected]> * Fix deploy.sh data retention failure error (#190) * Fix deploysh data retention failure (#179) * Update deploy.sh * Update deploy.sh * Update deploy.sh * Update deploy.sh * Remove free (#188) * changed the word free to no-cost or no-cost to users * rephrased wording to 'which comes at no cost to users' --------- Co-authored-by: Linda Lovero-Waterhouse <[email protected]> * Update upgrading.md with data retention failure resolution (#189) --------- Co-authored-by: Andrew Arz <[email protected]> Co-authored-by: Linda Waterhouse <[email protected]> Co-authored-by: Linda Lovero-Waterhouse <[email protected]> * Automatically Add Tags to Azure Resources (#186) * Add tags to all Azure resource creations calls --------- Co-authored-by: Clint Baxley <[email protected]> * Refactored long line and added switch for debug mode * Removed unnecessary comments * Update pull_request_template.md (#198) * Update pull_request_template.md Moved Squash commits from post-merge to pre-merge. * overriding default PR template for preferred LME template * overriding default PR template for preferred LME template * updating issue template to shorten the template --------- Co-authored-by: mreeve-snl <[email protected]> * Python testbed setup (#183) * Add simple tests for http requests * Add an env file to gitignore * Remove unneeded pip install * Hide pytest_cache * Add pycache to gitignore * Adds dev containers for vscode * Adds testing information for vscode * Uses .env file for tests if present * Adds env example file * Modify development container name * Adds readme for the testing environment * Add simple tests for http requests * Add an env file to gitignore * Remove unneeded pip install * Adds dev containers for vscode * Adds testing information for vscode * Uses .env file for tests if present * Adds env example file * Modify development container name * Adds readme for the testing environment * Create helpers and conftest for python tests * Setup for using test explorer in the dev environment * Adding azure shell requirements to docker image * Adding Python API tests * Merges additional tests * Made changes to fix tests that were failing * Separate linux only tests from others * Create a workflow for building test environments * Make the docker user be the same as the vbox user id * Set up to run the installer in docker * Pick up different fs types in data_retention * Change the build path for building lme container * Install lme after build * Make lme installer executable * Set up the build for tests * Add the cluster workflow for github actions --------- Co-authored-by: Clint Baxley <[email protected]> Co-authored-by: Rishi <[email protected]> * Update PULL_REQUEST_TEMPLATE.md (#206) Added instruction to select Issue in Development area so that the corresponding Issue is automatically closed when the PR is merged. * Made changes to facilitate HTML Reports on test execution (#211) * Made changes to requirements.txt, ReadMe and gitignore to facilitate HTML reporting * Fixed Typos on Readme * Fixed Typos on Readme * removed tags flag from nsg because it was preventing some rules from being created (#214) Co-authored-by: Linda Lovero-Waterhouse <[email protected]> * Update PULL_REQUEST_TEMPLATE.md (#217) Using keywords like "fixes" or "closes" only auto-closes the corresponding issue if the PR is going to be merged into main. For PR's merged into release branches, we need to add the issue to the development box in the right sidebar in order to auto-close the issue. Added some documentation to clarify this. * Create new workflow for automating the release process (#199) --------- Co-authored-by: Andrew Arz <[email protected]> Co-authored-by: Clint Baxley <[email protected]> Co-authored-by: Clint Baxley <[email protected]> Co-authored-by: Alden Hilton <[email protected]> Co-authored-by: unknown <[email protected]> Co-authored-by: Grant (SNL) <[email protected]> Co-authored-by: Alden Hilton <[email protected]> Co-authored-by: Linda Waterhouse <[email protected]> Co-authored-by: Linda Lovero-Waterhouse <[email protected]> Co-authored-by: Brown <[email protected]> Co-authored-by: mreeve-snl <[email protected]> Co-authored-by: Rishi <[email protected]> Co-authored-by: rishagg01 <[email protected]>
1 parent 22b97ad commit b7ce954

22 files changed

+1803
-5
lines changed

.devcontainer/python_development/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
"ms-python.black-formatter"
1515
]
1616
}
17+
<<<<<<< HEAD
1718
},
1819
"remoteUser": "admin.ackbar"
20+
=======
21+
}
22+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
1923
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
- [ ] There is a [gitIssue](https://github.com/cisagov/LME/issues) that this PR resolves
2626
- [ ] The PR's base branch has been modified to be the proper branch.
2727
- [ ] Changes are limited to a single goal **AND**
28+
<<<<<<< HEAD
2829
the title reflects this in a clear human readable format for the release notes
30+
=======
31+
the title reflects this in a clear human readable format
32+
- [ ] Issue that this PR solves has been selected in the Development section
33+
>>>>>>> 34b2ff9 (Update PULL_REQUEST_TEMPLATE.md (#206))
2934
- [ ] I have read and agree to LME's [CONTRIBUTING.md](https://github.com/cisagov/LME/CONTRIBUTING.md) document.
3035
- [ ] The PR adheres to LME's requirements in [RELEASES.md](https://github.com/cisagov/LME/RELEASES.md#steps-to-submit-a-PR)
3136
- [ ] These code changes follow [cisagov code standards](https://github.com/cisagov/development-guide).

.github/workflows/cluster.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Cluster Run
22

33
on:
44
workflow_dispatch:
5+
<<<<<<< HEAD
56
# pull_request:
67
# branches:
78
# - '*'
@@ -276,3 +277,12 @@ jobs:
276277
}"
277278
docker compose -p ${{ env.UNIQUE_ID }} down
278279
docker system prune --force
280+
=======
281+
jobs:
282+
manual-job:
283+
runs-on: ubuntu-latest
284+
285+
steps:
286+
- name: Greet
287+
run: echo "This is a manually triggered workflow."
288+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))

.github/workflows/linux_only.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<<<<<<< HEAD
12
name: Linux Only
23

34
on:
@@ -120,4 +121,17 @@ jobs:
120121
cd testing/development
121122
docker compose -p ${{ env.UNIQUE_ID }} exec -T -u root lme bash -c "rm -rf /home/admin.ackbar/LME/.pytest_cache"
122123
docker compose -p ${{ env.UNIQUE_ID }} down
123-
docker system prune -a --force
124+
docker system prune -a --force
125+
=======
126+
name: Linux Only
127+
128+
on:
129+
workflow_dispatch:
130+
jobs:
131+
manual-job:
132+
runs-on: ubuntu-latest
133+
134+
steps:
135+
- name: Greet
136+
run: echo "This is a manually triggered workflow."
137+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ lme_update.sh
2626
/testing/*.output.log
2727
/testing/tests/report.html
2828
testing/tests/assets/style.css
29+
<<<<<<< HEAD
2930
.history/
3031
**/get-docker.sh
32+
=======
33+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))

testing/InstallTestbed.ps1

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ param (
2828
# If you were to need the password from the SetupTestbed.ps1 script, you could use this:
2929
# $Password = Get-Content "${ResourceGroup}.password.txt"
3030

31+
<<<<<<< HEAD
3132

33+
=======
34+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
3235
$ProcessSeparator = "`n----------------------------------------`n"
3336

3437
# Define our library path
@@ -255,8 +258,14 @@ $getElasticsearchPasswordsResponse = az vm run-command invoke `
255258
--command-id RunShellScript `
256259
--name $LinuxVM `
257260
--resource-group $ResourceGroup `
261+
<<<<<<< HEAD
258262
--scripts 'sed -n "/^## elastic/,/^####################/p" "/opt/lme/Chapter 3 Files/output.log"'
259263

264+
=======
265+
--scripts 'tail -n14 "/opt/lme/Chapter 3 Files/output.log" | head -n9'
266+
267+
# Show-FormattedOutput -FormattedOutput (Format-AzVmRunCommandOutput -JsonResponse "$getElasticsearchPasswordsResponse")
268+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
260269
Write-Output $ProcessSeparator
261270

262271
if (-Not $LinuxOnly){
@@ -383,6 +392,7 @@ $EsPasswords
383392

384393
# Write the passwords to a file
385394
$PasswordPath = "..\..\${ResourceGroup}.password.txt"
395+
<<<<<<< HEAD
386396
$EsPasswords | Out-File -Append -FilePath $PasswordPath
387397

388398
# Constructing a string that will hold all the command-line parameters to be written to the file
@@ -399,4 +409,7 @@ Branch: $Branch
399409
# Output the parameters to the end of the password file
400410
$paramsToWrite | Out-File -Append -FilePath $PasswordPath
401411

402-
Get-Content -Path $PasswordPath
412+
Get-Content -Path $PasswordPath
413+
=======
414+
$EsPasswords | Out-File -Append -FilePath $PasswordPath
415+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))

testing/SetupTestbed.ps1

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ if (Test-Path -Path $libraryPath) {
7474
. $libraryPath
7575
}
7676
else {
77+
<<<<<<< HEAD
7778
Write-Error "Library script not found at path: $libraryPathCreating Network Port 22 rule..."
79+
=======
80+
Write-Error "Library script not found at path: $libraryPath"
81+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
7882
}
7983

8084

@@ -166,6 +170,7 @@ function Set-NetworkRules {
166170
$priority = $Priorities[$i]
167171
$protocol = $Protocols[$i]
168172
Write-Output "`nCreating Network Port $port rule..."
173+
<<<<<<< HEAD
169174
$command = "az network nsg rule create --name Network_Port_Rule_$port " +
170175
"--resource-group $ResourceGroup " +
171176
"--nsg-name NSG1 " +
@@ -183,6 +188,21 @@ function Set-NetworkRules {
183188
$networkRuleResponse = Invoke-Expression $command
184189
Write-Output $networkRuleResponse
185190

191+
=======
192+
193+
$networkRuleResponse = az network nsg rule create --name Network_Port_Rule_$port `
194+
--resource-group $ResourceGroup `
195+
--nsg-name NSG1 `
196+
--priority $priority `
197+
--direction Inbound `
198+
--access Allow `
199+
--protocol $protocol `
200+
--source-address-prefixes $AllowedSourcesList `
201+
--destination-address-prefixes '*' `
202+
--destination-port-ranges $port `
203+
--description "Allow inbound from $sources on $port via $protocol connections."
204+
Write-Output $networkRuleResponse
205+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
186206
}
187207
}
188208

@@ -432,7 +452,11 @@ if (-Not $LinuxOnly){
432452
Add-DnsServerResourceRecordA -Name LS1 -ZoneName $DomainName. -AllowUpdateAny -IPv4Address $LsIP -TimeToLive 01:00:00 -AsJob
433453
}
434454
`$job = Start-Job -ScriptBlock `$scriptBlock
455+
<<<<<<< HEAD
435456
`$timeout = 120
457+
=======
458+
`$timeout = 90
459+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
436460
if (Wait-Job -Job `$job -Timeout `$timeout) {
437461
Receive-Job -Job `$job
438462
Write-Host 'The script completed within the timeout period.'
@@ -457,6 +481,10 @@ if (Wait-Job -Job `$job -Timeout `$timeout) {
457481
--scripts "Set-Content -Path 'C:\AddDnsRecord.ps1' -Value ([System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String('$encodedScript')))"
458482
Show-FormattedOutput -FormattedOutput (Format-AzVmRunCommandOutput -JsonResponse "$createDnsScriptResponse")
459483

484+
<<<<<<< HEAD
485+
=======
486+
487+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
460488
Write-Output "`nRunning script to add DNS entry for Linux server. It could time out or not. Check output of the next command..."
461489
$addDnsRecordResponse = az vm run-command invoke `
462490
--command-id RunPowerShellScript `
@@ -465,6 +493,7 @@ if (Wait-Job -Job `$job -Timeout `$timeout) {
465493
--scripts "C:\AddDnsRecord.ps1"
466494
Show-FormattedOutput -FormattedOutput (Format-AzVmRunCommandOutput -JsonResponse "$addDnsRecordResponse")
467495

496+
<<<<<<< HEAD
468497
Write-Output "`nAdding ls1 to hosts file..."
469498
$writeToHostsFileResponse = az vm run-command invoke `
470499
--command-id RunPowerShellScript `
@@ -473,6 +502,8 @@ if (Wait-Job -Job `$job -Timeout `$timeout) {
473502
--scripts "Add-Content -Path 'C:\windows\system32\drivers\etc\hosts' -Value '$LsIP ls1.$DomainName ls1'"
474503
Show-FormattedOutput -FormattedOutput (Format-AzVmRunCommandOutput -JsonResponse "$writeToHostsFileResponse")
475504

505+
=======
506+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
476507
Write-Host "Checking if ls1 resolves. This should resolve to ls1.lme.local->${LsIP}, not another domain..."
477508
$resolveLs1Response = az vm run-command invoke `
478509
--command-id RunPowerShellScript `

testing/configure/lib/functions.sh

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
extract_credentials() {
2+
<<<<<<< HEAD
23
local file_path=${1:-'/opt/lme/Chapter 3 Files/output.log'}
34

45
if [ ! -f "$file_path" ]; then
@@ -44,4 +45,36 @@ extract_ls1_ip() {
4445
fi
4546
publicIpAddress=$(sed -n '/Creating LS1.../,/}/p' $file_path | awk -F'"' '/publicIpAddress/{print $4}')
4647
export LS1_IP=$publicIpAddress
47-
}
48+
}
49+
=======
50+
# Set default file path if not provided
51+
local file_path=${1:-'/opt/lme/Chapter 3 Files/output.log'}
52+
53+
# Check if the file exists
54+
if [ ! -f "$file_path" ]; then
55+
echo "File not found: $file_path"
56+
return 1
57+
fi
58+
59+
# Read and extract credentials from the last 18 lines
60+
while IFS= read -r line; do
61+
# Remove leading '## ' and trim whitespaces from the line
62+
line=$(echo "$line" | sed 's/^## //g' | xargs)
63+
64+
# Split the line into key and value
65+
key=$(echo "$line" | awk -F ':' '{print $1}')
66+
value=$(echo "$line" | awk -F ':' '{print $2}' | xargs) # xargs to trim whitespaces from value
67+
68+
# Remove non-word characters (keep only word characters)
69+
value=$(echo "$value" | sed 's/[^[:alnum:]_]//g')
70+
71+
case $key in
72+
"elastic") export elastic=$value ;;
73+
"kibana") export kibana=$value ;;
74+
"logstash_system") export logstash_system=$value ;;
75+
"logstash_writer") export logstash_writer=$value ;;
76+
"dashboard_update") export dashboard_update=$value ;;
77+
esac
78+
done < <(tail -n 18 "$file_path" | grep -E "(elastic|kibana|logstash_system|logstash_writer|dashboard_update):")
79+
}
80+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))

testing/configure/linux_install_lme.exp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,16 @@ send "ls1.lme.local\r"
3939

4040
sleep 1
4141

42+
<<<<<<< HEAD
4243
expect -re {.*ntinue with self signed certificates.*: y}
44+
=======
45+
expect -re {continue with self signed certificates.*: y}
46+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
4347
sleep 1
4448
send "\r"
4549
sleep 1
4650

51+
<<<<<<< HEAD
4752
expect -re {.*ip Docker Install\? \(\[y\]es/\[n\]o\): n}
4853
sleep 1
4954
send "\r"
@@ -73,6 +78,12 @@ expect {
7378
exp_continue
7479
}
7580
}
81+
=======
82+
expect -re {Skip Docker Install\? \(\[y\]es/\[n\]o\): n}
83+
sleep 1
84+
send "\r"
85+
set timeout 600
86+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
7687

7788
expect eof
7889

testing/configure/linux_install_lme.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,14 @@ else
6363
sudo mv "$extracted_filename" /opt/lme
6464
fi
6565

66+
<<<<<<< HEAD
6667
# Change the way we check disk usage in the old versions
6768
perl -pi -e 's/DISK_SIZE="\$\(echo "\$DF_OUTPUT".+?\)"/DISK_SIZE=130/' /opt/lme/Chapter\ 3\ Files/deploy.sh
6869
perl -pi -e 's/DISK_80=\$\(\(DISK_SIZE_ROUND \* 80 \/ 100\)\)/DISK_80=91/g' /opt/lme/Chapter\ 3\ Files/deploy.sh
6970

7071

72+
=======
73+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
7174
echo 'export DEBIAN_FRONTEND=noninteractive' >> ~/.bashrc
7275
echo 'export NEEDRESTART_MODE=a' >> ~/.bashrc
7376
. ~/.bashrc
@@ -76,6 +79,7 @@ echo 'export NEEDRESTART_MODE=a' >> ~/.bashrc
7679
echo 'export DEBIAN_FRONTEND=noninteractive' | sudo tee -a /root/.bashrc
7780
echo 'export NEEDRESTART_MODE=a' | sudo tee -a /root/.bashrc
7881

82+
<<<<<<< HEAD
7983
#get interface name of default route
8084
DEFAULT_IF="$(route | grep '^default' | grep -o '[^ ]*$')"
8185

@@ -97,6 +101,8 @@ installdocker
97101
echo -e "\e[32m[X]\e[0m Pulling the images. This may take some time."
98102
docker compose -f /opt/lme/Chapter\ 3\ Files/docker-compose-stack.yml pull --quiet
99103

104+
=======
105+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
100106
# Execute script with root privileges
101107
# Todo: We could put a switch here for different versions and just run different expect scripts
102108
sudo -E bash -c ". /root/.bashrc && $script_dir/linux_install_lme.exp"

testing/development/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Use Ubuntu 22.04 as base image
22
FROM ubuntu:22.04
3+
<<<<<<< HEAD
34
ARG USER_ID=1001
45
ARG GROUP_ID=1001
6+
=======
7+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
58

69
# Set environment variable to avoid interactive dialogues during build
710
ENV DEBIAN_FRONTEND=noninteractive
@@ -17,18 +20,22 @@ RUN apt-get update && apt-get install -y \
1720
curl \
1821
wget \
1922
sudo \
23+
<<<<<<< HEAD
2024
cron \
2125
freerdp2-x11 \
2226
pkg-config \
2327
libcairo2-dev \
2428
libdbus-1-dev \
2529
distro-info \
2630
libgirepository1.0-dev \
31+
=======
32+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
2733
&& wget -q "https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb" \
2834
&& dpkg -i packages-microsoft-prod.deb \
2935
&& apt-get update \
3036
&& apt-get install -y powershell \
3137
&& rm -rf /var/lib/apt/lists/* \
38+
<<<<<<< HEAD
3239
&& curl -sL https://aka.ms/InstallAzureCLIDeb | bash \
3340
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
3441
&& apt install -y ./google-chrome-stable_current_amd64.deb \
@@ -41,6 +48,13 @@ RUN apt-get update && apt-get install -y \
4148
# Create a user and group 'admin.ackbar' with GID 1001
4249
RUN groupadd -g $GROUP_ID admin.ackbar \
4350
&& useradd -m -u $USER_ID -g admin.ackbar --badnames admin.ackbar \
51+
=======
52+
&& curl -sL https://aka.ms/InstallAzureCLIDeb | bash
53+
54+
# Create a user and group 'admin.ackbar' with GID 1001
55+
RUN groupadd -g 1001 admin.ackbar \
56+
&& useradd -m -u 1001 -g admin.ackbar --badnames admin.ackbar \
57+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))
4458
&& usermod -aG sudo admin.ackbar
4559

4660
# Allow 'admin.ackbar' user to run sudo commands without a password

testing/development/build_docker_lme_install.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
<<<<<<< HEAD
23

34
# Parse command line arguments
45
while getopts ":b:v:" opt; do
@@ -43,4 +44,16 @@ cd ../tests/ || exit
4344
python3 -m venv /home/admin.ackbar/venv_test
4445
. /home/admin.ackbar/venv_test/bin/activate
4546
pip install -r requirements.txt
46-
sudo chown admin.ackbar:admin.ackbar /home/admin.ackbar/venv_test -R
47+
sudo chown admin.ackbar:admin.ackbar /home/admin.ackbar/venv_test -R
48+
=======
49+
cd testing/configure || exit
50+
sudo ./linux_update_system.sh
51+
sudo ./linux_install_lme.sh -b cbaxley-168-python_tests
52+
. lib/functions.sh
53+
extract_credentials
54+
cd ../tests/ || exit
55+
python3 -m venv ~/venv_test
56+
. ~/venv_test/bin/activate
57+
pip install -r requirements.txt
58+
#pytest api_tests/linux_only/
59+
>>>>>>> 450e17d (Rebase latest changes from main into release-1.4.0 (#222))

0 commit comments

Comments
 (0)