Skip to content

Commit

Permalink
Vc/remove hollow 1 (#25)
Browse files Browse the repository at this point in the history
* remove ancient flasher dependency

* excise references to go.hollow.sh/events
  • Loading branch information
DoctorVin authored Dec 12, 2023
1 parent 662eb9b commit 59ee6af
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 21 deletions.
5 changes: 2 additions & 3 deletions condition/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import (
"fmt"
"time"

"github.com/metal-toolbox/flasher/types"
"github.com/metal-toolbox/rivets/events/registry"
"github.com/nats-io/nats.go"
"github.com/pkg/errors"
"go.hollow.sh/toolbox/events/registry"
)

type ErrQueryStatus struct {
Expand Down Expand Up @@ -120,7 +119,7 @@ func CheckConditionInProgress(conditionID, facilityCode, kvBucket string, js nat
}

// we have an status entry for this condition, is is complete?
sv := types.StatusValue{}
sv := StatusValue{}
if errJSON := json.Unmarshal(entry.Value(), &sv); errJSON != nil {
errJSON = errors.Wrap(errJSON, "unable to construct a sane status for condition")
return Indeterminate, newErrQueryStatus(errJSON, kvBucket, lookupKey, "")
Expand Down
9 changes: 4 additions & 5 deletions condition/status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ import (
"time"

"github.com/google/uuid"
"github.com/metal-toolbox/flasher/types"
"github.com/metal-toolbox/rivets/events"
"github.com/metal-toolbox/rivets/events/pkg/kv"
"github.com/metal-toolbox/rivets/events/registry"
"github.com/nats-io/nats-server/v2/server"
srvtest "github.com/nats-io/nats-server/v2/test"
"github.com/nats-io/nats.go"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.hollow.sh/toolbox/events"
"go.hollow.sh/toolbox/events/pkg/kv"
"go.hollow.sh/toolbox/events/registry"
)

func startJetStreamServer(t *testing.T) *server.Server {
Expand Down Expand Up @@ -107,7 +106,7 @@ func TestCheckConditionInProgress(t *testing.T) {
Complete,
"",
func() []byte {
sv := &types.StatusValue{State: string(Failed)}
sv := &StatusValue{State: string(Failed)}
return sv.MustBytes()
},
false,
Expand Down
2 changes: 1 addition & 1 deletion condition/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

"github.com/google/uuid"
"go.hollow.sh/toolbox/events"
"github.com/metal-toolbox/rivets/events"

"golang.org/x/exp/slices"
)
Expand Down
18 changes: 11 additions & 7 deletions events/mock/events.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion events/pkg/kv/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/nats-io/nats.go"

"go.hollow.sh/toolbox/events"
"github.com/metal-toolbox/rivets/events"
)

// DefaultKVConfig returns a configuration with "mostly sane" defaults. Override
Expand Down
2 changes: 1 addition & 1 deletion events/pkg/kv/kv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/nats-io/nats.go"

"github.com/metal-toolbox/rivets/events"
kvTest "github.com/metal-toolbox/rivets/events/internal/test"
"go.hollow.sh/toolbox/events"

"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions events/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (

"github.com/nats-io/nats.go"

"go.hollow.sh/toolbox/events"
"go.hollow.sh/toolbox/events/pkg/kv"
"github.com/metal-toolbox/rivets/events"
"github.com/metal-toolbox/rivets/events/pkg/kv"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion events/registry/registry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/nats-io/nats.go"
"github.com/stretchr/testify/require"

"github.com/metal-toolbox/rivets/events"
kvTest "github.com/metal-toolbox/rivets/events/internal/test"
"go.hollow.sh/toolbox/events"
)

func TestAppLifecycle(t *testing.T) {
Expand Down

0 comments on commit 59ee6af

Please sign in to comment.