• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mendersoftware / workflows / 1274124801

01 May 2024 12:11AM UTC coverage: 82.332%. Remained the same
1274124801

Pull #320

gitlab-ci

web-flow
chore: bump the golang-dependencies group with 3 updates

Bumps the golang-dependencies group with 3 updates: [github.com/urfave/cli](https://github.com/urfave/cli), [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) and [golang.org/x/sys](https://github.com/golang/sys).


Updates `github.com/urfave/cli` from 1.22.14 to 1.22.15
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v1.22.14...v1.22.15)

Updates `go.mongodb.org/mongo-driver` from 1.14.0 to 1.15.0
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](https://github.com/mongodb/mongo-go-driver/compare/v1.14.0...v1.15.0)

Updates `golang.org/x/sys` from 0.18.0 to 0.19.0
- [Commits](https://github.com/golang/sys/compare/v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: github.com/urfave/cli
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: golang-dependencies
- dependency-name: go.mongodb.org/mongo-driver
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-dependencies
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: golang-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #320: chore: bump the golang-dependencies group with 3 updates

1645 of 1998 relevant lines covered (82.33%)

14.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.67
/api/http/jobs.go
1
// Copyright 2023 Northern.tech AS
2
//
3
//    Licensed under the Apache License, Version 2.0 (the "License");
4
//    you may not use this file except in compliance with the License.
5
//    You may obtain a copy of the License at
6
//
7
//        http://www.apache.org/licenses/LICENSE-2.0
8
//
9
//    Unless required by applicable law or agreed to in writing, software
10
//    distributed under the License is distributed on an "AS IS" BASIS,
11
//    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
//    See the License for the specific language governing permissions and
13
//    limitations under the License.
14

15
package http
16

17
import (
18
        "net/http"
19

20
        "github.com/gin-gonic/gin"
21
)
22

23
// GetJobByID responds to GET /api/jobs/:id
24
func (h WorkflowController) GetJobByID(c *gin.Context) {
2✔
25
        var id = c.Param("id")
2✔
26

2✔
27
        job, err := h.dataStore.GetJobByID(c, id)
2✔
28
        if err != nil {
2✔
29
                c.JSON(http.StatusInternalServerError, err.Error())
×
30
                return
×
31
        } else if job == nil {
3✔
32
                c.JSON(http.StatusNotFound, gin.H{
1✔
33
                        "error": "not found",
1✔
34
                })
1✔
35
                return
1✔
36
        }
1✔
37

38
        job.PrepareForJSONMarshalling()
1✔
39
        c.JSON(http.StatusOK, job)
1✔
40
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc