mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
Add automatic configuration reloading and
policy handling
This commit is contained in:
parent
77f3933560
commit
8c2beac6f1
12 changed files with 287 additions and 34 deletions
|
@ -355,3 +355,23 @@ func Test_parsePolicyFile(t *testing.T) {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
func Test_Checksum(t *testing.T) {
|
||||
o := NewOptions()
|
||||
|
||||
oldChecksum := o.Checksum()
|
||||
o.SharedKey = "changemeplease"
|
||||
newChecksum := o.Checksum()
|
||||
|
||||
if newChecksum == oldChecksum {
|
||||
t.Errorf("Checksum() failed to update old = %s, new = %s", oldChecksum, newChecksum)
|
||||
}
|
||||
|
||||
if newChecksum == "" || oldChecksum == "" {
|
||||
t.Error("Checksum() not returning data")
|
||||
}
|
||||
|
||||
if o.Checksum() != o.Checksum() {
|
||||
t.Error("Checksum() inconsistent")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue