-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9923217
commit c3f42c9
Showing
9 changed files
with
103 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package cloud | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/huyinghuan/ddns/config" | ||
) | ||
|
||
func TestAliyun(t *testing.T) { | ||
server := CreateAliyun(config.AliyunConfig{ | ||
AccessKeyID: "", | ||
AccessKeySecret: "", | ||
}) | ||
|
||
hasChange, err := server.AddOrUpdateDomain(Domain{ | ||
RR: "", | ||
IP: "", | ||
DomainName: "", | ||
}) | ||
if err != nil { | ||
t.Fatal(err) | ||
} | ||
t.Log(hasChange) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package cloud | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/huyinghuan/ddns/config" | ||
) | ||
|
||
func TestNameCome(t *testing.T) { | ||
server := CreateNameCom(config.NameComConfig{ | ||
Username: "", | ||
Token: "", | ||
API: "https://api.name.com", | ||
}) | ||
|
||
hasChange, err := server.AddOrUpdateDomain(Domain{ | ||
RR: "", | ||
IP: "", | ||
DomainName: "", | ||
}) | ||
if err != nil { | ||
t.Fatal(err) | ||
} | ||
t.Log(hasChange) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters