Skip to content

Commit

Permalink
Update Bootstrap service docker-compose.yml (absmach#700)
Browse files Browse the repository at this point in the history
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
  • Loading branch information
dborovcanin committed Apr 9, 2019
1 parent df11a20 commit 96b5521
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
18 changes: 9 additions & 9 deletions bootstrap/redis/producer/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ type createConfigEvent struct {

func (cce createConfigEvent) encode() map[string]interface{} {
return map[string]interface{}{
"id": cce.mfThing,
"owner": cce.owner,
"name": cce.name,
"channels": strings.Join(cce.mfChannels, ", "),
"externalID": cce.externalID,
"content": cce.content,
"timestamp": cce.timestamp.Unix(),
"operation": configCreate,
"id": cce.mfThing,
"owner": cce.owner,
"name": cce.name,
"channels": strings.Join(cce.mfChannels, ", "),
"external_id": cce.externalID,
"content": cce.content,
"timestamp": cce.timestamp.Unix(),
"operation": configCreate,
}
}

Expand Down Expand Up @@ -100,7 +100,7 @@ type bootstrapEvent struct {

func (be bootstrapEvent) encode() map[string]interface{} {
return map[string]interface{}{
"externalID": be.externalID,
"external_id": be.externalID,
"successfull": be.successfull,
"timestamp": be.timestamp.Unix(),
"operation": thingBootstrap,
Expand Down
20 changes: 10 additions & 10 deletions bootstrap/redis/producer/streams_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ func TestAdd(t *testing.T) {
key: validToken,
err: nil,
event: map[string]interface{}{
"id": "1",
"owner": email,
"name": config.Name,
"channels": strings.Join(channels, ", "),
"externalID": config.ExternalID,
"content": config.Content,
"timestamp": strconv.FormatInt(time.Now().Unix(), 10),
"operation": configCreate,
"id": "1",
"owner": email,
"name": config.Name,
"channels": strings.Join(channels, ", "),
"external_id": config.ExternalID,
"content": config.Content,
"timestamp": strconv.FormatInt(time.Now().Unix(), 10),
"operation": configCreate,
},
},
{
Expand Down Expand Up @@ -425,7 +425,7 @@ func TestBootstrap(t *testing.T) {
externalKey: saved.ExternalKey,
err: nil,
event: map[string]interface{}{
"externalID": saved.ExternalID,
"external_id": saved.ExternalID,
"successfull": "1",
"timestamp": strconv.FormatInt(time.Now().Unix(), 10),
"operation": thingBootstrap,
Expand All @@ -437,7 +437,7 @@ func TestBootstrap(t *testing.T) {
externalKey: "external",
err: bootstrap.ErrNotFound,
event: map[string]interface{}{
"externalID": saved.ExternalID,
"external_id": saved.ExternalID,
"successfull": "0",
"timestamp": strconv.FormatInt(time.Now().Unix(), 10),
"operation": thingBootstrap,
Expand Down

0 comments on commit 96b5521

Please sign in to comment.