mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
cleanup deprecated package io/ioutil (#4920)
Signed-off-by: zounengren <zouyee1989@gmail.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
@@ -56,10 +55,10 @@ func TestLookupBalanceRewriteCacheDnssec(t *testing.T) {
|
||||
}
|
||||
|
||||
func createKeyFile(t *testing.T) func() {
|
||||
ioutil.WriteFile(base+".key",
|
||||
os.WriteFile(base+".key",
|
||||
[]byte(`example.org. IN DNSKEY 256 3 13 tDyI0uEIDO4SjhTJh1AVTFBLpKhY3He5BdAlKztewiZ7GecWj94DOodg ovpN73+oJs+UfZ+p9zOSN5usGAlHrw==`),
|
||||
0644)
|
||||
ioutil.WriteFile(base+".private",
|
||||
os.WriteFile(base+".private",
|
||||
[]byte(`Private-key-format: v1.3
|
||||
Algorithm: 13 (ECDSAP256SHA256)
|
||||
PrivateKey: HPmldSNfrkj/aDdUMFwuk/lgzaC5KIsVEG3uoYvF4pQ=
|
||||
|
||||
Reference in New Issue
Block a user