You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: This issue is related to the GitHub issue titled "Support Matching Hosts by Criteria in Feature Files". Both issues focus on improving the flexibility of instance matching in test scenarios. While this issue introduces support for matching by instance name, the other expands matching options to include criteria such as environment, tags, or specific attributes. These enhancements will complement each other to provide a more robust and dynamic testing framework.
Currently, test scenarios in feature files match instances using instance IDs or IP addresses. However, these identifiers can change over time, especially when instances are recreated through tools like Terraform. This makes maintaining test scenarios more difficult and error-prone.
To improve stability and clarity in test cases, the feature files should allow for matching by instance name instead of instance ID. This would provide a more consistent way to identify instances, even when their underlying IDs or IPs change.
Example of current scenario using instance ID:
Scenario Outline: Hosts within development environment can
successfully ping each other
When host <hostA> pings host <hostB> with timeout 9 seconds
Then the ping is successful
Examples:
| hostA | hostB | | 'i-0ef8af428ece8e86d' | '172.31.24.6' | | 'i-040d60025bde0fe7b' | '172.31.27.178' |
Desired scenario matching by instance name:
Scenario: Application Server can ping Database Server on Private IPv4 addresses, Public IPv4 address, Public IPv4 DNS, Private IP DNS nameWhen Application Server pings Database Server on <addressType>Then the ping is successful
Examples:
| addressType | | 'PrivateIPv4addresses' | | 'PublicIPv4address' | | 'PublicIPv4DNS' | | 'PrivateIPDNSname' |
This approach will improve readability and reduce the need for frequent updates to the test cases when infrastructure changes occur.
Tasks:
Implement support for instance name matching in feature files.
Allow matching for the following types of addresses and DNS names:
Private IPv4 address
Public IPv4 address
Public IPv4 DNS name
Private IP DNS name
Update existing scenarios to use instance names where appropriate.
The text was updated successfully, but these errors were encountered:
Description:
Note: This issue is related to the GitHub issue titled "Support Matching Hosts by Criteria in Feature Files". Both issues focus on improving the flexibility of instance matching in test scenarios. While this issue introduces support for matching by instance name, the other expands matching options to include criteria such as environment, tags, or specific attributes. These enhancements will complement each other to provide a more robust and dynamic testing framework.
Currently, test scenarios in feature files match instances using instance IDs or IP addresses. However, these identifiers can change over time, especially when instances are recreated through tools like Terraform. This makes maintaining test scenarios more difficult and error-prone.
To improve stability and clarity in test cases, the feature files should allow for matching by instance name instead of instance ID. This would provide a more consistent way to identify instances, even when their underlying IDs or IPs change.
Example of current scenario using instance ID:
Desired scenario matching by instance name:
This approach will improve readability and reduce the need for frequent updates to the test cases when infrastructure changes occur.
Tasks:
The text was updated successfully, but these errors were encountered: