forked from raystack/frontier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: e2e-test, user, group and servicedat tests
- Loading branch information
1 parent
e259c45
commit 678dc51
Showing
15 changed files
with
201 additions
and
123 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
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 |
---|---|---|
|
@@ -26,21 +26,21 @@ var ( | |
testProjectSlug = "test-project-slug" | ||
testKey = servicedata.Key{ | ||
ProjectID: "test-project-slug", | ||
Key: "test-key", | ||
Name: "test-key", | ||
Description: "test key no 01", | ||
} | ||
testCreateKey = servicedata.Key{ | ||
URN: "test-project-slug:servicedata_key:test-key", | ||
ProjectID: testProjectID, | ||
ProjectSlug: testProjectSlug, | ||
Key: "test-key", | ||
Name: "test-key", | ||
Description: "test key no 01", | ||
ResourceID: testResourceID, | ||
} | ||
testCreatedKey = servicedata.Key{ | ||
URN: "test-project-slug:servicedata_key:test-key", | ||
ProjectID: testProjectID, | ||
Key: "test-key", | ||
Name: "test-key", | ||
Description: "test key no 01", | ||
ResourceID: testResourceID, | ||
} | ||
|
@@ -125,7 +125,7 @@ func TestService_CreateKey(t *testing.T) { | |
name: "CreateKeyEmpty", | ||
key: servicedata.Key{ | ||
ProjectID: testKey.ProjectID, | ||
Key: "", | ||
Name: "", | ||
Description: testKey.Description, | ||
}, | ||
setup: func(t *testing.T) *servicedata.Service { | ||
|
@@ -174,7 +174,7 @@ func TestService_CreateKey(t *testing.T) { | |
name: "CreateKeyInvalidProjectID", | ||
key: servicedata.Key{ | ||
ProjectID: "invalid-test-project-slug", | ||
Key: testKey.Key, | ||
Name: testKey.Name, | ||
Description: testKey.Description, | ||
}, | ||
email: "[email protected]", | ||
|
@@ -352,7 +352,7 @@ func TestService_Upsert(t *testing.T) { | |
name: "UpsertKeyEmpty", | ||
data: servicedata.ServiceData{ | ||
Key: servicedata.Key{ | ||
Key: "", | ||
Name: "", | ||
}, | ||
}, | ||
setup: func(t *testing.T) *servicedata.Service { | ||
|
@@ -386,7 +386,7 @@ func TestService_Upsert(t *testing.T) { | |
name: "UpsertInvalidProjectID", | ||
data: servicedata.ServiceData{ | ||
Key: servicedata.Key{ | ||
Key: testKey.Key, | ||
Name: testKey.Name, | ||
ProjectID: "invalid-test-project-slug", | ||
}, | ||
}, | ||
|
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
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
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
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
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
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[ | ||
{ | ||
"key": "test-key-01", | ||
"name": "test-key-01", | ||
"description": "description for test-key-01" | ||
}, | ||
{ | ||
"key": "test-key-02", | ||
"name": "test-key-02", | ||
"description": "description for test-key-02" | ||
}, | ||
{ | ||
"key": "test-key-03", | ||
"name": "test-key-03", | ||
"description": "description for test-key-03" | ||
} | ||
] |
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
Oops, something went wrong.