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

testing: Document smoke and e2e deployment tests. #103

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

stephen-fox
Copy link
Contributor

Regarding the e2e (end-to-end) tests - this documentation is meant
to provide a preliminary (incomplete) guide. It is not complete -
but it discusses some of the harder problems with creating an e2e
deployment test.

Regarding the e2e (end-to-end) tests - this documentation is meant
to provide a preliminary (incomplete) guide. It is not complete -
but it discusses some of the harder problems with creating an e2e
deployment test.
@stephen-fox stephen-fox requested review from a team as code owners July 14, 2023 20:43
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #103 (624e360) into main (a10db9f) will increase coverage by 79.35%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           main     #103       +/-   ##
=========================================
+ Coverage      0   79.35%   +79.35%     
=========================================
  Files         0       30       +30     
  Lines         0     1967     +1967     
=========================================
+ Hits          0     1561     +1561     
- Misses        0      330      +330     
- Partials      0       76       +76     
Flag Coverage Δ
unittests 79.35% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 30 files with indirect coverage changes

user's shell to a test program. This test program would execute a test suite
or canary programs in a manner that prevents the ssh client from executing
arbitrary programs. The `chsh` program can be used to configure a user's
shell. [^4]

Check notice

Code scanning / Remark-lint (reported by Codacy)

Warn when shortcut reference links are used. Note

[no-shortcut-reference-link] Use the trailing [] on reference links

One of the main technical hurdles involved in an end-to-end test is making
a Linux account available in a safe manner. This can likely be accomplished
using OpenSSH daemon's `ChrootDirectory` and `ForceCommand` directives. [^1]

Check notice

Code scanning / Remark-lint (reported by Codacy)

Warn when shortcut reference links are used. Note

[no-shortcut-reference-link] Use the trailing [] on reference links
a Linux account available in a safe manner. This can likely be accomplished
using OpenSSH daemon's `ChrootDirectory` and `ForceCommand` directives. [^1]
The `ChrootDirectory` directive is quite tricky to configure. It was likely
developed to solely support sshd's built-in `sftp-internal` option. [^2]

Check notice

Code scanning / Remark-lint (reported by Codacy)

Warn when shortcut reference links are used. Note

[no-shortcut-reference-link] Use the trailing [] on reference links
developed to solely support sshd's built-in `sftp-internal` option. [^2]
A standard shell's dependencies may also complicate a chroot deployment.
Compiling a statically linked program or using a project like uroot/go-busybox
may make this more approachable. [^3]

Check notice

Code scanning / Remark-lint (reported by Codacy)

Warn when shortcut reference links are used. Note

[no-shortcut-reference-link] Use the trailing [] on reference links
Copy link
Contributor

@hnadiminti-equinix hnadiminti-equinix left a comment

Choose a reason for hiding this comment

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

It looks good to me 👍

@stephen-fox stephen-fox merged commit b5711f7 into main Jul 17, 2023
23 checks passed
@stephen-fox stephen-fox deleted the testing-documentation branch July 17, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants