@@ -127,16 +127,16 @@ func TestDuplicates(t *testing.T) {
127127 }
128128
129129 // Now upload to rekor!
130- out := runCli (t , "upload" , "--artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
130+ out := runCli (t , "upload" , "--type=rekord" , "--pki-format=pgp" , "-- artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
131131 outputContains (t , out , "Created entry at" )
132132
133133 // Now upload the same one again, we should get a dupe entry.
134- out = runCli (t , "upload" , "--artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
134+ out = runCli (t , "upload" , "--type=rekord" , "--pki-format=pgp" , "-- artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
135135 outputContains (t , out , "Entry already exists" )
136136
137137 // Now do a new one, we should get a new entry
138138 createdPGPSignedArtifact (t , artifactPath , sigPath )
139- out = runCli (t , "upload" , "--artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
139+ out = runCli (t , "upload" , "--type=rekord" , "--pki-format=pgp" , "-- artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
140140 outputContains (t , out , "Created entry at" )
141141}
142142
@@ -160,7 +160,7 @@ func TestGetCLI(t *testing.T) {
160160 if err := ioutil .WriteFile (pubPath , []byte (publicKey ), 0644 ); err != nil {
161161 t .Fatal (err )
162162 }
163- out := runCli (t , "upload" , "--artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
163+ out := runCli (t , "upload" , "--type=rekord" , "--pki-format=pgp" , "-- artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
164164 outputContains (t , out , "Created entry at" )
165165
166166 uuid , err := sharding .GetUUIDFromIDString (getUUIDFromUploadOutput (t , out ))
@@ -189,7 +189,7 @@ func TestGetCLI(t *testing.T) {
189189 out = runCli (t , "search" , "--artifact" , artifactPath )
190190 outputContains (t , out , uuid )
191191
192- out = runCli (t , "search" , "--public-key" , pubPath )
192+ out = runCli (t , "search" , "--pki-format=pgp" , "-- public-key" , pubPath )
193193 outputContains (t , out , uuid )
194194
195195 artifactBytes , err := ioutil .ReadFile (artifactPath )
@@ -752,7 +752,7 @@ func TestSearchValidateTreeID(t *testing.T) {
752752 if err := ioutil .WriteFile (pubPath , []byte (publicKey ), 0644 ); err != nil {
753753 t .Fatal (err )
754754 }
755- out := runCli (t , "upload" , "--artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
755+ out := runCli (t , "upload" , "--type=rekord" , "--pki-format=pgp" , "-- artifact" , artifactPath , "--signature" , sigPath , "--public-key" , pubPath )
756756 outputContains (t , out , "Created entry at" )
757757
758758 uuid , err := sharding .GetUUIDFromIDString (getUUIDFromUploadOutput (t , out ))
@@ -857,8 +857,8 @@ func TestSearchLogQuerySingleShard(t *testing.T) {
857857 }
858858
859859 // Now upload them to rekor!
860- firstOut := runCli (t , "upload" , "--artifact" , firstArtifactPath , "--signature" , firstSigPath , "--public-key" , pubPath )
861- secondOut := runCli (t , "upload" , "--artifact" , secondArtifactPath , "--signature" , secondSigPath , "--public-key" , pubPath )
860+ firstOut := runCli (t , "upload" , "--type=rekord" , "--pki-format=pgp" , "-- artifact" , firstArtifactPath , "--signature" , firstSigPath , "--public-key" , pubPath )
861+ secondOut := runCli (t , "upload" , "--type=rekord" , "--pki-format=pgp" , "-- artifact" , secondArtifactPath , "--signature" , secondSigPath , "--public-key" , pubPath )
862862
863863 firstEntryID := getUUIDFromUploadOutput (t , firstOut )
864864 firstUUID , _ := sharding .GetUUIDFromIDString (firstEntryID )
0 commit comments