debian-forge-composer/vendor/github.com/jstemmer/go-junit-report
Tomas Hozza ff95059748 internal/upload: Add support for upload to GCP and CLI tool using it
Add new internal upload target for Google Cloud Platform and
osbuild-upload-gcp CLI tool which uses the API.

Supported features are:
- Authenticate with GCP using explicitly provided JSON credentials
  file or let the authentication be handled automatically by the
  Google cloud client library. The later is useful e.g. when the worker
  is running in GCP VM instance, which has associated permissions with
  it.
- Upload an existing image file into existing Storage bucket.
- Verify MD5 checksum of the uploaded image file against the local
  file's checksum.
- Import the uploaded image file into Compute Node as an Image.
- Delete the uploaded image file after a successful image import.
- Delete all cache files from storage created as part of the image
  import build job.
- Share the imported image with a list of specified accounts.

GCP-specific image type is not yet added, since GCP supports importing
VMDK and VHD images, which the osbuild-composer already supports.

Update go.mod, vendor/ content and SPEC file with new dependencies.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-02-25 18:44:21 +00:00
..
formatter internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
parser internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
.gitignore internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
.travis.yml internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
go-junit-report.go internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
go.mod internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
LICENSE internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00
README.md internal/upload: Add support for upload to GCP and CLI tool using it 2021-02-25 18:44:21 +00:00

go-junit-report

Converts go test output to an xml report, suitable for applications that expect junit xml reports (e.g. Jenkins).

Build Status Report Card

Installation

Go version 1.2 or higher is required. Install or update using the go get command:

go get -u github.com/jstemmer/go-junit-report

Usage

go-junit-report reads the go test verbose output from standard in and writes junit compatible XML to standard out.

go test -v 2>&1 | go-junit-report > report.xml

Note that it also can parse benchmark output with -bench flag:

go test -v -bench . -count 5 2>&1 | go-junit-report > report.xml

Contribution

Create an Issue and discuss the fix or feature, then fork the package. Clone to github.com/jstemmer/go-junit-report. This is necessary because go import uses this path. Fix or implement feature. Test and then commit change. Specify #Issue and describe change in the commit message. Create Pull Request. It can be merged by owner or administrator then.

Run Tests

go test