File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,10 @@ def post(
159
159
"""
160
160
Submit a new entry for inclusion in the Rekor log.
161
161
"""
162
+
162
163
payload = proposed_entry .model_dump (mode = "json" , by_alias = True )
163
164
_logger .debug (f"proposed: { json .dumps (payload )} " )
165
+
164
166
resp : requests .Response = self .session .post (self .url , json = payload )
165
167
try :
166
168
resp .raise_for_status ()
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- from collections .abc import Callable
15
14
from pathlib import Path
15
+ from typing import Callable
16
16
17
17
import pytest
18
18
Original file line number Diff line number Diff line change 18
18
import os
19
19
import re
20
20
from collections import defaultdict
21
- from collections .abc import Callable , Iterator
21
+ from collections .abc import Iterator
22
22
from io import BytesIO
23
23
from pathlib import Path
24
+ from typing import Callable
24
25
from urllib .parse import urlparse
25
26
26
27
import jwt
You can’t perform that action at this time.
0 commit comments