{"id":16639653,"url":"https://github.com/johlju/pestertestclassbasedresource","last_synced_at":"2026-04-20T18:31:28.082Z","repository":{"id":87594332,"uuid":"96908000","full_name":"johlju/PesterTestClassBasedResource","owner":"johlju","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-23T07:34:27.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T03:17:34.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johlju.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-11T15:23:31.000Z","updated_at":"2017-07-11T15:26:09.000Z","dependencies_parsed_at":"2024-01-07T22:51:25.989Z","dependency_job_id":null,"html_url":"https://github.com/johlju/PesterTestClassBasedResource","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johlju/PesterTestClassBasedResource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johlju%2FPesterTestClassBasedResource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johlju%2FPesterTestClassBasedResource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johlju%2FPesterTestClassBasedResource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johlju%2FPesterTestClassBasedResource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johlju","download_url":"https://codeload.github.com/johlju/PesterTestClassBasedResource/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johlju%2FPesterTestClassBasedResource/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32059727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T07:06:38.343Z","updated_at":"2026-04-20T18:31:28.053Z","avatar_url":"https://github.com/johlju.png","language":"PowerShell","readme":"# PesterTestClassBasedResource\n\nThis is a mockup for testing a PowerShell DSC class-based resource\n\n## 1. Clone the repository\n\nTo run this example, do the following.\n\n```powershell\ngit clone https://github.com/johlju/PesterTestClassBasedResource\ncd PesterTestClassBasedResource\n```\n\n## 2. Run the Pester test\n\n### First run\n\n```powershell\nInvoke-Pester .\\MyDscResource.Tests.ps1\n```\n\nGives expected successful result.\n\n```plaintext\nExecuting all tests in .\\MyDscResource.Tests.ps1\n\nExecuting script .\\MyDscResource.Tests.ps1\n\n  Describing MyDscResource\\Get()\n\n    Context When the Get method is called\n      [+] Should not throw an error 1.13s\nTests completed in 1.13s\nTests Passed: 1, Failed: 0, Skipped: 0, Pending: 0, Inconclusive: 0\n```\n\n### Second run\n\n```powershell\nInvoke-Pester .\\MyDscResource.Tests.ps1\n```\n\nThe test throws an error.\n\n```plaintext\nExecuting all tests in .\\MyDscResource.Tests.ps1\n\nExecuting script .\\MyDscResource.Tests.ps1\n\n  Describing MyDscResource\\Get()\n\n    Context When the Get method is called\n      [-] Should not throw an error 179ms\n        Expected: the expression not to throw an exception. Message was {Test-HelperFunction throw an error!}\n            from V:\\Source\\_Random\\PesterTestClassBasedResource\\HelperFunctions.psm1:6 char:5\n            +     throw 'Test-HelperFunction throw an error!'\n            +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        at \u003cScriptBlock\u003e, V:\\Source\\_Random\\PesterTestClassBasedResource\\MyDscResource.Tests.ps1: line 17\n        17:                 { $databaseMembershipClass.Get() } | Should Not Throw\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohlju%2Fpestertestclassbasedresource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohlju%2Fpestertestclassbasedresource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohlju%2Fpestertestclassbasedresource/lists"}