Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: new python backend endpoint #110

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ecies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const testingMessage = "helloworld"
const testingJsonMessage = `{"code":0,"msg":"ok","data":{"pageNumber":1,"pageSize":10,"total":0,"list":[],"realTotal":0}}{"code":0,"msg":"ok","data":{"pageNumber":1,"pageSize":10,"total":0,"list":[],"realTotal":0}}{"code":0,"msg":"ok","data":{"pageNumber":1,"pageSize":10,"total":0,"list":[],"realTotal":0}}`
const testingReceiverPubkeyHex = "0498afe4f150642cd05cc9d2fa36458ce0a58567daeaf5fde7333ba9b403011140a4e28911fcf83ab1f457a30b4959efc4b9306f514a4c3711a16a80e3b47eb58b"
const testingReceiverPrivkeyHex = "95d3c5e483e9b1d4f5fc8e79b2deaf51362980de62dbb082a9a4257eef653d7d"
const pythonBackend = "https://eciespydemo-1-d5397785.deta.app/"
const pythonBackend = "https://demo.ecies.org/"

var testingReceiverPrivkey = []byte{51, 37, 145, 156, 66, 168, 189, 189, 176, 19, 177, 30, 148, 104, 25, 140, 155, 42, 248, 190, 121, 110, 16, 174, 143, 148, 72, 129, 94, 113, 219, 58}

Expand Down Expand Up @@ -142,7 +142,7 @@ func TestDecryptAgainstPythonVersion(t *testing.T) {

defer resp.Body.Close()

if !assert.Equal(t, http.StatusOK, resp.StatusCode) {
if !assert.Equal(t, http.StatusCreated, resp.StatusCode) {
return
}

Expand Down Expand Up @@ -186,7 +186,7 @@ func TestEncryptAgainstPythonVersion(t *testing.T) {

defer resp.Body.Close()

if !assert.Equal(t, http.StatusOK, resp.StatusCode) {
if !assert.Equal(t, http.StatusCreated, resp.StatusCode) {
return
}

Expand Down
Loading