Skip to content

Commit

Permalink
fix test and remove builds on push
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarwalpulkit596 committed Jun 26, 2020
1 parent 0777592 commit 5a40a1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build
on: [push, pull_request]
on: [pull_request]

jobs:
test:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class OnlineJsonApiAuthenticatedTest {
@Before
fun `SET JWT`() {

val jwt = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NjAzNDMxLCJmaXJzdG5hbWUiOiJQdWxraXQiLCJsYXN0bmFtZSI6IkFnZ2Fyd2FsIiwidXNlcm5hbWUiOiJwdWxraXQxMjM0IiwiZW1haWwiOiJwdWxraXQubWNhMTkuZHVAZ21haWwuY29tIiwidmVyaWZpZWRlbWFpbCI6InB1bGtpdC5tY2ExOS5kdUBnbWFpbC5jb20iLCJ2ZXJpZmllZG1vYmlsZSI6Iis5MS04NTk1MzUyNjQ3IiwibW9iaWxlIjoiKzkxLTk1ODIwNTQ2NjQiLCJvbmVhdXRoX2lkIjoiOTMwMjciLCJsYXN0X3JlYWRfbm90aWZpY2F0aW9uIjoiMCIsInBob3RvIjpudWxsLCJjb2xsZWdlIjoiMC0tLU9USEVSIC8gTk9UIExJU1RFRCAvIE5PIENPTExFR0UgLS0tMCIsImJyYW5jaCI6bnVsbCwiZ3JhZHVhdGlvbnllYXIiOiIyMDE5Iiwib3JnYW5pemF0aW9uIjpudWxsLCJyb2xlSWQiOjMsImNyZWF0ZWRBdCI6IjIwMjAtMDMtMTFUMTM6MDM6MDIuNjg3WiIsInVwZGF0ZWRBdCI6IjIwMjAtMDYtMjZUMTQ6MjE6NTAuNjQ1WiIsInJvbGUiOnsiaWQiOjMsIm5hbWUiOiJNb2RlcmF0b3IiLCJjcmV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ExFR0UgLS0tMCIsImJyYW5jaCI6bnVsbCwiZ3JhZHVhdGlvbnllYXIiOiIyMDE5Iiwib3JnYW5pemF0aW9uIjpudWxsLCJyb2xlSWQiOjMsImNyZWF0ZWRBdCI6IjIwMjAtMDMtMTFUMTM6MDM6MDIuNjg3WiIsInVwZGF0ZWRBdCI6IjIwMjAtMDYtMjZUMTQ6NTc6MDQuOTMxWiIsInJvbGUiOnsiaWQiOjMsIm5hbWUiOiJNb2RlcmF0b3IiLCJjcmVhdGVkQXQiOiIyMDE4LTA5LTA0VDEzOjM4OjMxLjg4NVoiLCJ1cGRhdGVkQXQiOiIyMDE4LTA5LTA0VDEzOjM4OjMxLjg4NVoifSwiY2xpZW50SWQiOiIzYmI3YzZmMS1hZGQ0LTRmYzMtOWY1NS04MmE5ZWVmNjM0OTYiLCJjbGllbnQiOiJhbmRyb2lkIiwiaWF0IjoxNTkzMTgzNDI1LCJleHAiOjE1OTg1ODM0MjV9.WrBSE1mNCiV2kFumBrboo9InwfJTalZuxQ4y9jgHeeK_tLMDPIEYHk33EOJ1Rna-7gZ0rRd99K-jUq7YoOOM3obQB_A2symNL2-SHBXO72QZOel9AR0aXjX9MS2vEYPiT1QBM2jEbg9B8wiBhKvPWVNjt1bAVQNwmqas7nvjNkGR9HAuAXHmM1qh98YqXjs9M7AJ84KkKiqG-vvyBWzhmDJDLOEyuKAAVA0Q30XYNsqxKOMf00-g8pFZGat6ot6jbev6ZRtP5Y-DwI7SMMqQo83M5bAqeLDWp0HHvEhBQnS9oaCPF3OH3xCBdRW58ne1uQFt_xUNV-vpM8RboPZR2Q"
val refreshToken = "c0ddcd65-e5f8-4bc9-ba45-0cb08d1fc369"

CBOnlineLib.initialize(object : CBOnlineCommunicator {
Expand Down Expand Up @@ -43,8 +43,8 @@ class OnlineJsonApiAuthenticatedTest {

@Test
fun `GET enrolledCourse`() {
val course = runBlocking { CBOnlineLib.onlineV2JsonApi.enrolledCourseById("80179").body() }
assertNotNull(course)
assertTrue(course!!.runTier == "LITE")
val runAttempt = runBlocking { CBOnlineLib.onlineV2JsonApi.enrolledCourseById("80179").body() }
assertNotNull(runAttempt)
assertTrue(runAttempt!!.id == "80179")
}
}

0 comments on commit 5a40a1f

Please sign in to comment.