Skip to content

Commit

Permalink
Update test, remove obsolete tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbah committed Jan 10, 2018
1 parent 2345e8a commit 3767528
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
16 changes: 0 additions & 16 deletions tests/src/test/scala/services/HeadersTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -196,22 +196,6 @@ class HeadersTests extends FlatSpec with Matchers with ScalaFutures with WskActo
containsHeaders(response.headers, Some(Set("GET")))
}

it should "respond to OPTIONS for namespaces getEntities" in {
val path = basePath / "namespaces" / "barfoo"
val response = request(OPTIONS, url.withPath(path)).futureValue

response.status shouldBe OK
containsHeaders(response.headers, Some(Set("GET")))
}

it should "respond to GET for namespaces getEntities with Headers" in {
val path = basePath / "namespaces" / "_"
val response = request(GET, url.withPath(path), Some(List(Authorization(creds)))).futureValue

response.status shouldBe OK
containsHeaders(response.headers)
}

// Packages
it should "respond to OPTIONS for listing packages" in {
val path = basePath / "namespaces" / "barfoo" / "packages"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class WskBasicUsageTests extends TestHelpers with WskTestHelpers {
}

it should "include CLI user agent headers with outbound requests" in {
val stdout = wsk.cli(Seq("list", "--auth", wskprops.authKey) ++ wskprops.overrides, verbose = true).stdout
val stdout = wsk.cli(Seq("action", "list", "--auth", wskprops.authKey) ++ wskprops.overrides, verbose = true).stdout
stdout should include regex (usrAgentHeaderRegEx)
}

Expand Down

0 comments on commit 3767528

Please sign in to comment.