Building Infrastructure Tests with Pester, the PowerShell Testing Framework

| July 29, 2019

article image
Pester was built for unit testing. Unit testing, in a nutshell, refers to testing code, not the changes that code may do to an environment. However, Pester can be adopted to accomplish other testing scenarios such as testing IT infrastructure. If you don't already have Pester installed, you can download it for free by running Install-Module Pester in your PowerShell console. Sysadmins want to ensure their infrastructure environment is as expected. They need to ensure it meets individual specifications, and that all configuration items are set a specific way. Using Pester, they can build infrastructure tests to answer questions like: Did that script change the right thing? Is the server configuring the same way today as it was yesterday? What's the difference between a configuration last week versus today? Pester infrastructure tests can run as standalone tests or be integrated into a broader automation workflow. But first, what is an "infrastructure test" anyway? Infrastructure Tests. An infrastructure test is a generic term for any code that you write to test a current state against an expected state.

Spotlight

DataCore Software

DataCore Software is the authority on real-time data and is the cornerstone of the next generation, software-defined data center. We pioneered software-defined storage and have now expanded our technology leadership to hyperconverged infrastructures. We empower IT organizations to achieve always available, high-performance and highly efficient data systems.

OTHER ARTICLES

Fiber Optic vs Copper Cables: How Do They Compare?

Article | March 9, 2020

Fiber Optic and Copper are pretty much the only options when it comes to networking communications cables. Today we focus on what makes them different. Let’s begin with the key characteristics of the old reliable copper phone lines — the same basic infrastructure that we’ve been using since the beginning of the 20th-century. Copper is highly conductive. This is what makes it so great for carrying the power to your home. Copper wires use the movement of electrons to carry signals by modulating a waveform at one end then demodulating it at the other end. And converting the patterns in the waveform into an analog or digital signal.

Read More

All-out SaaS for IT operations management

Article | April 9, 2020

Software-as-a-service (SaaS) is an old friend that has been an established business model since the 1960s. It is a broad term referring to everything from platform to software and various other technology ecosystems that are offered to customers on a consumption pay-per-use model. In 2019, the SaaS market was estimated to be worth $141 billion. The 2020 market is projected to reach the $157 billion mark. When compared with figures from 2014 when the industry was said to be worth $63.19 billion, the growth is exponential.

Read More

Edge computing environments: what you need to know

Article | March 24, 2020

The saying goes: “If you’re not on the edge, you’re taking up too much space”. And compute itself is now moving to the edge, forcing datacentre operators to wring the last drops of productivity from their infrastructure, ahead of a future supporting multi-sensor internet of things (IoT) devices over 5G for machine learning, and even artificial intelligence (AI). Jennifer Cooke, research director of cloud-to-edge datacentre trends at IDC, says datacentre operators need to start thinking about how many systems they will need to roll out, and the people they will need to support them. “Cost becomes the prohibitive factor,”

Read More

Data Security in the Cloud Best Practices

Article | April 8, 2020

Data security in the cloud best practices include: understanding and implementing security fundamentals, securing cloud infrastructure along the shared responsibility model, encrypting data in the cloud, and ensuring compliance with applicable regulations. Data security fundamentals often come back to the CIA Triad: data confidentiality, data integrity, and data availability. The shared responsibility model refers to the idea that both a cloud provider and the organization using the cloud are responsible for ensuring the overall security of the organization’s cloud infrastructure, including the data housed there.

Read More

Spotlight

DataCore Software

DataCore Software is the authority on real-time data and is the cornerstone of the next generation, software-defined data center. We pioneered software-defined storage and have now expanded our technology leadership to hyperconverged infrastructures. We empower IT organizations to achieve always available, high-performance and highly efficient data systems.

Events