Skip to content

Commit

Permalink
DXE-2551 Merge pull request #186 from akamai/release/v6.0.0
Browse files Browse the repository at this point in the history
DXE-2551 Release/v6.0.0
  • Loading branch information
wzagrajcz authored May 23, 2023
2 parents dc7deb1 + 07f4796 commit 80c0192
Show file tree
Hide file tree
Showing 197 changed files with 1,634 additions and 989 deletions.
1 change: 1 addition & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- v2
- v3
- v4
- v5
- master
jobs:
test:
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# EDGEGRID GOLANG RELEASE NOTES

## 6.0.0 (May 23, 2023)

### BREAKING CHANGES:

* APPSEC
* Update malware policy `ContentTypes` to include `EncodedContentAttributes`.
* Malware policy's `ContentTypes` is reported as part of an individual policy but is no longer included in the bulk report of all policies.

* CLOUDLETS
* `ActivatePolicyVersion` also returns list of triggerred activations

* PAPI
* Fix property variables fields with empty and null values are ignored
* Remove `ProductID` field from `GetEdgeHostname` response

### BUG FIXES:
* APPSEC
* Omit `clientIdentifier` and `additionalMatchOptions` in `GetExportConfigurationResponse` when empty

## 5.0.0 (March 28, 2023)

### FEATURES/ENHANCEMENTS:
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Akamai OPEN EdgeGrid for GoLang v5
# Akamai OPEN EdgeGrid for GoLang v6

![Build Status](https://github.com/akamai/akamaiOPEN-edgegrid-golang/actions/workflows/checks.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/akamai/akamaiOPEN-edgegrid-golang/v5)](https://goreportcard.com/report/github.com/akamai/akamaiOPEN-edgegrid-golang/v5)
[![Go Report Card](https://goreportcard.com/badge/github.com/akamai/AkamaiOPEN-edgegrid-golang/v6)](https://goreportcard.com/report/github.com/akamai/AkamaiOPEN-edgegrid-golang/v6)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/akamai/akamaiOPEN-edgegrid-golang)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![GoDoc](https://pkg.go.dev/badge/github.com/akamai/akamaiOPEN-edgegrid-golang?utm_source=godoc)](https://pkg.go.dev/github.com/akamai/AkamaiOPEN-edgegrid-golang/v5)
[![GoDoc](https://pkg.go.dev/badge/github.com/akamai/akamaiOPEN-edgegrid-golang?utm_source=godoc)](https://pkg.go.dev/github.com/akamai/AkamaiOPEN-edgegrid-golang/v6)

This module is presently in active development and provides Akamai REST API support for the Akamai Terraform Provider.

## Backward Compatibility

This module is not backward compatible with the version `v1`.

Originally branch `master` was representing version `v1`. Now it is representing the latest version `v5` and
Originally branch `master` was representing version `v1`. Now it is representing the latest version `v6` and
version `v1`
was moved to dedicated `v1` branch.

Expand All @@ -22,7 +22,7 @@ The packages of library can be imported alongside the `v1` library versions with

```
import (
"github.com/akamai/AkamaiOPEN-edgegrid-golang/papi-v1"
papiv5 "github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/papi"
papiv1 "github.com/akamai/AkamaiOPEN-edgegrid-golang/papi-v1"
papi "github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/papi"
)
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/akamai/AkamaiOPEN-edgegrid-golang/v5
module github.com/akamai/AkamaiOPEN-edgegrid-golang/v6

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/activations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_attack_payload_logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"net/http"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/edgegriderr"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/edgegriderr"
validation "github.com/go-ozzo/ozzo-validation/v4"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
26 changes: 13 additions & 13 deletions pkg/appsec/advanced_settings_evasive_path_match_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -126,12 +126,12 @@ func TestAppSec_GetAdvancedSettingsEvasivePathmatch(t *testing.T) {
Version: 15,
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching AdvancedSettingsEvasivePathMatch"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching AdvancedSettingsEvasivePathMatch"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/advanced-settings/evasive-path-match",
withError: &Error{
Type: "internal_error",
Expand Down Expand Up @@ -205,12 +205,12 @@ func TestAppSec_UpdateAdvancedSettingsEvasivePathMatch(t *testing.T) {
Version: 15,
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error creating AdvancedSettingsEvasivePathMatch"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error creating AdvancedSettingsEvasivePathMatch"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/advanced-settings/evasive-path-match",
withError: &Error{
Type: "internal_error",
Expand Down
26 changes: 13 additions & 13 deletions pkg/appsec/advanced_settings_logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -126,12 +126,12 @@ func TestAppSec_GetAdvancedSettingsLogging(t *testing.T) {
Version: 15,
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching AdvancedSettingsLogging"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching AdvancedSettingsLogging"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/advanced-settings/logging",
withError: &Error{
Type: "internal_error",
Expand Down Expand Up @@ -205,12 +205,12 @@ func TestAppSec_UpdateAdvancedSettingsLogging(t *testing.T) {
Version: 15,
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error creating AdvancedSettingsLogging"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error creating AdvancedSettingsLogging"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/advanced-settings/logging",
withError: &Error{
Type: "internal_error",
Expand Down
16 changes: 8 additions & 8 deletions pkg/appsec/advanced_settings_pragma_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -126,12 +126,12 @@ func TestAppSec_GetAdvancedSettingsPrama(t *testing.T) {
Version: 15,
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching AdvancedSettingsPragma"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching AdvancedSettingsPragma"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/advanced-settings/pragma-header",
withError: &Error{
Type: "internal_error",
Expand Down Expand Up @@ -205,7 +205,7 @@ func TestAppSec_UpdateAdvancedSettingsPragma(t *testing.T) {
Version: 15,
},
responseStatus: http.StatusInternalServerError,
responseBody: (`{"type": "internal_error","title": "Internal Server Error","detail": "Error creating AdvancedSettingsPragma"}`),
responseBody: `{"type": "internal_error","title": "Internal Server Error","detail": "Error creating AdvancedSettingsPragma"}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/advanced-settings/pragma-header",
withError: &Error{
Type: "internal_error",
Expand Down
26 changes: 13 additions & 13 deletions pkg/appsec/advanced_settings_prefetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -126,12 +126,12 @@ func TestAppSec_GetAdvancedSettingsPrefetch(t *testing.T) {
Version: 15,
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching AdvancedSettingsPrefetch"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching AdvancedSettingsPrefetch"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/advanced-settings/prefetch",
withError: &Error{
Type: "internal_error",
Expand Down Expand Up @@ -205,12 +205,12 @@ func TestAppSec_UpdateAdvancedSettingsPrefetch(t *testing.T) {
Version: 15,
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error creating AdvancedSettingsPrefetch"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error creating AdvancedSettingsPrefetch"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/advanced-settings/prefetch",
withError: &Error{
Type: "internal_error",
Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_request_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net/http"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/edgegriderr"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/edgegriderr"
validation "github.com/go-ozzo/ozzo-validation/v4"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/appsec/advanced_settings_request_body_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
26 changes: 13 additions & 13 deletions pkg/appsec/api_constraints_protection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -48,12 +48,12 @@ func TestAppSec_GetAPIConstraintsProtection(t *testing.T) {
PolicyID: "AAAA_81230",
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching match target"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching match target"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/security-policies/AAAA_81230/protections",
withError: &Error{
Type: "internal_error",
Expand Down Expand Up @@ -129,12 +129,12 @@ func TestAppSec_UpdateAPIConstraintsProtection(t *testing.T) {
PolicyID: "AAAA_81230",
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error creating zone"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error creating zone"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/security-policies/AAAA_81230/protections",
withError: &Error{
Type: "internal_error",
Expand Down
14 changes: 7 additions & 7 deletions pkg/appsec/api_endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -126,12 +126,12 @@ func TestAppSec_GetApiEndpoints(t *testing.T) {
Version: 15,
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching ApiEndpoints"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching ApiEndpoints"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/api-endpoints",
withError: &Error{
Type: "internal_error",
Expand Down
14 changes: 7 additions & 7 deletions pkg/appsec/api_hostname_coverage_match_targets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"

"github.com/akamai/AkamaiOPEN-edgegrid-golang/v5/pkg/session"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/v6/pkg/session"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down Expand Up @@ -130,12 +130,12 @@ func TestAppSec_GetApiHostnameCoverageMatchTargets(t *testing.T) {
Hostname: "www.example.com",
},
responseStatus: http.StatusInternalServerError,
responseBody: (`
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching ApiHostnameCoverageMatchTargets"
}`),
responseBody: `
{
"type": "internal_error",
"title": "Internal Server Error",
"detail": "Error fetching ApiHostnameCoverageMatchTargets"
}`,
expectedPath: "/appsec/v1/configs/43253/versions/15/hostname-coverage/match-targets?hostname=www.example.com",
withError: &Error{
Type: "internal_error",
Expand Down
Loading

0 comments on commit 80c0192

Please sign in to comment.