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
<p>End-to-end (e2e) tests borrow code from <ahref="http://github.com/crc-org/clicumber">Clicumber</a> package to provide basic functionality for testing CLI binaries. This facilitates running commands in a persistent shell instance (<code>bash</code>, <code>tcsh</code>, <code>zsh</code>, Command Prompt, or PowerShell), assert its outputs (standard output, standard error, or exit code), check configuration files, and so on. The general functionality of Clicumber is then extended by CRC specific test code to cover the whole functionality of CRC.</p>
456
-
<h3id="how-to-run"><aclass="header" href="#how-to-run">How to run</a></h3>
457
-
<p>First, one needs to set the following flags in <code>Makefile</code>, under <code>e2e</code> target:</p>
458
-
<ul>
459
-
<li><code>--pull-secret-file</code><br/>
460
-
absolute path to your OpenShift pull secret.</li>
461
-
<li><code>--bundle-location</code><br/>
462
-
if bundle is embedded, this flag should be set to <code>--bundle-location=embedded</code> or not passed at all<br/>
463
-
if bundle is not embedded, then absolute path to the bundle should be passed</li>
464
-
<li><code>--crc-binary</code><br/>
465
-
if <code>crc</code> binary resides in <code>$GOPATH/bin</code>, then this flag does not need to be passed<br/>
466
-
otherwise absolute path to the <code>crc</code> binary should be passed.</li>
467
-
</ul>
468
-
<p>To start e2e tests, run:</p>
469
-
<pre><codeclass="language-bash">$ make e2e
470
-
</code></pre>
471
-
<h4id="how-to-run-only-a-subset-of-all-e2e-tests"><aclass="header" href="#how-to-run-only-a-subset-of-all-e2e-tests">How to run only a subset of all e2e tests</a></h4>
472
-
<p>Implicitly, all e2e tests for your operating system are executed. If you want to run only tests from one feature file, you have to override <code>GODOG_OPTS</code> environment variable. For example:</p>
<p>Please notice <code>@basic && @windows</code>, where <code>@basic</code> tag stands for <code>basic.feature</code> file and <code>@windows</code> tag for e2e tests designed for Windows.</p>
476
-
<h3id="how-to-test-cert-rotation"><aclass="header" href="#how-to-test-cert-rotation">How to test cert rotation</a></h3>
477
-
<p>On linux platform first stop the network time sync using:</p>
478
-
<pre><codeclass="language-bash">$ sudo timedatectl set-ntp off
479
-
</code></pre>
480
-
<p>Set the time 2 month ahead:</p>
481
-
<pre><codeclass="language-bash">$ sudo date -s '2 month'
482
-
</code></pre>
483
-
<p>Start the crc with <code>CRC_DEBUG_ENABLE_STOP_NTP=true</code> set:</p>
<p>Test logs can be found in <code>test/e2e/out/test-results</code>.</p>
488
-
<h2id="releasing-on-github"><aclass="header" href="#releasing-on-github">Releasing on GitHub</a></h2>
489
-
<h3id="releasing-using-the-github-actions-workflow"><aclass="header" href="#releasing-using-the-github-actions-workflow">Releasing using the github actions workflow</a></h3>
490
-
<p>The GitHub Actions workflow <ahref="https://github.com/crc-org/crc/actions/workflows/release.yml"><code>Publish release on github</code></a> creates a draft release and provides a template with all the component versions and the git change log.</p>
491
-
<p>To start the workflow go to the <ahref="https://github.com/crc-org/crc/actions/workflows/release.yml">workflow page</a> and click on the <code>Run Workflow</code> button, make sure to choose the appropriate tag for the release.</p>
492
-
<p>Once the draft release is available, edit it to include the notable changes for the release and press publish to make it public.</p>
493
-
<h3id="releasing-using-the-gh-releasesh-script"><aclass="header" href="#releasing-using-the-gh-releasesh-script">Releasing using the <code>gh-release.sh</code> script</a></h3>
494
-
<p>In the CRC repository, we have a script <ahref="https://github.com/crc-org/crc/blob/main/gh-release.sh"><code>gh-release.sh</code></a> which uses the <ahref="https://cli.github.com"><code>gh</code></a> tool, make sure it is installed.</p>
495
-
<p>Create a markdown file containing a list of the notable changes named <code>notable_changes.txt</code> in the same directory as the script.</p>
496
-
<p>An example <code>notable_changes.txt</code>:</p>
0 commit comments