Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Fix tests and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGarbutt committed Aug 30, 2019
1 parent e5ff590 commit acf8ed1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestSessionActionHandler_handleCreate(t *testing.T) {
}
action := datamodel.SessionAction{
ActionType: datamodel.SessionCreateFilesystem,
Session: datamodel.Session{Name: "test"},
Session: datamodel.Session{Name: "test", ActualSizeBytes: 42},
}
sessionMutex := mock_store.NewMockMutex(mockCtrl)
registry.EXPECT().GetSessionMutex(action.Session.Name).Return(sessionMutex, nil)
Expand All @@ -41,8 +41,9 @@ func TestSessionActionHandler_handleCreate(t *testing.T) {
registry.EXPECT().GetSession(action.Session.Name).Return(action.Session, nil)
fsProvider.EXPECT().Create(action.Session)
updatedSession := datamodel.Session{
Name: action.Session.Name,
Status: datamodel.SessionStatus{FileSystemCreated: true},
Name: action.Session.Name,
Status: datamodel.SessionStatus{FileSystemCreated: true},
ActualSizeBytes: 42,
}
registry.EXPECT().UpdateSession(updatedSession).Return(updatedSession, nil)
updatedAction := datamodel.SessionAction{
Expand Down
4 changes: 2 additions & 2 deletions internal/pkg/v2/dacd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ func GetBrickManagerConfig(env ReadEnvironemnt) BrickManagerConfig {
config := BrickManagerConfig{
datamodel.BrickHostName(getHostname(env)),
datamodel.PoolName(getString(env, "DAC_POOL_NAME", "default")),
getUint(env, "DAC_BRICK_CAPACITY_GB", 1400), // TODO: DAC_DEVICE_CAPACITY_GB
getUint(env, "DAC_BRICK_COUNT", 12), // TODO: DEVICE_COUNT
getUint(env, "DAC_BRICK_CAPACITY_GB", 1400), // TODO: DAC_DEVICE_CAPACITY_GB
getUint(env, "DAC_BRICK_COUNT", 12), // TODO: DEVICE_COUNT
getString(env, "DAC_BRICK_ADDRESS_PATTERN", "nvme%dn1"), // TODO: DEVICE_TYPE
getBool(env, "DAC_HOST_ENABLED", true),
}
Expand Down

0 comments on commit acf8ed1

Please sign in to comment.