Skip to content

Commit

Permalink
Update test values and embed location struct in peer system
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmmbaga committed Jan 30, 2024
1 parent 36b58d8 commit 00c7c00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions management/server/http/posture_checks_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ func TestPostureCheckUpdate(t *testing.T) {
"geo_location_check": {
"locations": [
{
"city_name": "test",
"country_code": "TE"
"city_name": "Los Angeles",
"country_code": "US"
}
],
"action": "allow"
Expand All @@ -462,8 +462,8 @@ func TestPostureCheckUpdate(t *testing.T) {
GeoLocationCheck: &api.GeoLocationCheck{
Locations: []api.Location{
{
CityName: "test",
CountryCode: "TE",
CityName: "Los Angeles",
CountryCode: "US",
},
},
Action: api.GeoLocationCheckActionAllow,
Expand Down
2 changes: 1 addition & 1 deletion management/server/peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ type PeerSystemMeta struct {
Location struct {
CountryCode string
CityName string
}
} `gorm:"embedded;embeddedPrefix:location_"`
}

func (p PeerSystemMeta) isEqual(other PeerSystemMeta) bool {
Expand Down

0 comments on commit 00c7c00

Please sign in to comment.