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

Aci resource migration epg #1250

Merged
merged 5 commits into from
Aug 7, 2024

Conversation

akinross
Copy link
Collaborator

@akinross akinross commented Jul 9, 2024

No description provided.

@akinross
Copy link
Collaborator Author

akinross commented Jul 9, 2024

Work in progress to solve EPG part of #1042

@codecov-commenter
Copy link

codecov-commenter commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.69%. Comparing base (bc09eb8) to head (3631de8).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1250      +/-   ##
==========================================
+ Coverage   84.48%   84.69%   +0.21%     
==========================================
  Files          75       91      +16     
  Lines       21956    33545   +11589     
==========================================
+ Hits        18549    28412    +9863     
- Misses       2415     3829    +1414     
- Partials      992     1304     +312     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@akinross akinross force-pushed the aci_resource_migration_epg branch 3 times, most recently from 9c83557 to e503698 Compare July 29, 2024 08:46
@akinross akinross force-pushed the aci_resource_migration_epg branch 3 times, most recently from 973839a to acfcaee Compare July 31, 2024 12:02
@akinross akinross dismissed stale reviews from sajagana and gmicol via cbefc5f August 6, 2024 08:54
samiib
samiib previously approved these changes Aug 6, 2024
Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

LGTM

samiib
samiib previously approved these changes Aug 6, 2024
Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

LGTM

anvitha-jain
anvitha-jain previously approved these changes Aug 6, 2024
Copy link
Collaborator

@anvitha-jain anvitha-jain left a comment

Choose a reason for hiding this comment

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

LGTM

ipamEnabled: "no"
ignores:
- "apiMode"
ignore_properties_in_test:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we just have the following under ignore_properties_in_test?

 ignore_properties_in_test:
     - "ipamDhcpOverride"
     - "ipamEnabled"
     - "ipamGateway"

and..
Include the following in the test values like we usually do?

ipam_dhcp_override : "10.0.0.2"
ipam_enabled: "yes"
ipam_gateway: "10.0.0.1"

Copy link
Collaborator

Choose a reason for hiding this comment

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

This would do away with the additional complexity in the resource_example templates like having:
{{- else if .IgnoreInTest}}
We would only need .IgnoreInTest in testvars and the the code for ignoreTestProperty() in the generator will only return a bool value.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The reason why I did like I did is because we use the test values for populating the examples. But since we exclude the values from testing because we do not have the correct version running we cannot do the lookup here. Let me know if you want me to spend time after my holiday to see how to do this differently but think it would require more refactor work.

gen/generator.go Show resolved Hide resolved
@gmicol gmicol requested review from gmicol and sajagana August 7, 2024 03:26
@akinross akinross requested a review from shrsr August 7, 2024 06:11
sajagana
sajagana previously approved these changes Aug 7, 2024
Copy link
Collaborator

@sajagana sajagana left a comment

Choose a reason for hiding this comment

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

LGTM!

@akinross akinross dismissed stale reviews from sajagana, anvitha-jain, and samiib via 3631de8 August 7, 2024 09:59
Copy link
Collaborator

@sajagana sajagana left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@samiib samiib left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@shrsr shrsr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@gmicol gmicol left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@lhercot lhercot left a comment

Choose a reason for hiding this comment

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

LGTM

@lhercot lhercot merged commit 9da8563 into CiscoDevNet:master Aug 7, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
8 participants