-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More integration tests for datastore layer. (#541)
- Loading branch information
Showing
4 changed files
with
475 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
cmd/metal-api/internal/datastore/health_integration_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//go:build integration | ||
// +build integration | ||
|
||
package datastore | ||
|
||
import ( | ||
"context" | ||
"testing" | ||
|
||
"github.com/metal-stack/metal-lib/rest" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestRethinkStore_Health(t *testing.T) { | ||
result, err := sharedDS.Check(context.Background()) | ||
require.NoError(t, err) | ||
require.Equal(t, rest.HealthStatusHealthy, result.Status) | ||
require.Contains(t, result.Message, "connected to rethinkdb version: rethinkdb") | ||
} |
Oops, something went wrong.