Skip to content

Commit

Permalink
Merge pull request #6 from Cray-HPE/feature/github-phase-3
Browse files Browse the repository at this point in the history
Feature/GitHub phase 3
  • Loading branch information
alvarez3-hpe authored Jul 26, 2021
2 parents 83d648b + 2baa437 commit 174bb12
Show file tree
Hide file tree
Showing 218 changed files with 17,867 additions and 535 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.30.8
1.30.9
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.30.9] - 2021-07-26

### Added

- github transition phase 3. Remove stash references.

## [1.30.8] - 2021-07-22

### Added
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.coverage
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ FROM cray/smd-base

# Run test coverage...
RUN set -ex && \
go test -cover -v stash.us.cray.com/HMS/hms-smd/cmd/smd && \
go test -cover -v stash.us.cray.com/HMS/hms-smd/internal/./... && \
go test -cover -v stash.us.cray.com/HMS/hms-smd/pkg/./...
go test -cover -v github.com/Cray-HPE/hms-smd/cmd/smd && \
go test -cover -v github.com/Cray-HPE/hms-smd/internal/./... && \
go test -cover -v github.com/Cray-HPE/hms-smd/pkg/./...
14 changes: 7 additions & 7 deletions Dockerfile.smd
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ FROM build-base AS base
RUN go env -w GO111MODULE=auto

# Copy all the necessary files to the image.
COPY cmd $GOPATH/src/stash.us.cray.com/HMS/hms-smd/cmd
COPY internal $GOPATH/src/stash.us.cray.com/HMS/hms-smd/internal
COPY pkg $GOPATH/src/stash.us.cray.com/HMS/hms-smd/pkg
COPY vendor $GOPATH/src/stash.us.cray.com/HMS/hms-smd/vendor
COPY cmd $GOPATH/src/github.com/Cray-HPE/hms-smd/cmd
COPY internal $GOPATH/src/github.com/Cray-HPE/hms-smd/internal
COPY pkg $GOPATH/src/github.com/Cray-HPE/hms-smd/pkg
COPY vendor $GOPATH/src/github.com/Cray-HPE/hms-smd/vendor

### Build Stage ###
FROM base AS builder

# Base image contains everything needed for Go building, just build.
RUN set -ex \
&& go build -v -i stash.us.cray.com/HMS/hms-smd/cmd/smd \
&& go build -v -i stash.us.cray.com/HMS/hms-smd/cmd/smd-loader \
&& go build -v -i stash.us.cray.com/HMS/hms-smd/cmd/smd-init
&& go build -v -i github.com/Cray-HPE/hms-smd/cmd/smd \
&& go build -v -i github.com/Cray-HPE/hms-smd/cmd/smd-loader \
&& go build -v -i github.com/Cray-HPE/hms-smd/cmd/smd-init


### Final Stage ###
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.testing
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ FROM cray/smd-base

# Run unit tests...
RUN set -ex && \
go test -v stash.us.cray.com/HMS/hms-smd/cmd/smd && \
go test -v stash.us.cray.com/HMS/hms-smd/internal/./... && \
go test -v stash.us.cray.com/HMS/hms-smd/pkg/./...
go test -v github.com/Cray-HPE/hms-smd/cmd/smd && \
go test -v github.com/Cray-HPE/hms-smd/internal/./... && \
go test -v github.com/Cray-HPE/hms-smd/pkg/./...
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ http://web.us.cray.com/~ekoen/cray-portal/public

Latest detailed API usage examples:

https://stash.us.cray.com/projects/HMS/repos/hms-smd/browse/docs/examples.adoc (current)
https://github.com/Cray-HPE/hms-smd/blob/master/docs/examples.adoc (current)

Latest swagger.yaml (if you would prefer to use the OpenAPI viewer of your choice):

https://stash.us.cray.com/projects/HMS/repos/hms-smd/browse/api/swagger.yaml (current)
https://github.com/Cray-HPE/hms-smd/blob/master/api/swagger_v2.yaml (current)



Expand Down
2 changes: 1 addition & 1 deletion cmd/smd-init/smd-init.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"github.com/golang-migrate/migrate/v4/database/postgres"
_ "github.com/golang-migrate/migrate/v4/source/file"
_ "github.com/lib/pq"
"stash.us.cray.com/HMS/hms-smd/internal/hmsds"
"github.com/Cray-HPE/hms-smd/internal/hmsds"
)

const APP_VERSION = "1"
Expand Down
4 changes: 2 additions & 2 deletions cmd/smd-loader/smd-loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"net/http"
"os"
"os/signal"
"stash.us.cray.com/HMS/hms-base"
hmshttp "stash.us.cray.com/HMS/hms-go-http-lib"
"github.com/Cray-HPE/hms-base"
hmshttp "github.com/Cray-HPE/hms-go-http-lib"
"syscall"
"time"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/smd/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"fmt"
"strconv"

base "stash.us.cray.com/HMS/hms-base"
"stash.us.cray.com/HMS/hms-smd/internal/hmsds"
rf "stash.us.cray.com/HMS/hms-smd/pkg/redfish"
base "github.com/Cray-HPE/hms-base"
"github.com/Cray-HPE/hms-smd/internal/hmsds"
rf "github.com/Cray-HPE/hms-smd/pkg/redfish"
)

////////////////////////////////////////////////////////////////////////////
Expand Down
8 changes: 4 additions & 4 deletions cmd/smd/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import (
"strings"
"sync"

base "stash.us.cray.com/HMS/hms-base"
compcreds "stash.us.cray.com/HMS/hms-compcredentials"
rf "stash.us.cray.com/HMS/hms-smd/pkg/redfish"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
base "github.com/Cray-HPE/hms-base"
compcreds "github.com/Cray-HPE/hms-compcredentials"
rf "github.com/Cray-HPE/hms-smd/pkg/redfish"
"github.com/Cray-HPE/hms-smd/pkg/sm"
)

// When we discover a Redfish Endpoint, the data retrieved is processed
Expand Down
6 changes: 3 additions & 3 deletions cmd/smd/hmsdsmock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ package main
import (
"log"

base "stash.us.cray.com/HMS/hms-base"
"stash.us.cray.com/HMS/hms-smd/internal/hmsds"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
base "github.com/Cray-HPE/hms-base"
"github.com/Cray-HPE/hms-smd/internal/hmsds"
"github.com/Cray-HPE/hms-smd/pkg/sm"
)

type TestResults struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/smd/job-types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import (
"sync"
"time"

base "stash.us.cray.com/HMS/hms-base"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
base "github.com/Cray-HPE/hms-base"
"github.com/Cray-HPE/hms-smd/pkg/sm"
)

///////////////////////////////////////////////////////////////////////////////
Expand Down
4 changes: 2 additions & 2 deletions cmd/smd/msgbus.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
package main

import (
base "stash.us.cray.com/HMS/hms-base"
msgbus "stash.us.cray.com/HMS/hms-msgbus"
base "github.com/Cray-HPE/hms-base"
msgbus "github.com/Cray-HPE/hms-msgbus"
"strconv"
"strings"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/smd/msgbus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
package main

import (
msgbus "stash.us.cray.com/HMS/hms-msgbus"
msgbus "github.com/Cray-HPE/hms-msgbus"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/smd/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"fmt"
"net/http"

base "stash.us.cray.com/HMS/hms-base"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
base "github.com/Cray-HPE/hms-base"
"github.com/Cray-HPE/hms-smd/pkg/sm"
)

type Response struct {
Expand Down
8 changes: 4 additions & 4 deletions cmd/smd/rfevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import (
"strings"
"sync"

base "stash.us.cray.com/HMS/hms-base"
"stash.us.cray.com/HMS/hms-smd/internal/hmsds"
rf "stash.us.cray.com/HMS/hms-smd/pkg/redfish"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
base "github.com/Cray-HPE/hms-base"
"github.com/Cray-HPE/hms-smd/internal/hmsds"
rf "github.com/Cray-HPE/hms-smd/pkg/redfish"
"github.com/Cray-HPE/hms-smd/pkg/sm"
)

var em = base.NewHMSError("sm.msgbus", "internal error")
Expand Down
12 changes: 6 additions & 6 deletions cmd/smd/rfevent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ import (
"net/http"
"net/http/httptest"
"net/url"
compcreds "stash.us.cray.com/HMS/hms-compcredentials"
sstorage "stash.us.cray.com/HMS/hms-securestorage"
"stash.us.cray.com/HMS/hms-smd/internal/hmsds"
rf "stash.us.cray.com/HMS/hms-smd/pkg/redfish"
st "stash.us.cray.com/HMS/hms-smd/pkg/sharedtest"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
compcreds "github.com/Cray-HPE/hms-compcredentials"
sstorage "github.com/Cray-HPE/hms-securestorage"
"github.com/Cray-HPE/hms-smd/internal/hmsds"
rf "github.com/Cray-HPE/hms-smd/pkg/redfish"
st "github.com/Cray-HPE/hms-smd/pkg/sharedtest"
"github.com/Cray-HPE/hms-smd/pkg/sm"
"testing"
)

Expand Down
10 changes: 5 additions & 5 deletions cmd/smd/smd-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import (
"strconv"
"strings"

base "stash.us.cray.com/HMS/hms-base"
compcreds "stash.us.cray.com/HMS/hms-compcredentials"
"stash.us.cray.com/HMS/hms-smd/internal/hmsds"
rf "stash.us.cray.com/HMS/hms-smd/pkg/redfish"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
base "github.com/Cray-HPE/hms-base"
compcreds "github.com/Cray-HPE/hms-compcredentials"
"github.com/Cray-HPE/hms-smd/internal/hmsds"
rf "github.com/Cray-HPE/hms-smd/pkg/redfish"
"github.com/Cray-HPE/hms-smd/pkg/sm"

"github.com/gorilla/mux"
)
Expand Down
12 changes: 6 additions & 6 deletions cmd/smd/smd-api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ import (
"strings"
"testing"

base "stash.us.cray.com/HMS/hms-base"
compcreds "stash.us.cray.com/HMS/hms-compcredentials"
sstorage "stash.us.cray.com/HMS/hms-securestorage"
"stash.us.cray.com/HMS/hms-smd/internal/hmsds"
stest "stash.us.cray.com/HMS/hms-smd/pkg/sharedtest"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
base "github.com/Cray-HPE/hms-base"
compcreds "github.com/Cray-HPE/hms-compcredentials"
sstorage "github.com/Cray-HPE/hms-securestorage"
"github.com/Cray-HPE/hms-smd/internal/hmsds"
stest "github.com/Cray-HPE/hms-smd/pkg/sharedtest"
"github.com/Cray-HPE/hms-smd/pkg/sm"

"github.com/gorilla/mux"
)
Expand Down
20 changes: 10 additions & 10 deletions cmd/smd/smd.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,16 @@ import (
"net/http"
"os"
"runtime"
base "stash.us.cray.com/HMS/hms-base"
compcreds "stash.us.cray.com/HMS/hms-compcredentials"
msgbus "stash.us.cray.com/HMS/hms-msgbus"
sstorage "stash.us.cray.com/HMS/hms-securestorage"
"stash.us.cray.com/HMS/hms-smd/internal/hbtdapi"
"stash.us.cray.com/HMS/hms-smd/internal/hmsds"
"stash.us.cray.com/HMS/hms-smd/internal/slsapi"
"stash.us.cray.com/HMS/hms-smd/pkg/redfish"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
"stash.us.cray.com/HMS/hms-certs/pkg/hms_certs"
base "github.com/Cray-HPE/hms-base"
compcreds "github.com/Cray-HPE/hms-compcredentials"
msgbus "github.com/Cray-HPE/hms-msgbus"
sstorage "github.com/Cray-HPE/hms-securestorage"
"github.com/Cray-HPE/hms-smd/internal/hbtdapi"
"github.com/Cray-HPE/hms-smd/internal/hmsds"
"github.com/Cray-HPE/hms-smd/internal/slsapi"
"github.com/Cray-HPE/hms-smd/pkg/redfish"
"github.com/Cray-HPE/hms-smd/pkg/sm"
"github.com/Cray-HPE/hms-certs/pkg/hms_certs"
"strconv"
"strings"
"sync"
Expand Down
8 changes: 4 additions & 4 deletions cmd/smd/state-change.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ package main

import (
"encoding/json"
base "stash.us.cray.com/HMS/hms-base"
"stash.us.cray.com/HMS/hms-smd/internal/hmsds"
"stash.us.cray.com/HMS/hms-smd/pkg/redfish"
"stash.us.cray.com/HMS/hms-smd/pkg/sm"
base "github.com/Cray-HPE/hms-base"
"github.com/Cray-HPE/hms-smd/internal/hmsds"
"github.com/Cray-HPE/hms-smd/pkg/redfish"
"github.com/Cray-HPE/hms-smd/pkg/sm"
"strconv"
"strings"
"time"
Expand Down
18 changes: 9 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
module stash.us.cray.com/HMS/hms-smd
module github.com/Cray-HPE/hms-smd

go 1.16

require (
github.com/Cray-HPE/hms-base v1.15.0
github.com/Cray-HPE/hms-certs v1.3.2
github.com/Cray-HPE/hms-compcredentials v1.11.2
github.com/Cray-HPE/hms-go-http-lib v1.5.3
github.com/Cray-HPE/hms-msgbus v1.10.2
github.com/Cray-HPE/hms-securestorage v1.12.2
github.com/DATA-DOG/go-sqlmock v1.3.3
github.com/Masterminds/squirrel v1.4.0
github.com/frankban/quicktest v1.7.3 // indirect
Expand All @@ -12,12 +18,12 @@ require (
github.com/google/uuid v1.1.1
github.com/gorilla/mux v1.7.4
github.com/hashicorp/go-hclog v0.14.1 // indirect
github.com/hashicorp/go-retryablehttp v0.6.7
github.com/hashicorp/go-retryablehttp v0.7.0
github.com/lib/pq v1.3.0
github.com/onsi/ginkgo v1.12.0 // indirect
github.com/onsi/gomega v1.9.0 // indirect
github.com/pierrec/lz4 v2.4.1+incompatible // indirect
github.com/sirupsen/logrus v1.6.0
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.5.1 // indirect
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 // indirect
golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc // indirect
Expand All @@ -28,10 +34,4 @@ require (
google.golang.org/genproto v0.0.0-20200815001618-f69a88009b70 // indirect
google.golang.org/grpc v1.29.1 // indirect
google.golang.org/protobuf v1.25.0 // indirect
stash.us.cray.com/HMS/hms-base v1.13.0
stash.us.cray.com/HMS/hms-certs v1.3.0
stash.us.cray.com/HMS/hms-compcredentials v1.11.0
stash.us.cray.com/HMS/hms-go-http-lib v1.5.0
stash.us.cray.com/HMS/hms-msgbus v1.10.0
stash.us.cray.com/HMS/hms-securestorage v1.12.0
)
Loading

0 comments on commit 174bb12

Please sign in to comment.