Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Technical Discussion
  3. I'm surprised at how many issues my new integration tests are finding.

I'm surprised at how many issues my new integration tests are finding.

Scheduled Pinned Locked Moved Technical Discussion
fedboxfedidevactivitypubdevactivitypub
1 Cross-posts 8 Posts 3 Posters 11 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mariusor@metalhead.clubM This user is from outside of this forum
    mariusor@metalhead.clubM This user is from outside of this forum
    mariusor@metalhead.club
    wrote last edited by
    #1

    I'm surprised at how many issues my new integration tests are finding.

    I already had an integration testsuite, but the way the #fedbox application was run was not in full isolation, and I expect some of the setup steps I had included don't really exist on a fresh install.

    We now build a fresh container image, start it up, provision it with mock data, and then run tests, but only through mechanisms that are available to a prospective server operator: CLI commands executed through SSH, and ActivityPub client to server operations.

    #fedidev #activityPubDev #activitypub

    xlv@mastodon.sdf.orgX 1 Reply Last reply
    0
    • ? [[global:guest]] crossposted this topic to General Discussion
    • mariusor@metalhead.clubM mariusor@metalhead.club

      I'm surprised at how many issues my new integration tests are finding.

      I already had an integration testsuite, but the way the #fedbox application was run was not in full isolation, and I expect some of the setup steps I had included don't really exist on a fresh install.

      We now build a fresh container image, start it up, provision it with mock data, and then run tests, but only through mechanisms that are available to a prospective server operator: CLI commands executed through SSH, and ActivityPub client to server operations.

      #fedidev #activityPubDev #activitypub

      xlv@mastodon.sdf.orgX This user is from outside of this forum
      xlv@mastodon.sdf.orgX This user is from outside of this forum
      xlv@mastodon.sdf.org
      wrote last edited by
      #2

      @mariusor What did you build

      1 Reply Last reply
      0
      • xlv@mastodon.sdf.orgX xlv@mastodon.sdf.org

        @mariusor What did you build

        mariusor@metalhead.clubM This user is from outside of this forum
        mariusor@metalhead.clubM This user is from outside of this forum
        mariusor@metalhead.club
        wrote last edited by
        #3

        @xlv working on my old project FedBOX, which is a generic ActivityPub server created mostly as a reference implementation for the GoActivityPub library that I also develop.

        This specific toot is about me working on an integration test suite using the testcontainers-go modules.

        https://github.com/go-ap/fedbox

        xlv@mastodon.sdf.orgX maddyunderstars@aus.socialM 2 Replies Last reply
        0
        • mariusor@metalhead.clubM mariusor@metalhead.club

          @xlv working on my old project FedBOX, which is a generic ActivityPub server created mostly as a reference implementation for the GoActivityPub library that I also develop.

          This specific toot is about me working on an integration test suite using the testcontainers-go modules.

          https://github.com/go-ap/fedbox

          xlv@mastodon.sdf.orgX This user is from outside of this forum
          xlv@mastodon.sdf.orgX This user is from outside of this forum
          xlv@mastodon.sdf.org
          wrote last edited by
          #4

          @mariusor Oh very cool 😎

          1 Reply Last reply
          0
          • mariusor@metalhead.clubM mariusor@metalhead.club

            @xlv working on my old project FedBOX, which is a generic ActivityPub server created mostly as a reference implementation for the GoActivityPub library that I also develop.

            This specific toot is about me working on an integration test suite using the testcontainers-go modules.

            https://github.com/go-ap/fedbox

            maddyunderstars@aus.socialM This user is from outside of this forum
            maddyunderstars@aus.socialM This user is from outside of this forum
            maddyunderstars@aus.social
            wrote last edited by
            #5

            @mariusor @xlv I've been using testcontainers for testing my own AP server and it has been incredibly useful. I've been thinking about how best to do federation tests with other software like mastodon but havent been keen on maintaining a test harness around their docker images lol

            1 Reply Last reply
            0
            • maddyunderstars@aus.socialM maddyunderstars@aus.social

              @mariusor @xlv I've been using testcontainers for testing my own AP server and it has been incredibly useful. I've been thinking about how best to do federation tests with other software like mastodon but havent been keen on maintaining a test harness around their docker images lol

              xlv@mastodon.sdf.orgX This user is from outside of this forum
              xlv@mastodon.sdf.orgX This user is from outside of this forum
              xlv@mastodon.sdf.org
              wrote last edited by
              #6

              @maddyunderstars This is really pretty interesting

              @mariusor

              1 Reply Last reply
              0
              • maddyunderstars@aus.socialM maddyunderstars@aus.social

                @mariusor @xlv I've been using testcontainers for testing my own AP server and it has been incredibly useful. I've been thinking about how best to do federation tests with other software like mastodon but havent been keen on maintaining a test harness around their docker images lol

                mariusor@metalhead.clubM This user is from outside of this forum
                mariusor@metalhead.clubM This user is from outside of this forum
                mariusor@metalhead.club
                wrote last edited by
                #7

                @maddyunderstars I gave up on mastodon, as it's not a first order target for my software, but I don't know if you could use the funfedidev containers setup as a blueprint.

                https://codeberg.org/funfedidev/containers

                @xlv

                maddyunderstars@aus.socialM 1 Reply Last reply
                0
                • mariusor@metalhead.clubM mariusor@metalhead.club

                  @maddyunderstars I gave up on mastodon, as it's not a first order target for my software, but I don't know if you could use the funfedidev containers setup as a blueprint.

                  https://codeberg.org/funfedidev/containers

                  @xlv

                  maddyunderstars@aus.socialM This user is from outside of this forum
                  maddyunderstars@aus.socialM This user is from outside of this forum
                  maddyunderstars@aus.social
                  wrote last edited by
                  #8

                  @mariusor @xlv Oh thank you! I'll have to check this out later

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups