Skip to content

Integration tests for Connect/StartSending + Server Side Parameter Handling#6

Merged
robshakir merged 7 commits intomainfrom
fluent-2
Jun 2, 2021
Merged

Integration tests for Connect/StartSending + Server Side Parameter Handling#6
robshakir merged 7 commits intomainfrom
fluent-2

Conversation

@robshakir
Copy link
Copy Markdown
Member

@robshakir robshakir commented May 28, 2021

    Update testing to validate client functionality

      * (M) client/client.go
        - Ensure that client runs by default.
        - Add logging messages to allow introspection.
      * (M) fluent/fluent.go
        - Move StartSending to be at the top-level gRIBIClient, we
          essentially keep the abstractions at the level of only
          having one Modify channel - which seems to make sense
          since there doesn't seem to be a clear use case for 1
          client to have >1 modify RPC.
      * (M) fluent/fluent_test.go
        - add test cases whereby some messages are sent on the Modify
          RPC. Current tests just ensure that there is no error returned
          rather than adding any check of the return value, since server
          does not currently do this processing.
      * (M) server/server.go
        - Add logging into server.

This CL will be followed up with additional to implement the connection handling
at the server side, such that we can validate the end-to-end initial handshake.

  * (M) client/client.go
    - Ensure that client runs by default.
    - Add logging messages to allow introspection.
  * (M) fluent/fluent.go
    - Move StartSending to be at the top-level gRIBIClient, we
      essentially keep the abstractions at the level of only
      having one Modify channel - which seems to make sense
      since there doesn't seem to be a clear use case for 1
      client to have >1 modify RPC.
  * (M) fluent/fluent_test.go
    - add test cases whereby some messages are sent on the Modify
      RPC. Current tests just ensure that there is no error returned
      rather than adding any check of the return value, since server
      does not currently do this processing.
  * (M) server/server.go
    - Add logging into server.
@robshakir robshakir changed the base branch from main to fluent-1 May 28, 2021 07:08
@robshakir robshakir marked this pull request as draft May 28, 2021 07:11
robshakir added 3 commits June 1, 2021 18:25
  * (M) client/client.go
    - Amend failing tests from merge.
  * (M) fluent/fluent.go
  * (M) fluent/fluent_test.go
    - Restructure fluent to be compatible with ONDATRA (adding
       testing.TB arguments).
  * (M) go.mod
  * (M) go.sum
    - go mod housekeeping 🧹
  * (A) negtest/README.md
  * (A) negtest/negtest.go
  * (A) negtest/negtest_test.go
    - Vendor negtest from ONDATRA and add support for catching
      Errorf strings.
  * (M) client/client.go
    -  Fix error in client 'run' state, make this clearer by
       changing to shut vs. run.
  * (M) fluent/fluent.go
    -  Fix logging.
  * (M) fluent/fluent_test.go
    -  Amend comment in test code about how errors are caught.
  * (M) server/server.go
    - Add handling of initial parameters to serer.
  * (M) server/server_test.go
    - Add testing for handling of parameters.
@robshakir robshakir marked this pull request as ready for review June 2, 2021 06:14
@robshakir robshakir requested a review from sthesayi June 2, 2021 06:14
@robshakir robshakir changed the title Add coverage of the Connect/StartSending Methods in Fluent and Tests Integration tests for Connect/StartSending + Server Side Parameter Handling Jun 2, 2021
@robshakir robshakir changed the base branch from fluent-1 to main June 2, 2021 18:03
robshakir added 3 commits June 2, 2021 11:12
  * (M) client/client.go
    - fix Pending and Results functions.
  * (M) client/client_test.go
    - add tests for pending queue and results queue retrieval.
  * (M) server/server.go
    - Ensure that elecMu field is referenced.
@robshakir robshakir merged commit bf840ce into main Jun 2, 2021
@robshakir robshakir deleted the fluent-2 branch June 22, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants