Skip to content

Commit

Permalink
fixing travis
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisErdmanis committed Apr 5, 2020
1 parent 8141972 commit 8e67744
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ DiffieHellman = "0e61fee8-20a4-4374-8233-5198f28d9d66"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[compat]
julia = "1"
DiffieHellman = "0.4"
julia = "1"

[extras]
PeaceCypher = "7743456c-e0c5-4477-a2b6-196c240b0368"
Expand Down
35 changes: 19 additions & 16 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
using DemeNet: DemeSpec, Deme, Signer, Certificate, Intent, save
using PeaceCypher

demespec = DemeSpec("PeaceDeme",:default,:PeaceCypher,:default,:PeaceCypher,:DemeNet)
save(demespec)
DemeSpec(demespec.uuid)==demespec # All fields are equal. Need to implement equality for this test
# Need to think what this error means
# LoadError: KeyError: key "PeaceCypher" not found
# using PeaceCypher

# Now some testing
# demespec = DemeSpec("PeaceDeme",:default,:PeaceCypher,:default,:PeaceCypher,:DemeNet)
# save(demespec)
# DemeSpec(demespec.uuid)==demespec # All fields are equal. Need to implement equality for this test

deme = Deme(demespec)
maintainer = Signer(deme,"maintainer")
# # Now some testing

notary = deme.notary
# deme = Deme(demespec)
# maintainer = Signer(deme,"maintainer")

signer = notary.Signer()
msg = "Hello World"
signature = notary.Signature(msg,signer)
notary.verify(msg,signature)
# notary = deme.notary

# signer = notary.Signer()
# msg = "Hello World"
# signature = notary.Signature(msg,signer)
# notary.verify(msg,signature)

### Let's test Certificates and intent
maintainer = Signer(deme,"maintainer")
cert = Certificate("hello world",maintainer)
intent = Intent(cert,notary)

# ### Let's test Certificates and intent
# maintainer = Signer(deme,"maintainer")
# cert = Certificate("hello world",maintainer)
# intent = Intent(cert,notary)

2 comments on commit 8e67744

@JanisErdmanis
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/12280

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.1 -m "<description of version>" 8e67744a473ab9494eb7cca1402df68f82da8f88
git push origin v0.1.1

Please sign in to comment.