Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch v2 #9

Merged
merged 29 commits into from
Dec 14, 2021
Merged

Watch v2 #9

merged 29 commits into from
Dec 14, 2021

Conversation

danielmkn
Copy link
Collaborator

No description provided.

…k verify the license and create a dummy repo with enabled Xray indexing
- Add more tests.
- Replace plurals with single form - resource, filter, assigned_policy per PTRENG-3122 and GH-4
- Remove old tests and filter wrapper
- Move license verification to provider.go
- Add create builds func for testing
- Add watch build tests
- renamed singular 'resource' to 'watch_resource' to avoid errors
- added HCL samples
-
- Added auto-generated documentation with examples
- Removed unused function
- Added validation and description for Provider URL and access token
- MakeFile changes to match the file for Projects
Remove pointers form watches.go
- Use TypeSet instead of TypeList to avoid sorting problem. Use *schema.Set instead of []interface{} for TypeSet
- Re-generate documentation
- Use pointers only where we can't avoid it (nil verification of non-primitives in structs)
- Added omitempty for some keys
- Replace t.Fatal with t.Error as a less brutal method to stop the test
- Some improvements in tests
@github-actions
Copy link

github-actions bot commented Dec 11, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️

.github/workflows/release.yml Outdated Show resolved Hide resolved
GNUmakefile Outdated Show resolved Hide resolved
GNUmakefile Outdated Show resolved Hide resolved
GNUmakefile Show resolved Hide resolved
pkg/xray/resource_xray_license_policy.go Show resolved Hide resolved
pkg/xray/resource_xray_license_policy.go Show resolved Hide resolved
pkg/xray/resource_xray_security_policy.go Show resolved Hide resolved
pkg/xray/resource_xray_watch.go Outdated Show resolved Hide resolved
pkg/xray/resource_xray_watch_test.go Show resolved Hide resolved
Copy link
Member

@alexhung alexhung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting close.

A few more minor things to work on.

pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Show resolved Hide resolved
docs/resources/watch.md Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
pkg/xray/watches.go Outdated Show resolved Hide resolved
sample.tf Show resolved Hide resolved
Copy link
Contributor

@chb0github chb0github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of feedback. Please correct

…f the blocks will be singular

- remove ARTIFACTORY_URL
- add more verifications for schema elements
- re-generate documentation
@danielmkn
Copy link
Collaborator Author

@chb0github @alexhung Not sure about all the nil comments. I need to have more understanding of how diags work. I took it from the Hashi corp example.

@danielmkn
Copy link
Collaborator Author

@alexhung please check and approve

@danielmkn danielmkn merged commit 5f5b56f into master Dec 14, 2021
@danielmkn danielmkn deleted the watch-v2 branch December 14, 2021 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants