Skip to content

Setup Updates : Rohini Gorige

rohini-gorige edited this page May 14, 2022 · 23 revisions

1. Prerequisites Checks

Step: [1] Windows Version

Command Executed:

Get-ComputerInfo | select WindowsProductName, WindowsVersion

Output:

windows version

Step: [2] HyperV is Enabled

Command Executed:

systeminfo

Output:

HyperV enable

2. Setup

Step: [1] Workspace & Applications

Step: [1.1] Workspace

Command Executed:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope currentuser

Output:

workspace 1

Command Executed:

iwr -useb https://raw.githubusercontent.com/rajasoun/win10x-onboard/main/e2e.ps1 | iex

Output:

123

Command Executed:

cd ~\workspace

Output:

workspace 2

Command Executed:

git clone https://github.com/rajasoun/win10x-onboard

Output:

gitclone

Command Executed:

cd win10x-onboard

Output:

image

Command Executed:

Invoke-Pester src\lib\Workspace.Tests.ps1 -Output Detailed

Output:

error 1

Step: [1.2] Prerequisite Checks

Command Executed:

Invoke-Pester e2e.Tests.ps1 -Tag "prerequisite"  -Output Detailed

Output:

error 2

Step: [1.3] Applications Setup

Command Executed:

Invoke-Pester src\lib\Apps.Installer.Tests.ps1 -Output Detailed

Output:

22

Step: [2] HyperV

Command Executed:

Start-Process powershell -Verb runas

Output:

This Command will take us to PowerShell Administrator

Command Executed:

git pull --rebase

Output:

git pull

Command Executed:

.\e2e.ps1 -type hyperv

Output:

11

Step: [3] WSL2 & Kernel Update

Command Executed:

Start-Process powershell -Verb runas

Output:

This Command will take us to PowerShell Administrator

Command Executed:

.\e2e.ps1 -type wsl

Output:

122

Step: [4] Docker Desktop

Output:

docke

Step: [5] Test Docker Setup

Step: [1.1] Docker Test

  1. Open Git Bash command prompt and output should contain Hello from Docker

Command Executed:

docker run --rm hello-world

Output:

dock1

**Step: [1.2] Bash Test: Check the Speed of the Internet using Bash Script

Command Executed:

MSYS_NO_PATHCONV=1  docker run --rm rajasoun/speedtest:0.1.0 "/go/bin/speedtest-go"

Output:

new 1

3. Test

Step: [1] TDD Scripts

Command Executed:

Invoke-Pester src\lib\Workspace.Tests.ps1 -Output Detailed

Output:

tdd error 1

Command Executed:

Invoke-Pester src\lib\Apps.Installer.Tests.ps1 -Output Detailed

Output:

new e2e

Command Executed:

Invoke-Pester src\lib\HyperV.Tests.ps1 -Output Detailed

Output:

tdd3

Command Executed:

Invoke-Pester src\lib\Wsl.Tests.ps1 -Output Detailed

Output:

tdd4

Step: [2] ATDD Scripts

Command Executed:

Invoke-Pester e2e.Tests.ps1 -Tag "prerequisite"  -Output Detailed

Output:

3 2 1 attd 1

Command Executed:

Invoke-Pester e2e.Tests.ps1 -Tag "apps"   -Output Detailed

Output:

atdd22

Command Executed:

Invoke-Pester e2e.Tests.ps1 -Tag "hyperv" -Output Detailed

Output:

atdd33

Command Executed:

Invoke-Pester e2e.Tests.ps1 -Tag "wsl2"   -Output Detailed

Output:

attd4
Clone this wiki locally