-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from lacework/afiune/struct-consistency
chore: consistency with ID fields in Go structs
- Loading branch information
Showing
11 changed files
with
44 additions
and
44 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
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 |
---|---|---|
|
@@ -68,13 +68,13 @@ func TestIntegrationsCreateGcp(t *testing.T) { | |
data := api.NewGcpAuditLogIntegration("integration_name", | ||
api.GcpIntegrationData{ | ||
ID: "data_id", | ||
IdType: "id_type", | ||
IDType: "id_type", | ||
SubscriptionName: "subscription_name", | ||
Credentials: api.GcpCredentials{ | ||
ClientId: "client_id", | ||
ClientID: "client_id", | ||
ClientEmail: "[email protected]", | ||
PrivateKey: "priv_key", | ||
PrivateKeyId: "p_key_id", | ||
PrivateKeyID: "p_key_id", | ||
}, | ||
}, | ||
) | ||
|
@@ -92,7 +92,7 @@ func TestIntegrationsCreateGcp(t *testing.T) { | |
assert.Equal(t, "integration_name", resData.Name) | ||
assert.True(t, resData.State.Ok) | ||
assert.Equal(t, "data_id", resData.Data.ID) | ||
assert.Equal(t, "PROJECT", resData.Data.IdType) | ||
assert.Equal(t, "PROJECT", resData.Data.IDType) | ||
assert.Equal(t, | ||
"[email protected]", | ||
resData.Data.Credentials.ClientEmail, | ||
|
@@ -128,7 +128,7 @@ func TestIntegrationsGetGcp(t *testing.T) { | |
assert.Equal(t, "integration_name", resData.Name) | ||
assert.True(t, resData.State.Ok) | ||
assert.Equal(t, "data_id", resData.Data.ID) | ||
assert.Equal(t, "PROJECT", resData.Data.IdType) | ||
assert.Equal(t, "PROJECT", resData.Data.IDType) | ||
assert.Equal(t, | ||
"[email protected]", | ||
resData.Data.Credentials.ClientEmail, | ||
|
@@ -176,12 +176,12 @@ func TestIntegrationsUpdateGcp(t *testing.T) { | |
api.GcpCfgIntegration, | ||
api.GcpIntegrationData{ | ||
ID: "data_id", | ||
IdType: "id_type", | ||
IDType: "id_type", | ||
Credentials: api.GcpCredentials{ | ||
ClientId: "client_id", | ||
ClientID: "client_id", | ||
ClientEmail: "[email protected]", | ||
PrivateKey: "priv_key", | ||
PrivateKeyId: "p_key_id", | ||
PrivateKeyID: "p_key_id", | ||
}, | ||
}, | ||
) | ||
|
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