Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
  • Loading branch information
zhiburt committed Oct 10, 2022
1 parent 12f13cc commit 8f37147
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ ddosify [FLAG]
| `-l` | [Type](#load-types) of the load test. Ddosify supports 3 load types. | `string` | `linear` | No |
| <span style="white-space: nowrap;">`--config`</span> | [Config File](#config-file) of the load test. | `string` | - | No |
| <span style="white-space: nowrap;">`--version`</span> | Prints version, git commit, built date (utc), go information and quit | - | - | No |

| <span style="white-space: nowrap;">`--cert_path`</span> | A path to a certificate file (usually called 'cert.pem') | - | - | No |
| <span style="white-space: nowrap;">`--cert_key_path`</span> | A path to a certificate key file (usually called 'key.pem') | - | - | No |

### Load Types

Expand Down
6 changes: 6 additions & 0 deletions core/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,8 @@ func TestDynamicData(t *testing.T) {
}
}

// The test creates a web server with Certificate auth,
// then it spawns an Engine and verifies that the auth was successfully passsed.
func TestTLSMutualAuth(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -695,6 +697,8 @@ func TestTLSMutualAuth(t *testing.T) {
}
}

// The test creates a web server with Certificate auth,
// then it spawns an Engine, but the engine doesn't have a certificate therefore it's expected that no handler is called.
func TestTLSMutualAuthButWeHaveNoCerts(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -764,6 +768,8 @@ func TestTLSMutualAuthButWeHaveNoCerts(t *testing.T) {
}
}

// The test creates a web server with Certificate auth,
// then it spawns an Engine, but the engine have a different certificate therefore it's expected that no handler is called.
func TestTLSMutualAuthButServerAndClientHasDifferentCerts(t *testing.T) {
t.Parallel()

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func createScenario() (s types.Scenario, err error) {
return
}

*protocol = strings.ToUpper(*protocol)
scenario := types.ScenarioItem{
ID: 1,
Protocol: *protocol,
Expand All @@ -260,7 +261,6 @@ func createScenario() (s types.Scenario, err error) {
scenario.CertPool = pool
}

*protocol = strings.ToUpper(*protocol)
s = types.Scenario{Scenario: []types.ScenarioItem{scenario}}

return
Expand Down

0 comments on commit 8f37147

Please sign in to comment.