File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
apptrust/commands/version Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 44 "errors"
55 "testing"
66
7- "github.com/jfrog/jfrog-cli-application/apptrust/commands"
87 mockversions "github.com/jfrog/jfrog-cli-application/apptrust/service/versions/mocks"
98 "go.uber.org/mock/gomock"
109
@@ -94,25 +93,3 @@ func TestReleaseAppVersionCommand_Run_Error(t *testing.T) {
9493 assert .Error (t , err )
9594 assert .Contains (t , err .Error (), "service error occurred" )
9695}
97-
98- func TestReleaseAppVersionCommand_ServerDetails (t * testing.T ) {
99- ctrl := gomock .NewController (t )
100- defer ctrl .Finish ()
101-
102- serverDetails := & config.ServerDetails {}
103- cmd := & releaseAppVersionCommand {
104- serverDetails : serverDetails ,
105- }
106-
107- details , err := cmd .ServerDetails ()
108- assert .NoError (t , err )
109- assert .Equal (t , serverDetails , details )
110- }
111-
112- func TestReleaseAppVersionCommand_CommandName (t * testing.T ) {
113- ctrl := gomock .NewController (t )
114- defer ctrl .Finish ()
115-
116- cmd := & releaseAppVersionCommand {}
117- assert .Equal (t , commands .VersionRelease , cmd .CommandName ())
118- }
You can’t perform that action at this time.
0 commit comments