Skip to content

Fix autest uses of File exists parameter#8906

Merged
bneradt merged 1 commit intoapache:masterfrom
bneradt:fix_autest_exists_issues
Jun 13, 2022
Merged

Fix autest uses of File exists parameter#8906
bneradt merged 1 commit intoapache:masterfrom
bneradt:fix_autest_exists_issues

Conversation

@bneradt
Copy link
Copy Markdown
Contributor

@bneradt bneradt commented Jun 13, 2022

The AuTest File exists parameter can be configured in one of three ways:

  1. If True, then AuTest will fail unless the file exists.
  2. If False, then AuTest will fail unless the file does not exist.
  3. If None (the default) then no existence check is done.

Many of our tests configured exists=False assuming it would behave like
the default None configuration above. That is, they used exists=False to
turn off verification. That is in fact how AuTest has behaved until now,
but that is a bug in the AuTest framework. The next release of AuTest
will have a fix such that exists=False will now verify that a file does
not in fact exist which will cause some of our tests to fail. This patch
anticipates that fix to AuTest and fixes our use of exists accordingly.

The AuTest File exists parameter can be configured in one of three ways:

1. If True, then AuTest will fail unless the file exists.
2. If False, then AuTest will fail unless the file does not exist.
3. If None (the default) then no existence check is done.

Many of our tests configured exists=False assuming it would behave like
the default None configuration above. That is, they used exists=False to
turn off verification. That is in fact how AuTest has behaved until now,
but that is a bug in the AuTest framework. The next release of AuTest
will have a fix such that exists=False will now verify that a file does
not in fact exist which will cause some of our tests to fail. This patch
anticipates that fix to AuTest and fixes our use of exists accordingly.
@bneradt bneradt added the AuTest label Jun 13, 2022
@bneradt bneradt added this to the 10.0.0 milestone Jun 13, 2022
@bneradt bneradt self-assigned this Jun 13, 2022
@bryancall bryancall requested a review from randall June 13, 2022 23:05
@bneradt bneradt merged commit 9d13a8d into apache:master Jun 13, 2022
@bneradt bneradt deleted the fix_autest_exists_issues branch June 13, 2022 23:05
ywkaras pushed a commit to ywkaras/trafficserver that referenced this pull request Jun 15, 2022
The AuTest File exists parameter can be configured in one of three ways:

1. If True, then AuTest will fail unless the file exists.
2. If False, then AuTest will fail unless the file does not exist.
3. If None (the default) then no existence check is done.

Many of our tests configured exists=False assuming it would behave like
the default None configuration above. That is, they used exists=False to
turn off verification. That is in fact how AuTest has behaved until now,
but that is a bug in the AuTest framework. The next release of AuTest
will have a fix such that exists=False will now verify that a file does
not in fact exist which will cause some of our tests to fail. This patch
anticipates that fix to AuTest and fixes our use of exists accordingly.
zwoop pushed a commit that referenced this pull request Jun 15, 2022
The AuTest File exists parameter can be configured in one of three ways:

1. If True, then AuTest will fail unless the file exists.
2. If False, then AuTest will fail unless the file does not exist.
3. If None (the default) then no existence check is done.

Many of our tests configured exists=False assuming it would behave like
the default None configuration above. That is, they used exists=False to
turn off verification. That is in fact how AuTest has behaved until now,
but that is a bug in the AuTest framework. The next release of AuTest
will have a fix such that exists=False will now verify that a file does
not in fact exist which will cause some of our tests to fail. This patch
anticipates that fix to AuTest and fixes our use of exists accordingly.

(cherry picked from commit 9d13a8d)
@zwoop
Copy link
Copy Markdown
Contributor

zwoop commented Jun 15, 2022

Cherry-picked to v9.2.x

@zwoop zwoop modified the milestones: 10.0.0, 9.2.0 Jun 15, 2022
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Feb 21, 2023
* asf/9.2.x:
  Updated ChangeLog
  Modifying array outside bounds (apache#8806)
  Add escape json for logging (apache#8886)
  Removes remaining vestiges to the backdoor port (apache#8793)
  Add Au test for prefetch plugin in simple mode. (apache#8810)
  uri_signing plugin: Fix missing payload validation for the iss field. (apache#8901)
  Cleanup SNIConfig (apache#8892)
  Fix autest uses of File exists parameter (apache#8906)
  Do not modify Transfer-Encoding header on retry (apache#8899)
  Fix plugin stats_over_http OK reason phrase (apache#8902)
  Add AuTest for stats-over-http plugin (apache#8422)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants