Skip to content

Commit

Permalink
Fix (Tests) -> Remove monero test and fixed name of other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shib committed Mar 23, 2022
1 parent 997555e commit fa5fae2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
19 changes: 3 additions & 16 deletions auth_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module vigest_auth

import net.http

fn tes_md5() {
fn test_md5() {
mut config := http.FetchConfig{
url: 'https://httpbin.org/digest-auth/auth/user/pass/MD5'
method: .get
Expand All @@ -14,7 +14,7 @@ fn tes_md5() {
assert rsp.status_code == 200
}

fn tes_sha_256() {
fn test_sha_256() {
mut config := http.FetchConfig{
url: 'https://httpbin.org/digest-auth/auth/user/pass/SHA-256'
method: .get
Expand All @@ -26,7 +26,7 @@ fn tes_sha_256() {
assert rsp.status_code == 200
}

fn tes_sha_512() {
fn test_sha_512() {
mut config := http.FetchConfig{
url: 'https://httpbin.org/digest-auth/auth/user/pass/SHA-512'
method: .get
Expand All @@ -37,16 +37,3 @@ fn tes_sha_512() {

assert rsp.status_code == 200
}

fn test_monero() {
mut config := http.FetchConfig{
url: 'http://127.0.0.1:28088/json_rpc'
method: .get
}

mut d_auth := new_digest_authentification('user', 'pass', config) or { return }
dump(d_auth)
mut rsp := d_auth.fetch() or { panic('$err') }

assert rsp.status_code == 200
}
2 changes: 1 addition & 1 deletion v.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Module {
name: 'vigest_auth'
description: 'Digest authentification for v'
version: '0.0.3'
version: '0.0.4'
license: 'MIT'
dependencies: []
}

0 comments on commit fa5fae2

Please sign in to comment.