Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to include the new JSON Structure with Explicit and TrustLevel #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Biztactix-Ryan
Copy link

Tried to run your Nuget found there was extra data in my source json, Updated to include,
Also cleaned up the Test App, to not use a static location on disk, as it failed on my machine.
And better documented the outputs so they make sense to someone who didn't write the code originally

Example Output from Test app now

=== Winget Information ===
Winget Installed: True
Winget Version: 1.8.1911
Is Preview: False

Winget Info Version: 1.8.1911

=== Admin Settings Test ===
Total Admin Settings: 5
Sample Admin Setting: BypassCertificatePinningForMicrosoftStore

=== Package Search Test ===
Total Packages Found for 'git': 125
Sample Package Name: RepoZ
Sample Package ID: AndreasWascher.RepoZ

=== Upgradeable Packages Test ===
Total Upgradeable Packages: 67
Sample Upgradeable Package Name: Audacity 3.4.2
Sample Upgradeable Package ID: Audacity.Audacity

=== Installed Packages Test ===
Total Installed Packages: 444
Sample Installed Package Name: Windows Driver Package - Google, In.
Sample Installed Package ID: ARP\Machine\X64\092555911492C6959D2

=== Exact Installed Package Test ===
Microsoft Edge Package Found: Microsoft Edge

=== Package Download Test ===
Total Packages Found for '7zip.7zip': 3
Download Result for 7-Zip: True

=== Pinning Tests ===
Adding 7Zip as Pinned: True
Total Pinned Packages: 1
7-Zip 24.08 (x64): Blocking
Removing 7Zip as Pinned: True
Adding 7Zip as Pinned: True
Total Pinned Packages after version-specific pin: 1
7-Zip 24.08 (x64): Gating
Removing 7Zip as Pinned: True
Adding 7Zip as Pinned for Install: True
Removing 7Zip as Pinned: True
Adding 7Zip as Pinned Installed Version: True
Removing 7Zip as Pinned Installed Version: True
Resetting all Pins: True

=== Source Tests ===
Total Sources Installed: 2
Source: msstore (StoreEdgeFD)
Source: winget (Microsoft.Winget.Source_8wekyb3d8bbwe)
Source Update Status: True
Sources as JSON: [{"Name":"msstore","Arg":"https://storeedgefd.dsx.mp.microsoft.com/v9.0","Type":"Microsoft.Rest","Data":"","Identifier":"StoreEdgeFD","Explicit":false,"TrustLevel":["Trusted"]},{"Name":"winget","Arg":"https://cdn.winget.microsoft.com/cache","Type":"Microsoft.PreIndexed.Package","Data":"Microsoft.Winget.Source_8wekyb3d8bbwe","Identifier":"Microsoft.Winget.Source_8wekyb3d8bbwe","Explicit":false,"TrustLevel":["Trusted","StoreOrigin"]}]

=== Hash Test ===
Hash of 'AllSources.json': bdb656b7cd59487b85a33088400e62e950c2db6c4de2cdaaee916cd17b35c3ff

=== Package Comparison Tests ===
Package Tests: True


Execution Time: 00:00:29.6645129
End of Test! Press any button to exit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant