
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
github.com/wso2/choreo-samples/test-runner-go
When the test runner component is triggered manually, it will run a job to execute automated tests implemented by the developer. Test results can be viewed from the Choreo console.
Let's write some tests in Go and run those tests in Choreo.
Go to https://console.choreo.dev/ and sign in. This opens the project home page.
Click Create button in the Component Listing section. Choose Test Runner component type.
Enter a unique name and a description for the test runner component. For this guide, let's enter the following values:
Field | Value |
---|---|
Name | Go Test Runner |
Description | Test Runner implemented in Go |
Click Github tab and provide the required source repository details.
Field | Value |
---|---|
Organization | wso2 |
Repository | choreo-samples |
Branch | main |
Choose the Go buildpack from the buildpack tiles.
Choose Project directory and Go version. For this example, let's consider the following values.
Field | Value |
---|---|
Go Project Directory | /test-runner-go |
Language Version | 1.x |
Click Create. Once the component creation is complete, you will see the component overview page.
You have successfully created a Test Runner component using a Go buildpack. Now let's build and run the tests.
Run the go test suite using go run main.go
command.
Once successfully executed, test cases will get executed and the logs will be shown.
go run main.go
Running tests...
Received JSON Data for Post ID 1:
{UserID:1 ID:1 Title:sunt aut facere repellat provident occaecati excepturi optio reprehenderit Body:quia et suscipit
suscipit recusandae consequuntur expedita et cum
reprehenderit molestiae ut ut quas totam
nostrum rerum est autem sunt rem eveniet architecto}
Received JSON Data for Post ID 2:
{UserID:1 ID:2 Title:qui est esse Body:est rerum tempore vitae
sequi sint nihil reprehenderit dolor beatae ea dolores neque
fugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis
qui aperiam non debitis possimus qui neque nisi nulla}
PASS
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.