Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
add tests for php8.0-fpm restart
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccallister committed Nov 11, 2020
1 parent 99c7bc2 commit 60d7680
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions internal/nitrod/system_service_php_fpm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ func TestNitrodServer_PhpFpmService(t *testing.T) {
wantCommand string
wantArgs []string
}{
{
name: "can restart php-fpm for version 8.0",
fields: fields{
logger: log.New(ioutil.Discard, "testing", 0),
},
args: args{
ctx: context.TODO(),
request: &PhpFpmServiceRequest{Version: "8.0", Action: ServiceAction_RESTART},
},
want: &ServiceResponse{Message: "Successfully restarted php-fpm 8.0"},
wantErr: false,
wantCommand: "service",
wantArgs: []string{"php8.0-fpm", "restart"},
},
{
name: "can restart php-fpm for version 7.4",
fields: fields{
Expand Down

0 comments on commit 60d7680

Please # to comment.