Open-source News

3 ways to test your API with Python

opensource.com - Tue, 09/21/2021 - 15:01

In this tutorial, you'll learn how to unit test code that performs HTTP requests. In other words, you'll see the art of API unit testing in Python.

Unit tests are meant to test a single unit of behavior. In testing, a well-known rule of thumb is to isolate code that reaches external dependencies.

For instance, when testing a code that performs HTTP requests, it's recommended to replace the real call with a fake call during test time. This way, you can unit test it without performing a real HTTP request every time you run the test.


read more

Run containers on your Mac with Lima

opensource.com - Tue, 09/21/2021 - 15:00

Running containers on your Mac can be a challenge. After all, containers are based on Linux-specific technologies like cgroups and namespaces.

Luckily, macOS has a built-in hypervisor, allowing virtual machines (VMs) on the Mac. The hypervisor is a low-level kernel feature, not a user-facing one.


read more

Managing artifacts with Red Hat Satellite and JFrog Artifactory

Red Hat News - Tue, 09/21/2021 - 12:00

Software artifacts help you reuse your code—saving you time, energy and money. Read our breakdown of how the artifact repository JFrog works with Red Hat Satellite to manage content across your enterprise.

AMD Extending DWARF To Better Handle GPU Debugging, Continues Collaborating With GCC & LLVM

Phoronix - Tue, 09/21/2021 - 12:00
In addition to AMD's increasing Linux kernel contributions, they are also contributing more improvements in user-space too thanks to their super-computing wins and other big enterprise deployments that are Linux-based. One of the areas talked about this week at the Linux Plumbers Conference with the GNU Tools track is how they are working to extend the DWARF debug format to better handle GPU debugging...

Intel Posts New Linux Patches Looking To Re-Enable ENQCMD Ahead Of Sapphire Rapids

Phoronix - Tue, 09/21/2021 - 04:25
While Intel is normally quite good with their new hardware support being in good shape well ahead of launch, their new code for supporting the ENQCMD functionality for the Data Streaming Accelerator (DSA) with Xeon "Sapphire Rapids" has been an exception. This summer the mainline Linux kernel disabled ENQCMD support since the code was "broken beyond repair" while now Intel engineers have sent out a new series looking to get it re-enabled...

CUPS 2.4 Coming Next Month, CUPS 2.5 + CUPS 3.0 Already In Planning

Phoronix - Tue, 09/21/2021 - 03:02
An Open Printing micro-conference took place today during the Linux Plumbers Conference 2021 week. While it's hard to get excited about printers in 2021, it is exciting the renewed effort around CUPS with it now being back to effectively led by the community and CUPS founder Michael Sweet who left Apple. CUPS 2.4 is coming as the first feature release in quite a while and then CUPS 2.5 followed by CUPS 3.0 are already being talked about with features being discussed...

OpenVPN DCO Linux Kernel Module Aims To Offer Faster VPN Performance

Phoronix - Tue, 09/21/2021 - 02:31
OpenVPN has been implementing a kernel module for data channel offload (DCO) capabilities to enhance the performance of this virtual private network system...

Pages