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

model resource unit tests #101

Merged
merged 3 commits into from
Sep 14, 2021
Merged

Conversation

surajkota
Copy link
Member

@surajkota surajkota commented Sep 8, 2021

Description of changes:

  • Unit tests for model
  • sdk.go is at 72.5%. overall resource at 58.6%
  • use gocmp to compare spec in addition to status. Will create a separate PR to add this to other resources

Testing:
make test

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

output_fixture: "sdkapi/create/create_success.json"
invoke: Create
expect:
latest_state: "v1alpha1/create/observed/success_after_create.yaml"
Copy link
Contributor

@mbaijal mbaijal Sep 8, 2021

Choose a reason for hiding this comment

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

same, filenames should be in pattern with name in line 16

Copy link
Member Author

Choose a reason for hiding this comment

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

couldnt think of better naming but I agree, there should be a pattern to make it more readable

pkg/resource/model/testdata/test_suite.yaml Outdated Show resolved Hide resolved
@ryansteakley
Copy link
Member

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 14, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Sep 14, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ryansteakley, surajkota

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [ryansteakley,surajkota]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit ed8bce0 into aws-controllers-k8s:main Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants