-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new error abstraction for field validation (#239)
* NewName should be optional * create generic error type * update service validation * service version 'comment' is required * clarify in README use of pointers for mandatory fields on list operations * remove unnecessary TLS prefix * when updating a dict item, the value should be required not optional * indicate both fields are required * capture domain update 'optional field' error in a test * start moving errors over to new field error type * fix honeycomb to use new error field * fix resources to use new error field validation * refactor method name on FieldError * tweak docstring for FieldError#Error * revert a possibly unnecessary change * update README (v2 and v3 links) * update go.mod to v3 * revert to sentinel errors * remove note * revert errors.Is * fix managed logging code as rebase cleared a new error sentinel * update README to reflect merged breaking changes * fix bad rebase * revert change to DitionaryUpdate ItemValue (we'll move to separate PR) * revert change to NewName being optional (we'll move to separate PR) * Avoid hardcoded strings for validating errors * revert change to TLS Configuration and Domain (we'll move to separate PR) * revert change from Service to ServiceID (we'll move to separate PR) * revert change from ID to ServiceID (we'll move to separate PR)
- Loading branch information
1 parent
4bee01f
commit ee7e2bb
Showing
55 changed files
with
422 additions
and
266 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_ACLs(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_Backends(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_BlobStorages(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_CacheSettings(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_Cloudfiles(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_Conditions(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_Datadog(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_Dictionaries(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_Diff(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_DigitalOceans(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_Directors(t *testing.T) { | ||
t.Parallel() | ||
|
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,6 +1,8 @@ | ||
package fastly | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestClient_Domains(t *testing.T) { | ||
t.Parallel() | ||
|
Oops, something went wrong.