-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(work pools): fix work pool base job template "inconsistent values" (
#249) Addresses the "inconsistent values" error the provider would sometimes return when working with work pools that specify a base job template (context: #244 (comment)) - Inconsistent result after apply bug with prefect_work_pool #244 (comment)) - Adds base_job_template to the Work Pool tests - Conforms to the newer, simpler method of unmarshaling the base job template that we use in our Block data logic Closes #244 Co-authored-by: Edward Park <[email protected]> --------- Co-authored-by: Edward Park <[email protected]>
- Loading branch information
1 parent
7d75c2f
commit d6d8355
Showing
5 changed files
with
147 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package helpers | ||
|
||
import "github.com/go-test/deep" | ||
|
||
// ObjectsEqual checks to see if two objects are equivalent, accounting for | ||
// differences in the order of the contents. | ||
func ObjectsEqual(obj1, obj2 interface{}) (bool, []string) { | ||
differences := deep.Equal(obj1, obj2) | ||
if len(differences) != 0 { | ||
return false, differences | ||
} | ||
|
||
return true, nil | ||
} |
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